From: Gerd Hoffmann <kraxel@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: Xen Development Mailing List <xen-devel@lists.xensource.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [RfC / Patch] xenner: event channel implementation.
Date: Thu, 23 Apr 2009 12:30:00 +0200 [thread overview]
Message-ID: <49F04328.5060304@redhat.com> (raw)
In-Reply-To: <49EF4485.4080700@redhat.com>
On 04/22/09 18:23, Avi Kivity wrote:
> Gerd Hoffmann wrote:
>> The function calls in the source code (xen backend drivers) are not
>> changed directly, but using a include file with a bunch of #defines.
>> That way I don't have to change s/xc_evtchn_/xc_evtchn./ all over the
>> place. Also xenner can easily be disabled at compile time and the
>> indirect function pointer calls simply go away then.
>
> I don't think the last bit is worthwhile. Function pointers these days
> are pretty fast, their cost will be dwarfed by the syscall and hypercall
> overhead.
>
>> - --disable-xen) xen="no"
>> + --disable-xen) xen="no"; xenner="no"
>
> It would be nice to be able to build without the original Xen libraries.
Hmm. I'll at least need the xen header files (at build time) anyway.
Making xen and xenner independent config options and don't link the xen
libraries for the !xen case should work without too much hassle (have to
make the function pointers mandatory then though).
>> +
>> +static struct domain *get_domain(int domid)
>> +{
>> + struct domain *domain;
>
> Curious, can there be any domain other than the guest and the fake dom0
> you're emulating?
No. It is the case for the current xenner implementation. The event
channels are handled by a daemon then and the guests can talk to each
other. This code is derived from the daemon. When moving xenner into
qemu the event channels allow only host <=> guest communication, so that
can probably simplified a bit. Not sure that would save that much code
though. I'll have a look.
cheers,
Gerd
next prev parent reply other threads:[~2009-04-23 10:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 13:43 [Qemu-devel] [RfC / Patch] xenner: event channel implementation Gerd Hoffmann
2009-04-22 16:23 ` Avi Kivity
2009-04-23 10:30 ` Gerd Hoffmann [this message]
2009-04-28 15:00 ` Gerd Hoffmann
2009-04-22 16:45 ` Anthony Liguori
2009-04-23 10:34 ` Gerd Hoffmann
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=49F04328.5060304@redhat.com \
--to=kraxel@redhat.com \
--cc=avi@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.com \
/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).