From: Gerd Hoffmann <kraxel@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: "Andreas Färber" <andreas.faerber@web.de>,
xen-devel@lists.xensource.com, xen-discuss@opensolaris.org,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] xen: net backend doesn't need linux headers.
Date: Mon, 08 Jun 2009 09:14:56 +0200 [thread overview]
Message-ID: <4A2CBA70.3050007@redhat.com> (raw)
In-Reply-To: <f43fc5580906062356q11313ff5rbd2edb3b8966d245@mail.gmail.com>
On 06/07/09 08:56, Blue Swirl wrote:
>> - tmpbuf = malloc(PAGE_SIZE);
>> + tmpbuf = malloc(XC_PAGE_SIZE);
> It also looks like there is no real need for using host or target page
> size, so we could use for example MIN(4096, txreq.size).
No. XC_PAGE_SIZE is the max buffer size. As the buffer allocated here
could be resused for multiple packets you'll have to use that, otherwise
you'll overflow the buffer in case the second packet is larger than the
first one.
>> If then goes on to compile Xen stuff into sparc-softmmu and fails:
Hmm, it shouldn't try that in the first place. Guess this is the result
of this commit:
http://git.savannah.gnu.org/cgit/qemu.git/commit/?id=2567f5796c38238d6f2055f074e347a0338140ce
>> xc_gnttab_open
>> collect2: ld returned 1 exit status
>> Same errors when linking i386-softmmu.
For i386-softmmu it should work.
> configure should probe for xc_gnttab symbols and disable Xen if these
> are not found.
Strange. configure checks for xc_interface_open. Both
xc_interface_open and xc_gnttab_open are in the same shared library. So
it should work in theory, dunno what the problem here is.
Hmm, the linker complains about xc_gnttab_* only, not about the other
xc_* functions missing. Maybe solaris simply has no support for them?
cheers,
Gerd
next prev parent reply other threads:[~2009-06-08 7:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 7:05 [Qemu-devel] [PATCH] xen: net backend doesn't need linux headers Gerd Hoffmann
2009-06-06 15:52 ` Blue Swirl
2009-06-06 19:43 ` Andreas Färber
2009-06-06 20:51 ` Andreas Färber
2009-06-07 6:56 ` Blue Swirl
2009-06-08 7:14 ` Gerd Hoffmann [this message]
2009-06-08 7:00 ` Gerd Hoffmann
2009-06-13 12:30 ` Andreas Färber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A2CBA70.3050007@redhat.com \
--to=kraxel@redhat.com \
--cc=andreas.faerber@web.de \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.com \
--cc=xen-discuss@opensolaris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).