PVH VCPU hotplug support v7?
Ross Lagerwall
Reviewed-by Juergen GrossHi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream qemu).
Are you still planning on continuing with that patch series since your commit to Linux [2]?
[1] https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00060.html
[2]:
commit 2a7197f02dddf1f9cee300bd12512375ed56524a
Author: Boris Ostrovsky <[email protected]> Date: Mon Feb 6 10:58:05 2017 -0500
xen/pvh: Enable CPU hotplug
PVH guests don't (yet) receive ACPI hotplug interrupts and therefore need to monitor xenstore for CPU hotplug event.
Thanks,
Signature · 6 lines
Ross Lagerwall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 11 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream qemu).
Are you still planning on continuing with that patch series since your commit to Linux [2]?
This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
I don't think this has been dealt with yet (copying Roger).
-boris
Quoted 11 lines
[1]
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00060.html[2]:
commit2a7197f02dddf1f9cee300bd12512375ed56524aAuthor: Boris Ostrovsky <[email protected]> Date: Mon Feb 6 10:58:05 2017 -0500xen/pvh: Enable CPU hotplug
Quoted 7 lines
PVH guests don't (yet) receive ACPI hotplug interrupts and therefore need to monitor xenstore for CPU hotplug event.
Signed-off-by Boris Ostrovsky <[email protected]>Reviewed-by Juergen Gross <[email protected]>Thanks,
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 10 lines · Boris Ostrovsky
Quoted 9 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream qemu).
Quoted 8 lines
Quoted 2 lines
Are you still planning on continuing with that patch series since your commit to Linux [2]?
This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
I don't think this has been dealt with yet (copying Roger).
From the point of view of unblocking several pieces of work, it would be fine for this logic to be behind an emulation flag, just like LAPIC/etc.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Boris Ostrovsky
Quoted 11 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream qemu).
Are you still planning on continuing with that patch series since your commit to Linux [2]?
Quoted 8 lines
Quoted 6 lines
This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
I don't think this has been dealt with yet (copying Roger).
From the point of view of unblocking several pieces of work, it would be fine for this logic to be behind an emulation flag, just like LAPIC/etc.
The (I think) last message discussing this series was
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00143.html
Are you suggesting extracting pieces that would move hotplug support for HVM guests from qemu to hypervisor/toolstack but leave all PVH-specific code out? (The feature flag is part of this series ---
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00059.html)
-boris
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 23 lines · Boris Ostrovsky
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Boris Ostrovsky
Quoted 11 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream qemu).
Are you still planning on continuing with that patch series since your commit to Linux [2]?
Quoted 8 lines
Quoted 6 lines
This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
I don't think this has been dealt with yet (copying Roger).
From the point of view of unblocking several pieces of work, it would be
fine for this logic to be behind an emulation flag, just like LAPIC/etc.
Quoted 9 lines
The (I think) last message discussing this series was
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00143.html
Are you suggesting extracting pieces that would move hotplug support for HVM guests from qemu to hypervisor/toolstack but leave all PVH-specific code out? (The feature flag is part of this series ---
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00059.html)
I think(?) Andrew was suggesting to have an emulation flag such that hotplug support is moved into the hypervisor for HVM guests _and_ PVH guests except for PVH dom0.
I don't know what work this unblocks that he was referring to.
Signature · 6 lines
Ross Lagerwall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 41 lines · Ross Lagerwall
Quoted 30 lines · Boris Ostrovsky
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Boris Ostrovsky
Quoted 10 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream
qemu).Quoted 3 lines
Are you still planning on continuing with that patch series since your
commit to Linux [2]?This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
Quoted 5 lines
Quoted 1 line
I don't think this has been dealt with yet (copying Roger).
From the point of view of unblocking several pieces of work, it
would be
fine for this logic to be behind an emulation flag, just like LAPIC/etc.The (I think) last message discussing this series was
Quoted 9 lines
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00143.html
Are you suggesting extracting pieces that would move hotplug support for HVM guests from qemu to hypervisor/toolstack but leave all PVH-specific code out? (The feature flag is part of this series ---
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00059.html)
Quoted 3 lines
I think(?) Andrew was suggesting to have an emulation flag such that hotplug support is moved into the hypervisor for HVM guests _and_ PVH guests except for PVH dom0.
That (different handling for PVH dom0 vs. domU) was exactly what Jan was objecting to. (I'll add him too).
-boris
Quoted 3 lines
I don't know what work this unblocks that he was referring to.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 42 lines · Boris Ostrovsky
Quoted 41 lines · Ross Lagerwall
Quoted 39 lines · Boris Ostrovsky
Quoted 21 lines · Andrew Cooper
Quoted 20 lines · Boris Ostrovsky
Quoted 10 lines · Ross Lagerwall
Hi Boris,
I've modified your PVH VCPU hotplug support v6 patch series [1] to support HVM guests running _with_ a device model for XenServer's purposes. This is useful because it moves the vCPU hotplug handling out of QEMU and allows it to mostly be shared with PVH. It will also allow unplugging vCPUs (libxl currently only does cpu-add for upstream
qemu).Quoted 3 lines
Are you still planning on continuing with that patch series since your
commit to Linux [2]?This series has been put on hold until we figure out what to do with hotplug for PVH dom0. (The problem was the "dual" view by dom0 of APCI CPU namespace --- on hotplug event dom0 has to somehow figure out whether the event was due to (dis)appearance of a physical or virtual CPU).
Quoted 5 lines
Quoted 1 line
I don't think this has been dealt with yet (copying Roger).
From the point of view of unblocking several pieces of work, it
would be
fine for this logic to be behind an emulation flag, just like LAPIC/etc.The (I think) last message discussing this series was
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00143.html
Are you suggesting extracting pieces that would move hotplug support for HVM guests from qemu to hypervisor/toolstack but leave all PVH-specific code out? (The feature flag is part of this series ---
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00059.html)
Quoted 6 lines
Quoted 3 lines
I think(?) Andrew was suggesting to have an emulation flag such that hotplug support is moved into the hypervisor for HVM guests _and_ PVH guests except for PVH dom0.
That (different handling for PVH dom0 vs. domU) was exactly what Jan was objecting to. (I'll add him too).
I think it should be fine to move the vCPU hotplug out of QEMU into Xen, but I'm not sure we should enable it for PVH DomU guests, not until we know exactly if we can also use ACPI vCPU hotplug for Dom0.
In any case, if we ever support ACPI vCPU hotplug for PVH the code must reside in the hypervisor.
FWIW, I posted my proposal to the ACPI working group, and I didn't get any Nacks, but it's still a little bit down the road for me to actually try to implement it.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel