Xen 4.2 Release Plan / TODO
So as discussed last week we now have a plan for a 4.2 release:
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00793.html
The time line is as follows:
19 March -- TODO list locked down << WE ARE HERE
2 April -- Feature Freeze
Mid/Late April -- First release candidate
Weekly -- RCN+1 until it is ready
The updated TODO list follows. Per the release plan a strong case will now have to be made as to why new items should be added to the list, especially as a blocker, rather than deferred to 4.3.
Things look pretty good on the hypervisor side of things.
The tools list is quite long but most stuff is known to be in progress and in many cases preliminary patches are available. I think there is a name next to everything.
I have gather various items under a top level "xl compatibility with xm" heading under both blocker and nice-to-have. I expect this is the area where most bugs will be reported once we hit -rc and users start testing this stuff in anger.
Ian.
hypervisor, blockers:
* NONE?
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:
* Safe fork vs. fd handling hooks. Involves API changes (Ian J, patches posted)
* locking/serialization, e.g., for domain creation. As of now, nothing is provided for this purpose, and downstream toolstacks have to put their own mechanisms in place. E.g., xl uses a fcntl() lock around the whole process of domain creation. It should OTOH be libxl job to offer a proper set of hooks --placed at the proper spots during the domain creation process-- for the downstreams to fill with the proper callbacks. (Dario Faggioli)
* agree & document compatibility guarantees + associated technical measures (Ian C)
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)
* xl support for "rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use /dev/loop+blkback. This requires loop driver AIO and O_DIRECT patches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)
hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in __get_gfn_type_access() from Tim works. However, there are a few users who call __get_gfn_type_access with the domain_lock held. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)
tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)
[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
I meant to ask already when this was first mentioned: What's the reason for this requirement? Didn't we have blkback over loop running fine for years? Or is this just a performance consideration (in which case "requires" might be too strong a term)?
Jan
Quoted 2 lines
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
Quoted 13 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
Quoted 4 lines
I meant to ask already when this was first mentioned: What's the reason for this requirement? Didn't we have blkback over loop running fine for years? Or is this just a performance consideration (in which case "requires" might be too strong a term)?
My understanding (which could well be totally bogus) was that the use of /dev/loop in this way was unsafe since pages were only committed to the dom0 page cache and not to the actual platter when success was reported to the guest. I think that is why many people used tap:aio:
instead of file: (personally I use phy: almost exclusively so I could be talking rubbish).
Unless there are some loop patches in the classic-Xen patchset? I don't think there are though.
I don't know so much about the performance aspect. Stefano might be able to comment.
Ian.
Quoted 7 lines
Jan
Quoted 2 lines
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
Quoted 27 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
Quoted 13 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.Quoted 4 lines
I meant to ask already when this was first mentioned: What's the reason for this requirement? Didn't we have blkback over loop running fine for years? Or is this just a performance consideration (in which case "requires" might be too strong a term)?
My understanding (which could well be totally bogus) was that the use of
/dev/loopin this way was unsafe since pages were only committed to the dom0 page cache and not to the actual platter when success was reported to the guest. I think that is why many people used tap:aio:
instead of file: (personally I use phy: almost exclusively so I could be talking rubbish).
Quoted 2 lines
Unless there are some loop patches in the classic-Xen patchset? I don't think there are though.
I know of none either.
Jan
Quoted 12 lines
I don't know so much about the performance aspect. Stefano might be able to comment.
Ian.
Quoted 7 lines
Jan
Quoted 2 lines
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
Quoted 13 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · Ian Campbell
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
Quoted 4 lines
I meant to ask already when this was first mentioned: What's the reason for this requirement? Didn't we have blkback over loop running fine for years? Or is this just a performance consideration (in which case "requires" might be too strong a term)?
There are several problems here:
- the usage of loop with blkback is unsafe because loop doesn't support O_DIRECT, at least the version of loop present in upstream Linux. Also this means that the very good performance results that we get with loop are actually inflated, the real numbers could be very low.
- Loop with blkback doesn't work with anything but raw files, so it won't work for qcow, qcow2 or vhd.
- Using qdisk as backend, with or without AIO, is possible but from the performance measurements I have run so far is very slow. In theory this should be the best option, but in practice I cannot explain why I am getting 1/10 of the performances I am expecting.
Quoted 46 lines · Ian Campbell
So as discussed last week we now have a plan for a 4.2 release:
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00793.htmlThe time line is as follows:
19 March -- TODO list locked down << WE ARE HERE 2 April -- Feature Freeze
Mid/Late April -- First release candidate
Weekly -- RCN+1 until it is readyThe updated TODO list follows. Per the release plan a strong case will now have to be made as to why new items should be added to the list, especially as a blocker, rather than deferred to 4.3.
Things look pretty good on the hypervisor side of things.
The tools list is quite long but most stuff is known to be in progress and in many cases preliminary patches are available. I think there is a name next to everything.
I have gather various items under a top level "xl compatibility with xm" heading under both blocker and nice-to-have. I expect this is the area where most bugs will be reported once we hit -rc and users start testing this stuff in anger.
Ian.
hypervisor, blockers:
* NONE?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:
* Safe fork vs. fd handling hooks. Involves API changes (Ian J, patches posted)
* locking/serialization, e.g., for domain creation. As of now, nothing is provided for this purpose, and downstream toolstacks have to put their own mechanisms in place. E.g., xl uses afcntl()lock around the whole process of domain creation. It should OTOH be libxl job to offer a proper set of hooks --placed at the proper spots during the domain creation process-- for the downstreams to fill with the proper callbacks. (Dario Faggioli)
* agree & document compatibility guarantees + associated
Quoted 8 lines
technical measures (Ian C)
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)
* xl support for "rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
Nonetheless, we should still make basic functionality of xm a requirement for this release, right? I've just created a VM with a config file that worked in xl, and it complains that the hotplug scripts are not working, for example. Does that go in this todo list, or are we keeping track of bugs somewhere else?
Quoted 62 lines
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · George Dunlap
Quoted 3 lines · Ian Campbell
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
Nonetheless, we should still make basic functionality of xm a requirement for this release, right?
Right, deprecated != known broken.
Quoted 4 lines
I've just created a VM with a
config file that worked in xl, and it complains that the hotplug scripts are not working, for example. Does that go in this todo list, or are we keeping track of bugs somewhere else?
I've not been tracking bugs as such here, I suppose I could. I'd be inclined to wait until we get a bit further along the process (e.g. past feature freeze) before starting to keep a close eye on the bugs. Of course I would be more than happy (indeed, very appreciative) if someone wanted to independently take on that task.
However xend is still tested by the automated test and appears to be passing -- are you sure you have a bug and not a configuration issue?
Ian.
Quoted 4 lines · Ian Campbell
The updated TODO list follows. Per the release plan a strong case will now have to be made as to why new items should be added to the list, especially as a blocker, rather than deferred to 4.3.
The patches to PV-GRUB for ext4 [1] and btrfs [2] support are very low risk changes. I'll happily repost them rebased against tip xen-unstable (and with no rejects created in the case of the btrfs patch), if that helps.
Matt
[1] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00651.html
[2] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00649.html
Quoted 10 lines · Matt Wilson
Quoted 4 lines · Ian Campbell
The updated TODO list follows. Per the release plan a strong case will now have to be made as to why new items should be added to the list, especially as a blocker, rather than deferred to 4.3.
The patches to PV-GRUB for ext4 [1] and btrfs [2] support are very low risk changes. I'll happily repost them rebased against tip xen-unstable (and with no rejects created in the case of the btrfs patch), if that helps.
I think these would be good to have in, and it certainly isn't too late for 4.2.
I think these originally came in while Ian J (tools maintainer) was away so I expect they just fell through the cracks. Reposting would likely be very useful, thanks.
Ian.
Someone pointed out that some people may not know that their name was on this list, so I've CC'd everyone who is mentioned by name. Please let me know if there is a problem with your entry.
Quoted 109 lines · Ian Campbell
So as discussed last week we now have a plan for a 4.2 release:
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00793.htmlThe time line is as follows:
19 March -- TODO list locked down << WE ARE HERE
2 April -- Feature Freeze
Mid/Late April -- First release candidate
Weekly -- RCN+1 until it is readyThe updated TODO list follows. Per the release plan a strong case will now have to be made as to why new items should be added to the list, especially as a blocker, rather than deferred to 4.3.
Things look pretty good on the hypervisor side of things.
The tools list is quite long but most stuff is known to be in progress and in many cases preliminary patches are available. I think there is a name next to everything.
I have gather various items under a top level "xl compatibility with xm" heading under both blocker and nice-to-have. I expect this is the area where most bugs will be reported once we hit -rc and users start testing this stuff in anger.
Ian.
hypervisor, blockers:
* NONE?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:
* Safe fork vs. fd handling hooks. Involves API changes (Ian J, patches posted)
* locking/serialization, e.g., for domain creation. As of now, nothing is provided for this purpose, and downstream toolstacks have to put their own mechanisms in place. E.g., xl uses afcntl()lock around the whole process of domain creation. It should OTOH be libxl job to offer a proper set of hooks --placed at the proper spots during the domain creation process-- for the downstreams to fill with the proper callbacks. (Dario Faggioli)
* agree & document compatibility guarantees + associated technical measures (Ian C)
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)
* xl support for "rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)
Quoted 7 lines
[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · Ian Campbell
tools, nice to have:
[...]
Quoted 3 lines
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
AIUI the qemu save/restore patches have now been accepted. Not sure of the status of the xl/libxl side of that, perhaps time for a repost of both that series and the Remus one?
Ian.
Quoted 11 lines · Ian Campbell
Quoted 1 line · Ian Campbell
tools, nice to have:
[...]
Quoted 3 lines
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
AIUI the qemu save/restore patches have now been accepted. Not sure of the status of the xl/libxl side of that, perhaps time for a repost of both that series and the Remus one?
I have reposted my series already:
Quoted 2 lines · Ian Campbell
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)
I just discovered (while playing with driver domains) that xl is missing one bit of feature parity with xm for pci passthrough for PV guests -- and that's the "pci quirk" config file support. I'm going to ask Intel if they have an interest in porting it over; I think it should at least be a "nice-to-have", and it may be a low-level blocker, as a lot of devices won't work passed through without it.
Quoted 67 lines
* xl support for "
rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 9 lines · George Dunlap
Quoted 2 lines · Ian Campbell
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)I just discovered (while playing with driver domains) that xl is missing one bit of feature parity with xm for pci passthrough for PV guests -- and that's the "pci quirk" config file support. I'm going to ask Intel if they have an interest in porting it over; I think it should at least be a "nice-to-have", and it may be a low-level blocker, as a lot of devices won't work passed through without it.
This is the stuff in tools/python/xen/xend/server/pciquirk.py ?
pciback in upstream doesn't mention "quirk" which suggests no support for the necessary sysfs node either?
tools/examples/xend-pci-quirks.sxp seems to only have a quirk for a single card?
I don't think we want to implement an SXP parser for xl/libxl so if this is reimplemented I think a different format should be used.
Anyway, I'll put this onto the list.
Ian
Quoted 61 lines
Quoted 61 lines
* xl support for "
rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)
Quoted 7 lines
Quoted 7 lines
[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 11 lines · Ian Campbell
Quoted 9 lines · George Dunlap
Quoted 2 lines · Ian Campbell
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)I just discovered (while playing with driver domains) that xl is missing one bit of feature parity with xm for pci passthrough for PV guests -- and that's the "pci quirk" config file support. I'm going to ask Intel if they have an interest in porting it over; I think it should at least be a "nice-to-have", and it may be a low-level blocker, as a lot of devices won't work passed through without it.
Quoted 4 lines
This is the stuff in
tools/python/xen/xend/server/pciquirk.py?pciback in upstream doesn't mention "quirk" which suggests no support for the necessary sysfs node either?
Ah, interesting -- that's worth tracking down. Maybe there's a better way to deal with quirks? Or maybe it just hasn't been upstreamed yet (or perhaps even implemented in pvops?). I'm using the Debian squeeze 2.6.32-5-xen-686 kernel.
Quoted 2 lines
tools/examples/xend-pci-quirks.sxpseems to only have a quirk for a single card?
Yes, well I could add two more cards just from experience w/ one of my test boxen. :-)
Quoted 2 lines
I don't think we want to implement an SXP parser for xl/libxl so if this is reimplemented I think a different format should be used.
Since we're using yajl anyway, JSON might not be a bad option.
Anyway, I'll ping the Intel guy who recently posted a patch to libxl_pci.c.
-George
Quoted 75 lines
Anyway, I'll put this onto the list.
Ian
Quoted 68 lines
Quoted 68 lines
* xl support for "
rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 14 lines · George Dunlap
Quoted 13 lines · Ian Campbell
Quoted 9 lines · George Dunlap
Quoted 2 lines · Ian Campbell
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)I just discovered (while playing with driver domains) that xl is missing one bit of feature parity with xm for pci passthrough for PV guests -- and that's the "pci quirk" config file support. I'm going to ask Intel if they have an interest in porting it over; I think it should at least be a "nice-to-have", and it may be a low-level blocker, as a lot of devices won't work passed through without it.
This is the stuff in
tools/python/xen/xend/server/pciquirk.py?
Quoted 7 lines
Quoted 2 lines
pciback in upstream doesn't mention "quirk" which suggests no support for the necessary sysfs node either?
Ah, interesting -- that's worth tracking down. Maybe there's a better way to deal with quirks? Or maybe it just hasn't been upstreamed yet (or perhaps even implemented in pvops?). I'm using the Debian squeeze 2.6.32-5-xen-686 kernel.
I told a lie -- the code does seem to be there in mainline (drivers/xen/xen-pciback/conf_space_quirks.c et al). Not sure how grep missed it.
Does anyone know what the actual purpose/function of the single defined quirk is? 10845:df80de098d15 which introduces it doesn't really say, it's just a bunch of magic register frobbing as far as I'm concerned.
I guess you have a tg3 and are suffering from this exact quirk?
It's an awful lot of scaffolding on both the userspace and kernel side to support a generic quirks system which has had exactly one quirk since it was introduced in mid 2006. Perhaps we should just address the specific tg3 issue directly?
Quoted 7 lines
Quoted 3 lines
tools/examples/xend-pci-quirks.sxpseems to only have a quirk for a single card?Yes, well I could add two more cards just from experience w/ one of my test boxen. :-)
Quoted 84 lines
Quoted 2 lines
I don't think we want to implement an SXP parser for xl/libxl so if this is reimplemented I think a different format should be used.
Since we're using yajl anyway, JSON might not be a bad option.
Anyway, I'll ping the Intel guy who recently posted a patch to
libxl_pci.c.-George
Quoted 75 lines
Anyway, I'll put this onto the list.
Ian
Quoted 68 lines
Quoted 68 lines
* xl support for "
rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines · Ian Campbell
I told a lie -- the code does seem to be there in
mainline
(drivers/xen/xen-pciback/conf_space_quirks.c et al). Not sure how
Quoted 1 line
grep
missed it.
Does anyone know what the actual purpose/function of the
Quoted 1 line
single defined
quirk is? 10845:df80de098d15 which introduces it doesn't really
Quoted 1 line
say,
it's just a bunch of magic register frobbing as far as I'm concerned.
I
Quoted 1 line
guess you have a tg3 and are suffering from this exact quirk?
It's an awful
Quoted 1 line
lot of scaffolding on both the userspace and kernel side
to support a generic
Quoted 1 line
quirks system which has had exactly one quirk since
it was introduced in mid
Quoted 1 line
2006. Perhaps we should just address the
specific tg3 issue directly?
The issue is that 'quirk' is something of a misnomer. Many devices may have device-specific registers exposed via their PCI config space. The default pciback policy is set to allow only known generic PCI config space registers to be accessed by a guest. This will fail for likely a fair few devices, and the most common solution is to set the pciback.permissive flag and just allow guest access to all of the device's PCI config space. This is far less hassle than actually setting up a proper 'quirk' and frankly most people trust the device drivers they run, even if they are in a domU. I wonder how many people really give a crap about the protection of !pciback.permissive.
-- Keir
Quoted 31 lines · Ian Campbell
Quoted 14 lines · George Dunlap
Quoted 13 lines · Ian Campbell
Quoted 9 lines · George Dunlap
Quoted 2 lines · Ian Campbell
* xl compatibility with xm:
* feature parity wrt driver domain support (George Dunlap)I just discovered (while playing with driver domains) that xl is missing one bit of feature parity with xm for pci passthrough for PV guests -- and that's the "pci quirk" config file support. I'm going to ask Intel if they have an interest in porting it over; I think it should at least be a "nice-to-have", and it may be a low-level blocker, as a lot of devices won't work passed through without it.
This is the stuff in
tools/python/xen/xend/server/pciquirk.py?Quoted 7 lines
Quoted 2 lines
pciback in upstream doesn't mention "quirk" which suggests no support for the necessary sysfs node either?
Ah, interesting -- that's worth tracking down. Maybe there's a better way to deal with quirks? Or maybe it just hasn't been upstreamed yet (or perhaps even implemented in pvops?). I'm using the Debian squeeze 2.6.32-5-xen-686 kernel.
I told a lie -- the code does seem to be there in mainline (
drivers/xen/xen-pciback/conf_space_quirks.cet al). Not sure how grep missed it.Does anyone know what the actual purpose/function of the single defined quirk is? 10845:df80de098d15 which introduces it doesn't really say, it's just a bunch of magic register frobbing as far as I'm concerned.
Quoted 6 lines
I guess you have a tg3 and are suffering from this exact quirk?
It's an awful lot of scaffolding on both the userspace and kernel side to support a generic quirks system which has had exactly one quirk since it was introduced in mid 2006. Perhaps we should just address the specific tg3 issue directly?
On the contrary, I don't have a tg3, but an Intel nic that uses Linux's igd driver, and another that uses the bnx2 driver. When I pass those through to a PV guest, I get the following messages printed from dom0's pciback, respectively:
(for igd)
[ 77.619293] pciback 0000:07:00.0: PCI INT A -> GSI 45 (level, low) -> IRQ 45^M [ 77.626683] pciback 0000:07:00.0: Driver tried to write to a read-only configuration space field at offset 0xa8, size 2. This may be harmless, but if you have problems with your device:^M [ 77.626685] 1) see permissive attribute in sysfs^M [ 77.626687] 2) report problems to the xen-devel mailing list along
with details of your device obtained from lspci.^M
(for bnx2)
[ 363.582059] pciback 0000:02:00.0: PCI INT A -> GSI 32 (level, low) -> IRQ 32^M [ 363.590050] pciback 0000:02:00.0: Driver tried to write to a read-only configuration space field at offset 0x68, size 4. This may be harmless, but if you have problems with your device:^M [ 363.590054] 1) see permissive attribute in sysfs^M [ 363.590055] 2) report problems to the xen-devel mailing list along
with details of your device obtained from lspci.^M
And at least one person has solved this by adding something to the "quirks" file (search for "PCI permissions"):
http://technical.bestgrid.org/index.php/Xen:_assigning_PCI_devices_to_a_domain
The devices in fact don't work quite right, AFAICT. So I'm gathering that the "quirks" lists areas of PCI configuration space which it is safe for pciback to allow the guest to modify. (I'm going to hack libxl to set "permissive" to test this theory.)
-George
Quoted 99 lines
Quoted 8 lines
Quoted 4 lines
tools/examples/xend-pci-quirks.sxpseems to only have a quirk for a single card?Yes, well I could add two more cards just from experience w/ one of my test boxen. :-)
Quoted 84 lines
Quoted 2 lines
I don't think we want to implement an SXP parser for xl/libxl so if this is reimplemented I think a different format should be used.
Since we're using yajl anyway, JSON might not be a bad option.
Anyway, I'll ping the Intel guy who recently posted a patch to
libxl_pci.c.-George
Quoted 75 lines
Anyway, I'll put this onto the list.
Ian
Quoted 68 lines
Quoted 68 lines
* xl support for "
rtc_timeoffset" and "localtime" (Lin Ming, Patches posted)
* More formally deprecate xm/xend. Manpage patches already in tree. Needs release noting and communication around -rc1 to remind people to test xl.
* Domain 0 block attach & general hotplug when using qdisk backend (need to start qemu as necessary etc) (Stefano S)
* file:// backend performance. qemu-xen-tradition's qdisk is quite slow & blktap2 not available in upstream kernels. Need to consider our options:
* qemu-xen's qdisk is thought to be well performing but qemu-xen is not yet the default. Complexity arising from splitting qemu-for-qdisk out from qemu-for-dm and running N qemu's.
* potentially fully userspace blktap could be ready for 4.2
* use/dev/loop+blkback. This requires loop driver AIO andO_DIRECTpatches which are not (AFAIK) yet upstream.
* Leverage XCP's blktap2 DKMS work.
* Other ideas?
* Improved Hotplug script support (Roger Pau Monné, patches posted)
* Block script support -- follows on from hotplug script (Roger Pau Monné)hypervisor, nice to have:
* solid implementation of sharing/paging/mem-events (using work queues) (Tim Deegan, Olaf Herring et al -- patches posted)
* "The last patch to use a waitqueue in__get_gfn_type_access()from Tim works. However, there are a few users who call__get_gfn_type_accesswith thedomain_lockheld. This part needs to be addressed in some way."
* Sharing support for AMD (Tim, Andres).
* PoD performance improvements (George Dunlap)tools, nice to have:
* Configure/control paging via xl/libxl (Olaf Herring, lots of discussion around interface, general consensus reached on what it should look like)
* Upstream qemu feature patches:
* Upstream qemu PCI passthrough support (Anthony Perard, patches sent)
* Upstream qemu save restore (Anthony Perard, Stefano Stabellini, patches sent, waiting for upstream ack)
* Nested-virtualisation. Currently "experimental". Likely to release that way.
* Nested SVM. Tested in a variety of configurations but still some issues with the most important use case (w7 XP mode) [0] (Christoph Egger)
* Nested VMX. Needs nested EPT to be genuinely useful. Need more data on testedness etc (Intel)
* Initial xl support for Remus (memory checkpoint, blackholing) (Shriram, patches posted, blocked behind qemu save restore patches)
* xl compatibility with xm:
* xl support for autospawning vncviewer (vncviewer=1 or otherwise) (Goncalo Gomes)
* support for vif "rate" parameter (Mathieu Gagné)[0] http://lists.xen.org/archives/html/xen-devel/2012-03/msg00883.html
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 4 lines · George Dunlap
The devices in fact don't work quite right, AFAICT. So I'm gathering that the "quirks" lists areas of PCI configuration space which it is safe for pciback to allow the guest to modify. (I'm going to hack libxl to set "permissive" to test this theory.)
I think that based on what Keir says we should just expose the permissive setting in xl/libxl for the time being, that's a far simpler patch. No need for the full power of per-register whitelisting
Ian.
Quoted 9 lines · Ian Campbell
Quoted 4 lines · George Dunlap
The devices in fact don't work quite right, AFAICT. So I'm gathering that the "quirks" lists areas of PCI configuration space which it is safe for pciback to allow the guest to modify. (I'm going to hack libxl to set "permissive" to test this theory.)
I think that based on what Keir says we should just expose the permissive setting in xl/libxl for the time being, that's a far simpler patch. No need for the full power of per-register whitelisting
Looks like this is just a case of writing the BDF of a device to a sysfs node or booting with xen-pciback.permissive=1 to turn it on globally. Possibly this could be "fixed" purely by documentation? I've added it to the TODO as a nice to have with George's name next to it, hope that's OK.
Ian.
Quoted 11 lines · Ian Campbell
Quoted 9 lines · Ian Campbell
Quoted 4 lines · George Dunlap
The devices in fact don't work quite right, AFAICT. So I'm gathering that the "quirks" lists areas of PCI configuration space which it is safe for pciback to allow the guest to modify. (I'm going to hack libxl to set "permissive" to test this theory.)
I think that based on what Keir says we should just expose the permissive setting in xl/libxl for the time being, that's a far simpler patch. No need for the full power of per-register whitelisting
Quoted 5 lines
Looks like this is just a case of writing the BDF of a device to a sysfs node or booting with xen-pciback.permissive=1 to turn it on globally. Possibly this could be "fixed" purely by documentation? I've added it to the TODO as a nice to have with George's name next to it, hope that's OK.
It seems like having xl/libxl capable of doing the sysfs writing is a better thing, and shouldn't be too hard really. I'll try to hack that up this week.
Going forward, it would be nice if xl could do hot unplug and pciback binding, so people wouldn't have to muck about with rmmod and manual sysfs twiddling; but that will have to be a 4.3 thing I guess.
-George
Quoted 8 lines
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel