From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH] libxl: use qemu-xen (upstream QEMU) as device model by default
Date: Wed, 5 Dec 2012 17:29:19 +0100 [thread overview]
Message-ID: <50BF765F.10906@citrix.com> (raw)
In-Reply-To: <20671.28434.406210.691273@mariner.uk.xensource.com>
On 05/12/12 16:58, Ian Jackson wrote:
> Roger Pau Monne writes ("Re: [Xen-devel] [PATCH] libxl: use qemu-xen (upstream QEMU) as device model by default"):
>> On 27/11/12 16:17, Stefano Stabellini wrote:
>>> - LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL;
>>> + LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN;
>>
>> Is there anyway we may keep qemu-traditional as default for NetBSD?
>> Upstream Qemu is not working on NetBSD, and I'm afraid it needs some
>> heavy patching.
>
> Right. OK, that's something we need to take care of then.
I have a pending patch for NetBSD that fixes a problem with the privcmd
device, and the way NetBSD handles IOCTL_PRIVCMD_MMAPBATCH. It is here:
http://mail-index.netbsd.org/port-xen/2012/06/27/msg007464.html
With this patch at least we are able to launch Qemu-upstream without
crashing, but the next problem is with network interfaces. There's no
way in NetBSD to change the name of a cloned tap interface, and in libxl
we pass the desired name of the tap interface to be created to Qemu, and
then we launch hotplug scripts according to that name. This doesn't work
in NetBSD, but I see several possible solutions:
1. Implement interface renaming in NetBSD
2. Implement a QMP interface in Qemu to query information about network
devices, so we can get the actual name of the interface that Qemu has
created. There was a partial implementation of this as part of a Qemu
GSoC, but it never got commited, see
http://wiki.qemu.org/Google_Summer_of_Code_2010/QMP#query-netdev
3. Create the tap interface in libxl and use pass fd to pass that file
descriptor to Qemu "-net tap,fd=XXX[,...]"
More suggestions?
>> Could a helper function be added to libxl_{netbsd/linux}.c to decide
>> which device model to use?
>
> Yes, I think that would be fine.
>
> Ian.
>
prev parent reply other threads:[~2012-12-05 16:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 15:17 [PATCH] libxl: use qemu-xen (upstream QEMU) as device model by default Stefano Stabellini
2012-11-27 15:23 ` Ian Campbell
2012-11-29 17:17 ` Ian Jackson
2012-12-03 16:24 ` Roger Pau Monné
2012-12-03 18:37 ` Sander Eikelenboom
2012-12-04 12:48 ` Stefano Stabellini
2012-12-04 13:01 ` Sander Eikelenboom
2012-12-04 13:05 ` Stefano Stabellini
2012-12-04 12:45 ` Stefano Stabellini
2012-12-05 15:58 ` Ian Jackson
2012-12-05 16:29 ` Roger Pau Monné [this message]
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=50BF765F.10906@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--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).