xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* PVH VCPU hotplug support v7?
@ 2017-07-31 13:20 Ross Lagerwall
  2017-07-31 13:55 ` Boris Ostrovsky
  0 siblings, 1 reply; 7+ messages in thread
From: Ross Lagerwall @ 2017-07-31 13:20 UTC (permalink / raw)
  To: Boris Ostrovsky; +Cc: xen-devel

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]?

[1] 
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00060.html

[2]:
commit 2a7197f02dddf1f9cee300bd12512375ed56524a
Author: Boris Ostrovsky <boris.ostrovsky@oracle.com>
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.

     Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
     Reviewed-by: Juergen Gross <jgross@suse.com>

Thanks,
-- 
Ross Lagerwall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 13:20 PVH VCPU hotplug support v7? Ross Lagerwall
@ 2017-07-31 13:55 ` Boris Ostrovsky
  2017-07-31 14:12   ` Andrew Cooper
  0 siblings, 1 reply; 7+ messages in thread
From: Boris Ostrovsky @ 2017-07-31 13:55 UTC (permalink / raw)
  To: Ross Lagerwall; +Cc: xen-devel, Roger Pau Monné

On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
> 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


>
> [1]
> https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg00060.html
>
> [2]:
> commit 2a7197f02dddf1f9cee300bd12512375ed56524a
> Author: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> 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.
>
>     Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>     Reviewed-by: Juergen Gross <jgross@suse.com>
>
> Thanks,


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 13:55 ` Boris Ostrovsky
@ 2017-07-31 14:12   ` Andrew Cooper
  2017-07-31 14:29     ` Boris Ostrovsky
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cooper @ 2017-07-31 14:12 UTC (permalink / raw)
  To: Boris Ostrovsky, Ross Lagerwall; +Cc: xen-devel, Roger Pau Monné

On 31/07/17 14:55, Boris Ostrovsky wrote:
> On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
>> 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).

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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 14:12   ` Andrew Cooper
@ 2017-07-31 14:29     ` Boris Ostrovsky
  2017-07-31 15:36       ` Ross Lagerwall
  0 siblings, 1 reply; 7+ messages in thread
From: Boris Ostrovsky @ 2017-07-31 14:29 UTC (permalink / raw)
  To: Andrew Cooper, Ross Lagerwall; +Cc: xen-devel, Roger Pau Monné

On 07/31/2017 10:12 AM, Andrew Cooper wrote:
> On 31/07/17 14:55, Boris Ostrovsky wrote:
>> On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
>>> 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).
> 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 14:29     ` Boris Ostrovsky
@ 2017-07-31 15:36       ` Ross Lagerwall
  2017-07-31 16:18         ` Boris Ostrovsky
  0 siblings, 1 reply; 7+ messages in thread
From: Ross Lagerwall @ 2017-07-31 15:36 UTC (permalink / raw)
  To: Boris Ostrovsky, Andrew Cooper; +Cc: xen-devel, Roger Pau Monné

On 07/31/2017 03:29 PM, Boris Ostrovsky wrote:
> On 07/31/2017 10:12 AM, Andrew Cooper wrote:
>> On 31/07/17 14:55, Boris Ostrovsky wrote:
>>> On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
>>>> 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).
>>  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)
> 

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.

-- 
Ross Lagerwall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 15:36       ` Ross Lagerwall
@ 2017-07-31 16:18         ` Boris Ostrovsky
  2017-08-01  7:28           ` Roger Pau Monné
  0 siblings, 1 reply; 7+ messages in thread
From: Boris Ostrovsky @ 2017-07-31 16:18 UTC (permalink / raw)
  To: Ross Lagerwall, Andrew Cooper
  Cc: xen-devel, Jan Beulich, Roger Pau Monné

On 07/31/2017 11:36 AM, Ross Lagerwall wrote:
> On 07/31/2017 03:29 PM, Boris Ostrovsky wrote:
>> On 07/31/2017 10:12 AM, Andrew Cooper wrote:
>>> On 31/07/17 14:55, Boris Ostrovsky wrote:
>>>> On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
>>>>> 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).
>>>  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)
>>
>>
>
> 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

>
> I don't know what work this unblocks that he was referring to.
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PVH VCPU hotplug support v7?
  2017-07-31 16:18         ` Boris Ostrovsky
@ 2017-08-01  7:28           ` Roger Pau Monné
  0 siblings, 0 replies; 7+ messages in thread
From: Roger Pau Monné @ 2017-08-01  7:28 UTC (permalink / raw)
  To: Boris Ostrovsky; +Cc: Ross Lagerwall, xen-devel, Jan Beulich, Andrew Cooper

On Mon, Jul 31, 2017 at 12:18:28PM -0400, Boris Ostrovsky wrote:
> On 07/31/2017 11:36 AM, Ross Lagerwall wrote:
> > On 07/31/2017 03:29 PM, Boris Ostrovsky wrote:
> >> On 07/31/2017 10:12 AM, Andrew Cooper wrote:
> >>> On 31/07/17 14:55, Boris Ostrovsky wrote:
> >>>> On 07/31/2017 09:20 AM, Ross Lagerwall wrote:
> >>>>> 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).
> >>>  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)
> >>
> >>
> >
> > 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-01  7:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-31 13:20 PVH VCPU hotplug support v7? Ross Lagerwall
2017-07-31 13:55 ` Boris Ostrovsky
2017-07-31 14:12   ` Andrew Cooper
2017-07-31 14:29     ` Boris Ostrovsky
2017-07-31 15:36       ` Ross Lagerwall
2017-07-31 16:18         ` Boris Ostrovsky
2017-08-01  7:28           ` Roger Pau Monné

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).