Skip to contentSkip to conversation

4.2 TODO update

DISCUSSION Ian Campbell 9 participants 18 messages Feb 13, 2012 – Feb 21, 2012

lore
Share & tools
lore
#0 lore raw

This weeks update. I was away last Monday so this covers two weeks worth of updates. I have dropped things which were marked as DONE in the last update and added a bunch more DONE (so the list is shrinking!). Please send me corrections (especially "done").

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)
* domctls / sysctls set up to modify scheduler parameters, like the credit1 timeslice and schedule rate. (George Dunlap)
* get the interface changes for sharing/paging/mem-events done and dusted so that 4.2 is a stable API that we hold to. (Tim Deegan, Andres Lagar-Cavilla et al)
* sharing patches posted

tools, blockers:

* libxl stable API -- we would like 4.2 to define a stable API which downstream's can start to rely on not changing. Aspects of this are:
* drop libxl_device_model_info (move bits to build_info or elsewhere as appropriate). (Ian Campbell, DONE).
* add libxl_defbool and generally try and arrange that memset(foo,0,...) requests the defaults (Ian Campbell, repost pending)
* topologyinfo datastructure should be a list of tuples, not a tuple of lists. (Ian Campbell, DONE)
* xl to use json for machine readable output instead of sexp by default (Ian Campbell, DONE)
* xl feature parity with xend wrt driver domain support (George Dunlap)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.

hypervisor, nice to have:

* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al)
* A long standing issue is a fully synchronized p2m (locking lookups) (Andres Lagar-Cavilla, patches posted?)

tools, nice to have:

* Hotplug script stuff -- internal to libxl (I think, therefore I didn't put this under stable API above) but still good to have for 4.2? (Roger Pau Monet, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monet)
* libyajl v2 support (Roger Pau Monet, DONE)
* Configure/control paging via xl/libxl (Olaf Herring)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini)
* Nested-virtualisation (currently should be marked experimental,likely to release that way? Consider nested-svm separate to nested-vmx. Nested-svm is in better shape)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted)

Tools, need to decide if pre- or post-4.2 feature:
* Autoconf (Roger Pau Monet posted a patch, we'll probably take this for 4.2)

#1 lore raw
Quoted 5 lines · Ian Campbell

This weeks update. I was away last Monday so this covers two weeks worth of updates. I have dropped things which were marked as DONE in the last update and added a bunch more DONE (so the list is shrinking!). Please send me corrections (especially "done").

Quoted 11 lines

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)
* domctls / sysctls set up to modify scheduler parameters, like the credit1 timeslice and schedule rate. (George Dunlap)
* get the interface changes for sharing/paging/mem-events done and dusted so that 4.2 is a stable API that we hold to. (Tim Deegan, Andres Lagar-Cavilla et al)
* sharing patches posted

The hypervisor interface changes for sharing and events have gone in; there's a libxc-level change (to do with mlock()ing buffers) that ought to go in before 4.2, if at all.

There's a paging+waitqueues patch that's been posted but needs a bit more work still; I'll try and look at it on Thursday.

Tim.

#2 lore raw
In reply to Ian Campbell
Quoted 2 lines · Ian Campbell

     * domctls / sysctls set up to modify scheduler parameters, like the credit1 timeslice and schedule rate. (George Dunlap)

Not done; I'll try to get this fixed up this week.

Quoted 2 lines

             * xl feature parity with xend wrt driver domain support (George Dunlap)

I probably won't have time to start on this for another two weeks or so; it's not clear ATM how long it might take to get working after that (since I haven't even taken a cursory look at it). If anyone is sufficiently motivated to take a look, they're welcome to do so. :-)

Re blocker status: I think blockers aren't exactly binary, but more like "How long can this reasonably block the release"? I think this should be probably allowed to delay the release for 1 month, but if it's more than that (say, 6 months), it's probably best to release without it.

-George

#3 lore raw
In reply to Ian Campbell

Thanks to all developer for good work, I think it would be good to add these:

tools, nice to have:
...
* Add network script stuff for Open Vswitch support
* Upstream qemu feature patches:
...
* Spice full support and build enabled by default

About Spice support on qemu upstream, now is not built by default and on xl configuration files is minimal. Probably there are also some required missed options about qxl graphic needed by Spice on xl configuration files. I search on tools/libxl/libxl_dm.c but I have found nothing about qxl now.

In these days I'll try to build and use Spice, and eventually I'll post patches about to improve Spice support.

Anyone got the above stuff already working? Any patches out there?

Thanks for any reply and sorry for bad english.

--
View this message in context: http://xen.1045712.n5.nabble.com/4-2-TODO-update-tp5478696p5478798.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#4 lore raw
Quoted 5 lines · Fantu

Thanks to all developer for good work, I think it would be good to add these:

tools, nice to have:
...
* Add network script stuff for Open Vswitch support

I made a stab at this a way back but fell into the exact sorts of issues that the "Hotplug script stuff" (already on the TODO) is supposed to address (mainly the lack of a suitable teardown hook which vswitch needs). However once that stuff is done I reckon vswitch support would be reasonably easy to add.

Quoted 5 lines

* Upstream qemu feature patches:
...
* Spice full support and build enabled by default

Quoted 7 lines

About Spice support on qemu upstream, now is not built by default and on xl configuration files is minimal. Probably there are also some required missed options about qxl graphic needed by Spice on xl configuration files. I search on tools/libxl/libxl_dm.c but I have found nothing about qxl now.

In these days I'll try to build and use Spice, and eventually I'll post patches about to improve Spice support.

Thanks, I'm looking forward to your patches.

Quoted 1 line

Anyone got the above stuff already working? Any patches out there?

Presumably the contributor who added the spice support to libxl had but they had probably built qemu upstream by hand with the appropriate options. I'm not aware of any outstanding SPICE patches.

Ian.

#5 lore raw
In reply to Fantu
Quoted 6 lines · Fantu

        * Spice full support and build enabled by default

About Spice support on qemu upstream, now is not built by default and on xl configuration files is minimal. Probably there are also some required missed options about qxl graphic needed by Spice on xl configuration files. I search on tools/libxl/libxl_dm.c but I have found nothing about qxl now.

About the build, QEMU should include spice support if the necessary library are installed. But on Debian stable (Squeeze), the spice library are too old, so forcing QEMU to have spice support will just break the build.

Regards,

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#6 lore raw
Quoted 8 lines · Anthony PERARD
Quoted 6 lines · Fantu

* Spice full support and build enabled by default

About Spice support on qemu upstream, now is not built by default and on xl configuration files is minimal. Probably there are also some required missed options about qxl graphic needed by Spice on xl configuration files. I search on tools/libxl/libxl_dm.c but I have found nothing about qxl now.

Quoted 4 lines

About the build, QEMU should include spice support if the necessary library are installed. But on Debian stable (Squeeze), the spice library are too old, so forcing QEMU to have spice support will just break the build.

Agreed, spice support should be conditional on the necessary support libraries being available. It would however be useful to document (e.g. in the top-level README) exactly what those requirements are.

Ian.

#7 lore raw
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Ian Campbell
Sent: Monday, February 13, 2012 6:56 AM
To: Anthony PERARD
Cc: [email protected]; Fantu
Subject: Re: [Xen-devel] 4.2 TODO update

Quoted 10 lines
Quoted 4 lines · Anthony PERARD
Quoted 3 lines · Fantu

* Spice full support and build enabled by default

About Spice support on qemu upstream, now is not built by default and

on xl

Quoted 1 line
Quoted 1 line

configuration files is minimal. Probably there are also some required

missed

Quoted 2 lines
Quoted 2 lines

options about qxl graphic needed by Spice on xl configuration files. I search on tools/libxl/libxl_dm.c but I have found nothing about qxl

now.

Quoted 6 lines
Quoted 5 lines

About the build, QEMU should include spice support if the necessary library are installed. But on Debian stable (Squeeze), the spice library are too old, so forcing QEMU to have spice support will just break the build.

Quoted 6 lines

Agreed, spice support should be conditional on the necessary support libraries being available. It would however be useful to document (e.g. in the top-level README) exactly what those requirements are.

Ian.

Is it my understanding that currently there is no way to pass the -vga option to qemu using the xl cfg file? This seems in my mind a very trivial thing to do, I don't want to reinvent the wheel if I'm just missing something.
Mike

#8 lore raw
Quoted 4 lines · Michael A. Collins

Is it my understanding that currently there is no way to pass the -vga option to qemu using the xl cfg file? This seems in my mind a very trivial thing to do, I don't want to reinvent the wheel if I'm just missing something.

It seems you can arrange for "-std-vga" or "-vga std" (depending on if you are using traditional or upstream qemu) or nothing but nothing more complex than that.

What is it that you are trying to do by passing such an option?

Do you know if this this option was exposed in xend? If so then how?

(as a workaround there is an device_model_args{,_pv,_hvm} trio of options in xl which allows arbitrary option to be passed to qemu)

Ian.

#9 lore raw
In reply to Ian Campbell
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Ian Campbell

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)

The only one currently open is the one removing write permission for Dom0. The intention was to get this in after the qemu usptream pass through patch series got adjusted along the lines of what was done to qemu traditional, and while this was promise to happen soon after New Year I didn't hear back anything from Anthony or Stefano.

Question is whether, given that the patch series in question isn't in anything that is or will soon be released, it makes sense to push the hypervisor change without waiting for that fixup.

Jan

#10 lore raw
Quoted 9 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Ian Campbell

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)

The only one currently open is the one removing write permission for Dom0.

Oh, I thought you had found another issue which required further patches. Did I misunderstand or did they go in already?

Quoted 8 lines

The intention was to get this in after the qemu usptream pass
through patch series got adjusted along the lines of what was done to qemu traditional, and while this was promise to happen soon after New Year I didn't hear back anything from Anthony or Stefano.

Question is whether, given that the patch series in question isn't in anything that is or will soon be released, it makes sense to push the hypervisor change without waiting for that fixup.

I don't think it is necessary to wait for the qemu-upstream patch series to be updated for this, is it?

Ian.

#11 lore raw
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 7 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Ian Campbell

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)

Quoted 5 lines
Quoted 2 lines

The only one currently open is the one removing write permission for Dom0.

Oh, I thought you had found another issue which required further patches. Did I misunderstand or did they go in already?

They went in already.

Quoted 11 lines
Quoted 8 lines

The intention was to get this in after the qemu usptream pass
through patch series got adjusted along the lines of what was done to qemu traditional, and while this was promise to happen soon after New Year I didn't hear back anything from Anthony or Stefano.

Question is whether, given that the patch series in question isn't in anything that is or will soon be released, it makes sense to push the hypervisor change without waiting for that fixup.

I don't think it is necessary to wait for the qemu-upstream patch series to be updated for this, is it?

Let's wait at least a day or two to give Stefano and Anthony a chance to respond.

Jan

#12 lore raw
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 8 lines

The intention was to get this in after the qemu usptream pass
through patch series got adjusted along the lines of what was done to qemu traditional, and while this was promise to happen soon after New Year I didn't hear back anything from Anthony or Stefano.

Question is whether, given that the patch series in question isn't in anything that is or will soon be released, it makes sense to push the hypervisor change without waiting for that fixup.

Quoted 5 lines
Quoted 2 lines

I don't think it is necessary to wait for the qemu-upstream patch series to be updated for this, is it?

Let's wait at least a day or two to give Stefano and Anthony a chance to respond.

I don't think we need to wait for the upstream PCI passthrough series to be accepted in order for the hypervisor changes to go in, however it would be nice if you could point out what needs to be changed on the QEMU side, when Anthony posts the next version of the series.

#13 lore raw
In reply to Ian Campbell
Quoted 20 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 9 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Ian Campbell

hypervisor, blockers:
* round-up of the closing of the security hole in MSI-X passthrough (uniformly - i.e. even for Dom0 - disallowing write access to MSI-X table pages). (Jan Beulich -- more fixes required than first thought, patches posted)

The only one currently open is the one removing write permission for Dom0.

Oh, I thought you had found another issue which required further patches. Did I misunderstand or did they go in already?

Quoted 5 lines

The intention was to get this in after the qemu usptream pass
through patch series got adjusted along the lines of what was done to qemu traditional, and while this was promise to happen soon after New Year I didn't hear back anything from Anthony or Stefano.

Quoted 6 lines
Quoted 3 lines

Question is whether, given that the patch series in question isn't in anything that is or will soon be released, it makes sense to push the hypervisor change without waiting for that fixup.

I don't think it is necessary to wait for the qemu-upstream patch series to be updated for this, is it?

Patch just sent out. Once that's in, the issue should be fully addressed for HVM guests (the situation with PV guests is explained in the patch).

Jan

#14 lore raw
In reply to Ian Campbell
Quoted 2 lines · Ian Campbell

     * Upstream qemu feature patches:
             * Upstream qemu PCI passthrough support (Anthony Perard)

I'll send a new patch set soon, but the power management capability will be missing as it's need a bit more work.
Also, this patch series does not longuer include the msitranslate code.

Quoted 2 lines

             * Upstream qemu save restore (Anthony Perard, Stefano Stabellini)

Still need some ack from qemu's developper.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#15 lore raw
In reply to Ian Campbell
Quoted 4 lines · Ian Campbell

* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini)

I have sent patches for both QEMU and xl/libxl, I have addressed all comments but I haven't received any acks yet. I'll ping the maintainers again.

#16 lore raw
In reply to Ian Campbell
Quoted 21 lines · Ian Campbell

tools, nice to have:

* Hotplug script stuff -- internal to libxl (I think, therefore I didn't put this under stable API above) but still good to have for 4.2? (Roger Pau Monet, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monet)
* libyajl v2 support (Roger Pau Monet, DONE)
* Configure/control paging via xl/libxl (Olaf Herring)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini)
* Nested-virtualisation (currently should be marked experimental,likely to release that way? Consider nested-svm separate to nested-vmx. Nested-svm is in better shape)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted)

FYI, the network buffering module which was part of 2.6.32 pvops tree has been accepted into upstream net-next tree. I have also posted patches for the
userspace libnl code that talks to the qdiscs via netlink.

I am just waiting for the initial xl patches to go in, after which I could take a stab
at adding network buffering support. Depending on whether Roger's hotplug patches
go in or not, I could add some rudimentary disk replication support, time permitting.

shriram

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#17 lore raw
In reply to Ian Campbell
Quoted 2 lines · Ian Campbell

tools, nice to have:

Jim Burns reports that

vncviewer=1 used to auto spawn a vnc viewer for you

and that

localtime and rtc_timeoffset do not work with xl.

Both seem like worthwhile things to have in some form.

Ian.