viridian: remove implicit limit of 64 VPs per partition
PATCH 1/2 viridian: remove implicit limit of 64 VPs per partition
TLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf 0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
Since we didn't expose the leaf before and to keep CPUID data consistent for incoming streams from previous Xen versions - let's keep it behind an option.
--- tools/libs/light/libxl_x86.c | 2 +- xen/arch/x86/hvm/viridian/viridian.c | 23 +++++++++++++++++++++++ xen/include/public/hvm/params.h | 7 ++++++- 3 files changed, 30 insertions(+), 2 deletions(-)
tools/libs/light/libxl_x86.c +1 -1
@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;if (!libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_FREQ )) mask |= HVMPV_no_freq;
xen/arch/x86/hvm/viridian/viridian.c +23 -0
@@ -209,6 +209,29 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, res->b = viridian_spinlock_retry_count;break ; +case 5 : +/* +* From "Requirements for Implementing the Microsoft Hypervisor +* Interface": +* +* "On Windows operating systems versions through Windows Server +* 2008 R2, reporting the HV#1 hypervisor interface limits +* the Windows virtual machine to a maximum of 64 VPs, regardless of +* what is reported via CPUID.40000005.EAX. +* +* Starting with Windows Server 2012 and Windows 8, if +* CPUID.40000005.EAX containsa value of -1, Windows assumes that +* the hypervisor imposes no specific limit to the number of VPs. +* In this case, Windows Server 2012 guest VMs may use more than 64 +* VPs, up to the maximum supported number of processors applicable +* to the specific Windows version being used." +* +* For compatibility we hide it behind an option. +*/ +if (viridian_feature_mask (d) & HVMPV_no_vp_limit ) + res->a =-1 ; +break ; +case 6 :/* Detected and in use hardware features. */ if ( cpu_has_vmx_virtualize_apic_accesses )
xen/include/public/hvm/params.h +6 -1
@@ -168,6 +168,10 @@#define _HVMPV_ex_processor_masks 10#define HVMPV_ex_processor_masks (1 << _HVMPV_ex_processor_masks) +/* Allow more than 64 VPs */ +#define _HVMPV_no_vp_limit 11 +#define HVMPV_no_vp_limit (1 << _HVMPV_no_vp_limit) +#define HVMPV_feature_mask \ (HVMPV_base_freq | \ HVMPV_no_freq | \
@@ -179,7 +183,8 @@ HVMPV_synic | \ HVMPV_stimer | \ HVMPV_hcall_ipi | \ - HVMPV_ex_processor_masks) + HVMPV_ex_processor_masks | \ + HVMPV_no_vp_limit)#endif
Signature · 1 line
2.7.4
PATCH 2/2 viridian: allow vCPU hotplug for Windows VMs
If Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/
--- xen/arch/x86/hvm/viridian/viridian.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
xen/arch/x86/hvm/viridian/viridian.c +5 -1
@@ -76,6 +76,7 @@ typedef union _HV_CRASH_CTL_REG_CONTENTS }HV_CRASH_CTL_REG_CONTENTS ;/* Viridian CPUID leaf 3, Hypervisor Feature Indication */ +#define CPUID3D_CPU_DYNAMIC_PARTITIONING (1 << 3)#define CPUID3D_CRASH_MSRS (1 << 10)#define CPUID3D_SINT_POLLING (1 << 17)
@@ -179,8 +180,11 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, res->a = u.lo; res->b = u.hi; +/* Expose ability to bring up VPs dynamically - allows vCPU hotplug */ + res->d =CPUID3D_CPU_DYNAMIC_PARTITIONING ; +if (viridian_feature_mask (d) & HVMPV_crash_ctl ) - res->d =CPUID3D_CRASH_MSRS ; + res->d |=CPUID3D_CRASH_MSRS ;if (viridian_feature_mask (d) & HVMPV_synic ) res->d |=CPUID3D_SINT_POLLING ;
Signature · 1 line
2.7.4
RE: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 9 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 8 lines
If Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/
I don't think that discussion really confirmed it was safe... just that empirically it appeared to be so. I think we should err on the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
Paul
Quoted 33 lines
Signed-off-by Igor Druzhinin <[email protected]>--- xen/arch/x86/hvm/viridian/viridian.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)xen/arch/x86/hvm/viridian/viridian.c +5
-2@@ -76,6 +76,7 @@ typedef union _HV_CRASH_CTL_REG_CONTENTS }HV_CRASH_CTL_REG_CONTENTS ;/* Viridian CPUID leaf 3, Hypervisor Feature Indication */ +#define CPUID3D_CPU_DYNAMIC_PARTITIONING (1 << 3)#define CPUID3D_CRASH_MSRS (1 << 10)#define CPUID3D_SINT_POLLING (1 << 17)@@ -179,8 +180,11 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, res->a = u.lo; res->b = u.hi; +/* Expose ability to bring up VPs dynamically - allows vCPU hotplug */ + res->d =CPUID3D_CPU_DYNAMIC_PARTITIONING ; +if (viridian_feature_mask (d) & HVMPV_crash_ctl ) - res->d =CPUID3D_CRASH_MSRS ; + res->d |=CPUID3D_CRASH_MSRS ;if (viridian_feature_mask (d) & HVMPV_synic ) res->d |=CPUID3D_SINT_POLLING ; --2.7.4
Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 15 lines · Paul Durrant
Quoted 15 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsIf Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
Quoted 5 lines
Quoted 2 lines
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/I don't think that discussion really confirmed it was safe... just that empirically it appeared to be so. I think we should err on the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
QEMU was having this code since 2016 and nobody complained is good enough for me - but if you insist we need an option - ok, I will add one.
Igor
RE: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 28 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:30
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 18 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsIf Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/
Quoted 7 lines
Quoted 1 line
I don't think that discussion really confirmed it was safe... just that empirically it appeared to
be so. I think we should err on
Quoted 1 line
the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
QEMU was having this code since 2016 and nobody complained is good enough for me - but if you insist we need an option - ok, I will add one.
Given that it has not yet been in a release, perhaps you could just guard this and the implementation of leaf 0x40000005 using HVMPV_ex_processor_masks?
Paul
Quoted 1 line
Igor
Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 29 lines · Paul Durrant
Quoted 29 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:30
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 19 lines · Paul Durrant
Quoted 9 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 8 lines
If Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/I don't think that discussion really confirmed it was safe... just that empirically it appeared to
Quoted 8 lines
Quoted 6 lines
be so. I think we should err on
Quoted 1 line
the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
QEMU was having this code since 2016 and nobody complained is good enough for me - but if you insist we need an option - ok, I will add one.
Given that it has not yet been in a release, perhaps you could just guard this and the implementation of leaf
0x40000005usingHVMPV_ex_processor_masks?
That looks sloppy and confusing to me - let's have a separate option instead.
Igor
RE: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 42 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:36
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 32 lines · Paul Durrant
Quoted 32 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:30
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 15 lines · Paul Durrant
Quoted 15 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsIf Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
Quoted 4 lines
Quoted 2 lines
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/I don't think that discussion really confirmed it was safe... just that empirically it appeared to
be so. I think we should err on
Quoted 1 line
the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
QEMU was having this code since 2016 and nobody complained is good enough for me - but if you insist we need an option - ok, I will add one.
Given that it has not yet been in a release, perhaps you could just guard this and the
implementation of leaf
0x40000005usingHVMPV_ex_processor_masks?That looks sloppy and confusing to me - let's have a separate option instead.
Yes, for this I guess it is really a separate thing. Using HVMPV_ex_processor_masks to control the presence of leaf 0x40000005 seems reasonable (since it's all about being able to use >64 vcpus). Perhaps a new HVMPV_cpu_hotplug for this one?
Paul
Quoted 1 line
Igor
Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs
Quoted 46 lines · Paul Durrant
Quoted 46 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:36
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 36 lines · Paul Durrant
Quoted 35 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 11:30
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsQuoted 15 lines · Paul Durrant
Quoted 15 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMsIf Viridian extensions are enabled, Windows wouldn't currently allow a hotplugged vCPU to be brought up dynamically. We need to expose a special bit to let the guest know we allow it. It appears we can just start exposing it without worrying too much about compatibility - see relevant QEMU discussion here:
Quoted 4 lines
Quoted 2 lines
https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email-
[email protected]/I don't think that discussion really confirmed it was safe... just that empirically it appeared to
be so. I think we should err on
Quoted 1 line
the side of caution and have this behind a feature flag (but I'm happy for it to default to on).
QEMU was having this code since 2016 and nobody complained is good enough for me - but if you insist we need an option - ok, I will add one.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Given that it has not yet been in a release, perhaps you could just guard this and the
implementation of leaf
0x40000005usingHVMPV_ex_processor_masks?That looks sloppy and confusing to me - let's have a separate option instead.
Yes, for this I guess it is really a separate thing. Using
HVMPV_ex_processor_masksto control the presence of leaf0x40000005seems reasonable (since it's all about being able to use >64 vcpus). Perhaps a newHVMPV_cpu_hotplugfor this one?
Agree.
Igor
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was implemented... no need for the extra leaf. The documentation for 0x40000005 states " Describes the scale limits supported in the current hypervisor implementation. If any value is zero, the hypervisor does not expose the corresponding information". It does not say (in section 7.8.1 or elsewhere AFAICT) what implications that has for VP_INDEX.
In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying what the semantics of not implementing leaf 0x40000005 are, only that if implementing it then -1 must be used to break the 64 VP limit. It also says that reporting -1 in 0x40000005 means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearly not true if ExProcessorMasks is enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which version of Windows? I'd like to get a repro myself.
Paul
Quoted 84 lines
Since we didn't expose the leaf before and to keep CPUID data consistent for incoming streams from previous Xen versions - let's keep it behind an option.
Signed-off-by Igor Druzhinin <[email protected]>--- tools/libs/light/libxl_x86.c | 2 +- xen/arch/x86/hvm/viridian/viridian.c | 23 +++++++++++++++++++++++ xen/include/public/hvm/params.h | 7 ++++++- 3 files changed, 30 insertions(+), 2 deletions(-)tools/libs/light/libxl_x86.c +1
-1@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;if (!libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_FREQ )) mask |= HVMPV_no_freq;xen/arch/x86/hvm/viridian/viridian.c +23
-0@@ -209,6 +209,29 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, res->b = viridian_spinlock_retry_count;break ; +case 5 : +/* +* From "Requirements for Implementing the Microsoft Hypervisor +* Interface": +* +* "On Windows operating systems versions through Windows Server +* 2008 R2, reporting the HV#1 hypervisor interface limits +* the Windows virtual machine to a maximum of 64 VPs, regardless of +* what is reported via CPUID.40000005.EAX. +* +* Starting with Windows Server 2012 and Windows 8, if +* CPUID.40000005.EAX containsa value of -1, Windows assumes that +* the hypervisor imposes no specific limit to the number of VPs. +* In this case, Windows Server 2012 guest VMs may use more than 64 +* VPs, up to the maximum supported number of processors applicable +* to the specific Windows version being used." +* +* For compatibility we hide it behind an option. +*/ +if (viridian_feature_mask (d) & HVMPV_no_vp_limit ) + res->a =-1 ; +break ; +case 6 :/* Detected and in use hardware features. */ if ( cpu_has_vmx_virtualize_apic_accesses )xen/include/public/hvm/params.h +6
-2@@ -168,6 +168,10 @@#define _HVMPV_ex_processor_masks 10#define HVMPV_ex_processor_masks (1 << _HVMPV_ex_processor_masks) +/* Allow more than 64 VPs */ +#define _HVMPV_no_vp_limit 11 +#define HVMPV_no_vp_limit (1 << _HVMPV_no_vp_limit) +#define HVMPV_feature_mask \ (HVMPV_base_freq | \ HVMPV_no_freq | \@@ -179,7 +183,8 @@ HVMPV_synic | \ HVMPV_stimer | \ HVMPV_hcall_ipi | \ - HVMPV_ex_processor_masks) + HVMPV_ex_processor_masks | \ + HVMPV_no_vp_limit)#endif --2.7.4
(Sorry for webmail).
The forthcoming hotfix on Win10/Server2019 (Build 20270) is in serious problems without these two fixes, and never starts secondary processors.
~Andrew
-----Original Message-----
From: Paul Durrant <[email protected]>
Sent: Friday, January 8, 2021 8:32 AM
To: Igor Druzhinin <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; Anthony Perard <[email protected]>; Andrew Cooper <[email protected]>; George Dunlap <[email protected]>; [email protected]; [email protected]; [email protected]; Roger Pau Monne <[email protected]>
Subject: RE: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partition
Quoted 21 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while
0 (that we currently expose) means the default restriction is still present.
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was implemented... no need for the extra leaf.
The documentation for 0x40000005 states " Describes the scale limits supported in the current hypervisor implementation. If any value is zero, the hypervisor does not expose the corresponding information". It does not say (in section 7.8.1 or elsewhere AFAICT) what implications that has for VP_INDEX.
In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying what the semantics of not implementing leaf 0x40000005 are, only that if implementing it then -1 must be used to break the 64 VP limit. It also says that reporting -1 in 0x40000005 means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearly not true if ExProcessorMasks is enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which version of Windows? I'd like to get a repro myself.
Paul
Quoted 86 lines
Since we didn't expose the leaf before and to keep CPUID data
consistent for incoming streams from previous Xen versions - let's keep it behind an option.Signed-off-by Igor Druzhinin <[email protected]>--- tools/libs/light/libxl_x86.c | 2 +- xen/arch/x86/hvm/viridian/viridian.c | 23 +++++++++++++++++++++++ xen/include/public/hvm/params.h | 7 ++++++- 3 files changed, 30 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/tools/libs/light/libxl_x86.cindex 86d2729..96c8bf1 100644tools/libs/light/libxl_x86.c +1
-1@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;if (!libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_FREQ ))mask |= HVMPV_no_freq;xen/arch/x86/hvm/viridian/viridian.c +23
-0@@ -209,6 +209,29 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf, res->b = viridian_spinlock_retry_count;break ; +case 5 : +/* +* From "Requirements for Implementing the Microsoft Hypervisor +* Interface": +* +* "On Windows operating systems versions through Windows Server +* 2008 R2, reporting the HV#1 hypervisor interface limits +* the Windows virtual machine to a maximum of 64 VPs, regardless of +* what is reported via CPUID.40000005.EAX. +* +* Starting with Windows Server 2012 and Windows 8, if +* CPUID.40000005.EAX containsa value of -1, Windows assumes that +* the hypervisor imposes no specific limit to the number of VPs. +* In this case, Windows Server 2012 guest VMs may use more than 64 +* VPs, up to the maximum supported number of processors applicable +* to the specific Windows version being used." +* +* For compatibility we hide it behind an option. +*/ +if (viridian_feature_mask (d) & HVMPV_no_vp_limit ) + res->a =-1 ; +break ; +case 6 :/* Detected and in use hardware features. */ if ( cpu_has_vmx_virtualize_apic_accesses ) diff --git
a/xen/include/public/hvm/params.hb/xen/include/public/hvm/params.hindex 3b0a0f4..805f4ca 100644xen/include/public/hvm/params.h +6
-2@@ -168,6 +168,10 @@#define _HVMPV_ex_processor_masks 10#define HVMPV_ex_processor_masks (1 << _HVMPV_ex_processor_masks) +/* Allow more than 64 VPs */ +#define _HVMPV_no_vp_limit 11 +#define HVMPV_no_vp_limit (1 << _HVMPV_no_vp_limit) +#define HVMPV_feature_mask \ (HVMPV_base_freq | \ HVMPV_no_freq | \@@ -179,7 +183,8 @@ HVMPV_synic | \ HVMPV_stimer | \ HVMPV_hcall_ipi | \ - HVMPV_ex_processor_masks) + HVMPV_ex_processor_masks | \ + HVMPV_no_vp_limit)#endif --2.7.4
Quoted 22 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
Quoted 4 lines
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was implemented... no need for the extra leaf. The documentation for
0x40000005states " Describes the scale limits supported in the current hypervisor implementation. If any value is zero, the hypervisor does not expose the corresponding information". It does not say (in section 7.8.1 or elsewhere AFAICT) what implications that has forVP_INDEX.
The text says that VP_INDEX "must" be below that limit - that is clear enough for me.
I admit I have not tested with ExProssorMasks exposed but I disabled TLB flush and IPI extensions before that - Windows is mysterious in it's handling of this logic. Let me align all of the changes and perform some clean cut testing.
Quoted 2 lines
In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying what the semantics of not implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the 64 VP limit.
Yes, that's exactly the info this change is based on.
Quoted 3 lines
It also says that
reporting -1 in0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearly not true if ExProcessorMasks is enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
True - I assumed that for them to work ExProcessorMasks is necessary then.
Igor
Quoted 27 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was implemented... no need for the extra leaf. The documentation for
0x40000005states " Describes the scale limits supported in the current hypervisor implementation. If any value is zero, the hypervisor does not expose the corresponding information". It does not say (in section 7.8.1 or elsewhere AFAICT) what implications that has forVP_INDEX.
Quoted 7 lines
In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying what the semantics of not implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the 64 VP limit. It also says that reporting -1 in0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearly not true if ExProcessorMasks is enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which version of Windows? I'd like to get a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
and that would be fine but the existing documentation for ex_processor_masks states that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."
You then would expect 64+ vCPU VM to boot without ex_processors_mask, hcall_remote_tlb_flush and hcall_ipi.
So,
2) without ExProcessorMaks and 66 vCPUs assigned and with hcall_remote_tlb_flush and hcall_ipi disabled: WS19 BSODs and vNext fails to initialize secondary CPUs
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and with hcall_remote_tlb_flush and hcall_ipi disabled WS19 and vNext boot correctly
So we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
Igor
Quoted 57 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 09 January 2021 00:56
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 17 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 6 lines
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was
implemented... no need for the extra leaf.
Quoted 1 line
The documentation for
0x40000005states " Describes the scale limits supported in the currenthypervisor implementation. If any
Quoted 1 line
value is zero, the hypervisor does not expose the corresponding information". It does not say (in
section 7.8.1 or elsewhere AFAICT)
Quoted 3 lines
what implications that has for
VP_INDEX.In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying
what the semantics of not
Quoted 1 line
implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the 64VP limit. It also says that
Quoted 1 line
reporting -1 in
0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearlynot true if ExProcessorMasks is
Quoted 3 lines
enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which
version of Windows? I'd like to get
Quoted 1 line
a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
Quoted 8 lines
and that would be fine but the existing documentation for
ex_processor_masksstates that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."You then would expect 64+ vCPU VM to boot without
ex_processors_mask,hcall_remote_tlb_flushandhcall_ipi.
Indeed.
Quoted 5 lines
So,
2) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled: WS19 BSODs and vNext fails to initialize secondary CPUs
This is not what I recall from testing but I can confirm I see the same now.
Quoted 7 lines
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled WS19 and vNext boot correctlySo we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
I think we go with your change. I guess we can conclude then that the separate viridian flag as part of the base set is the right way to go (to stop the leaf magically appearing on migrate of existing guests) and leave ex_processor_masks (and the documentation) as-is.
You can add my R-b to the patch.
Paul
Quoted 1 line
Igor
Quoted 80 lines · Paul Durrant
Quoted 57 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 09 January 2021 00:56
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 17 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 6 lines
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was
implemented... no need for the extra leaf.
Quoted 1 line
The documentation for
0x40000005states " Describes the scale limits supported in the currenthypervisor implementation. If any
Quoted 1 line
value is zero, the hypervisor does not expose the corresponding information". It does not say (in
section 7.8.1 or elsewhere AFAICT)
Quoted 3 lines
what implications that has for
VP_INDEX.In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying
what the semantics of not
Quoted 1 line
implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the 64VP limit. It also says that
Quoted 1 line
reporting -1 in
0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearlynot true if ExProcessorMasks is
Quoted 3 lines
enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which
version of Windows? I'd like to get
Quoted 1 line
a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
Quoted 8 lines
and that would be fine but the existing documentation for
ex_processor_masksstates that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."You then would expect 64+ vCPU VM to boot without
ex_processors_mask,hcall_remote_tlb_flushandhcall_ipi.Indeed.
Quoted 5 lines
So,
2) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled: WS19 BSODs and vNext fails to initialize secondary CPUsThis is not what I recall from testing but I can confirm I see the same now.
Quoted 4 lines
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled WS19 and vNext boot correctly
Quoted 7 lines
Quoted 3 lines
So we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
I think we go with your change. I guess we can conclude then that the separate viridian flag as part of the base set is the right way to go (to stop the leaf magically appearing on migrate of existing guests) and leave
ex_processor_masks(and the documentation) as-is.You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Jan
Quoted 99 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]; 'Igor Druzhinin' <[email protected]>
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 35 lines · Paul Durrant
Quoted 35 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 09 January 2021 00:56
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 17 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 6 lines
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was
implemented... no need for the extra leaf.
Quoted 1 line
The documentation for
0x40000005states " Describes the scale limits supported in the currentQuoted 8 lines
Quoted 8 lines
hypervisor implementation. If any
Quoted 1 line
value is zero, the hypervisor does not expose the corresponding information". It does not say (in
section 7.8.1 or elsewhere AFAICT)
Quoted 3 lines
what implications that has for
VP_INDEX.In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying
what the semantics of not
Quoted 1 line
implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the64
Quoted 37 lines
Quoted 14 lines
VP limit. It also says that
Quoted 1 line
reporting -1 in
0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearlynot true if ExProcessorMasks is
Quoted 3 lines
enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which
version of Windows? I'd like to get
Quoted 1 line
a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
Quoted 8 lines
and that would be fine but the existing documentation for
ex_processor_masksstates that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."You then would expect 64+ vCPU VM to boot without
ex_processors_mask,hcall_remote_tlb_flushandhcall_ipi.Indeed.
Quoted 5 lines
So,
2) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled: WS19 BSODs and vNext fails to initialize secondary CPUsThis is not what I recall from testing but I can confirm I see the same now.
Quoted 4 lines
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled WS19 and vNext boot correctlyQuoted 5 lines
Quoted 3 lines
So we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
I think we go with your change. I guess we can conclude then that the separate viridian flag as part
of the base set is the right way to go (to stop the leaf magically appearing on migrate of existing guests) and leave
ex_processor_masks(and the documentation) as-is.Quoted 1 line
Quoted 9 lines
Quoted 1 line
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
Paul
Quoted 1 line
Jan
Quoted 123 lines
-----Original Message-----
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10
To: 'Jan Beulich' <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]; 'Igor Druzhinin' <[email protected]>
Subject: RE: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 9 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]; 'Igor Druzhinin' <[email protected]>
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 38 lines
Quoted 37 lines · Paul Durrant
Quoted 37 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 09 January 2021 00:56
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 17 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 6 lines
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was
implemented... no need for the extra leaf.
Quoted 1 line
The documentation for
0x40000005states " Describes the scale limits supported in the currenthypervisor implementation. If any
Quoted 1 line
value is zero, the hypervisor does not expose the corresponding information". It does not say
(in
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
section 7.8.1 or elsewhere AFAICT)
Quoted 3 lines
what implications that has for
VP_INDEX.In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything
saying
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
what the semantics of not
Quoted 1 line
implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the64
Quoted 2 lines
Quoted 2 lines
VP limit. It also says that
Quoted 1 line
reporting -1 in
0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which isclearly
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
not true if ExProcessorMasks is
Quoted 1 line
enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of
salt.
Quoted 33 lines
Quoted 33 lines
Quoted 10 lines
Quoted 2 lines
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which
version of Windows? I'd like to get
Quoted 1 line
a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
Quoted 8 lines
and that would be fine but the existing documentation for
ex_processor_masksstates that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."You then would expect 64+ vCPU VM to boot without
ex_processors_mask,hcall_remote_tlb_flushandhcall_ipi.Indeed.
Quoted 5 lines
So,
2) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled: WS19 BSODs and vNext fails to initialize secondary CPUsThis is not what I recall from testing but I can confirm I see the same now.
Quoted 4 lines
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled WS19 and vNext boot correctlyQuoted 5 lines
Quoted 5 lines
Quoted 3 lines
So we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
I think we go with your change. I guess we can conclude then that the separate viridian flag as
part
Quoted 12 lines
of the base set is the right way to go (to stop the leaf magically appearing on migrate of existing guests) and leave
ex_processor_masks(and the documentation) as-is.Quoted 2 lines
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 3 lines
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
Paul
Quoted 4 lines
Paul
Quoted 1 line
Jan
Quoted 17 lines · Paul Durrant
Quoted 17 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 13 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00Quoted 1 line · Paul Durrant
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 7 lines
Quoted 3 lines
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
Jan
Quoted 31 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:16
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]; 'Igor Druzhinin' <[email protected]>
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 21 lines · Paul Durrant
Quoted 20 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 4 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00On 11.01.2021 09:45, Paul Durrant wrote:
Quoted 9 lines
Quoted 1 line
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
Quoted 6 lines
Quoted 3 lines
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
No, VPN issues make use of IRC painful I'm afraid. Let's see what Igor says.
Paul
Quoted 2 lines
Jan
Quoted 22 lines · Jan Beulich
Quoted 21 lines · Paul Durrant
Quoted 20 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 4 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00On 11.01.2021 09:45, Paul Durrant wrote:
Quoted 9 lines
Quoted 1 line
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
Quoted 6 lines
Quoted 3 lines
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
I don't see a scenario where somebody would want to opt out of unlimited VPs per domain given the leaf with -1 is supported on all Windows versions. I can make it configurable in the future if reports re-surface it causes troubles somewhere.
I'd like to do the same with CPU hotplug bit (given it's not configurable in QEMU either) but wanted to hear an opinion here?
Igor
Quoted 25 lines · Igor Druzhinin
Quoted 24 lines · Jan Beulich
Quoted 23 lines · Paul Durrant
Quoted 17 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 4 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00On 11.01.2021 09:45, Paul Durrant wrote:
Quoted 9 lines
Quoted 1 line
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 3 lines
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
... although adding an option in xl/libxl isn't that much work, I suppose.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
I don't see a scenario where somebody would want to opt out of unlimited VPs per domain given the leaf with -1 is supported on all Windows versions.
So Paul - commit patch as is then?
Quoted 2 lines
I can make it configurable in the future if reports re-surface it causes troubles somewhere.
This is the slight concern I have: Having to make it configurable once someone has reported trouble would look a little late to me. Otoh I agree it may end up being dead code if no problems get ever encountered.
Jan
Quoted 47 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 13:38
To: Igor Druzhinin <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 19 lines · Igor Druzhinin
Quoted 18 lines · Jan Beulich
Quoted 17 lines · Paul Durrant
Quoted 17 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 13 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00Quoted 1 line · Paul Durrant
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I don't think we really need specific control in xl.cfg as this is a fix for some poorly
documented
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I
think
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
that's enough.
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
I don't see a scenario where somebody would want to opt out of unlimited VPs per domain given the leaf with -1 is supported on all Windows versions.
So Paul - commit patch as is then?
Quoted 8 lines
Quoted 2 lines
I can make it configurable in the future if reports re-surface it causes troubles somewhere.
This is the slight concern I have: Having to make it configurable once someone has reported trouble would look a little late to me. Otoh I agree it may end up being dead code if no problems get ever encountered.
I think I'm persuaded by your caution. Since it's not a massive amount of code, let's have flags for both wired through to xl and default them to on, so I withdraw my R-b for the libxl_x86.c hunk.
Paul
Quoted 1 line
Jan
Quoted 50 lines · Paul Durrant
Quoted 50 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 13:38
To: Igor Druzhinin <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 19 lines · Igor Druzhinin
Quoted 18 lines · Jan Beulich
Quoted 17 lines · Paul Durrant
Quoted 17 lines
From: Paul Durrant <[email protected]>
Sent: 11 January 2021 09:10Quoted 13 lines
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00Quoted 1 line · Paul Durrant
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I don't think we really need specific control in xl.cfg as this is a fix for some poorly
documented
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I
think
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
that's enough.
... although adding an option in xl/libxl isn't that much work, I suppose.
Igor, would you be ok plumbing it through?
This back and forth leaves unclear to me what I should do. I would have asked on irc, but you're not there as it seems.
I don't see a scenario where somebody would want to opt out of unlimited VPs per domain given the leaf with -1 is supported on all Windows versions.
So Paul - commit patch as is then?
Quoted 2 lines
I can make it configurable in the future if reports re-surface it causes troubles somewhere.
Quoted 7 lines
Quoted 5 lines
This is the slight concern I have: Having to make it configurable once someone has reported trouble would look a little late to me. Otoh I agree it may end up being dead code if no problems get ever encountered.
I think I'm persuaded by your caution. Since it's not a massive amount of code, let's have flags for both wired through to xl and default them to on, so I withdraw my R-b for the
libxl_x86.chunk.
Ok, will re-work the patches.
Igot
Quoted 109 lines · Paul Durrant
Quoted 99 lines
-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 11 January 2021 09:00
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; xen- [email protected]; 'Igor Druzhinin' <[email protected]>
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 35 lines · Paul Durrant
Quoted 35 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 09 January 2021 00:56
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionQuoted 17 lines · Paul Durrant
Quoted 17 lines
-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 08 January 2021 00:47
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH 1/2] viridian: remove implicit limit of 64 VPs per partitionTLFS 7.8.1 stipulates that "a virtual processor index must be less than the maximum number of virtual processors per partition" that "can be obtained through CPUID leaf
0x40000005". Furthermore, "Requirements for Implementing the Microsoft Hypervisor Interface" defines that starting from Windows Server 2012, which allowed more than 64 CPUs to be brought up, this leaf can now contain a value -1 basically assuming the hypervisor has no restriction while 0 (that we currently expose) means the default restriction is still present.Quoted 6 lines
Quoted 4 lines
Along with previous changes exposing ExProcessorMasks this allows a recent Windows VM with Viridian extension enabled to have more than 64 vCPUs without going into immediate BSOD.
This is very odd as I was happily testing with a 128 vCPU VM once ExProcessorMasks was
implemented... no need for the extra leaf.
Quoted 1 line
The documentation for
0x40000005states " Describes the scale limits supported in the currentQuoted 8 lines
Quoted 8 lines
hypervisor implementation. If any
Quoted 1 line
value is zero, the hypervisor does not expose the corresponding information". It does not say (in
section 7.8.1 or elsewhere AFAICT)
Quoted 3 lines
what implications that has for
VP_INDEX.In " Requirements for Implementing the Microsoft Hypervisor Interface" I don't see anything saying
what the semantics of not
Quoted 1 line
implementing leaf
0x40000005are, only that if implementing it then -1 must be used to break the64
Quoted 37 lines
Quoted 14 lines
VP limit. It also says that
Quoted 1 line
reporting -1 in
0x40000005means that 40000004.EAX bits 1 and 2 *must* be clear, which is clearlynot true if ExProcessorMasks is
Quoted 3 lines
enabled. That document is dated June 13th 2012 so I think it should be taken with a pinch of salt.
Have you actually observed a BSOD with >64 vCPUs when ExProcessorMasks is enabled? If so, which
version of Windows? I'd like to get
Quoted 1 line
a repro myself.
I return with more testing that confirm both my and your results.
1) with ExProcessorMask and 66 vCPUs assigned both current WS19 build and pre-release 20270 of vNext boot correctly with no changes
Quoted 8 lines
and that would be fine but the existing documentation for
ex_processor_masksstates that:
"Hence this enlightenment must be specified for guests with more than 64 vCPUs if B<hcall_remote_tlb_flush> and/or B<hcall_ipi> are also specified."You then would expect 64+ vCPU VM to boot without
ex_processors_mask,hcall_remote_tlb_flushandhcall_ipi.Indeed.
Quoted 5 lines
So,
2) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled: WS19 BSODs and vNext fails to initialize secondary CPUsThis is not what I recall from testing but I can confirm I see the same now.
Quoted 4 lines
After applying my change,
3) without ExProcessorMaks and 66 vCPUs assigned and withhcall_remote_tlb_flushandhcall_ipidisabled WS19 and vNext boot correctlyQuoted 5 lines
Quoted 3 lines
So we either need to change documentation and require ExProcessorMasks for all VMs with 64+ vCPUs or go with my change.
I think we go with your change. I guess we can conclude then that the separate viridian flag as part
of the base set is the right way to go (to stop the leaf magically appearing on migrate of existing guests) and leave
ex_processor_masks(and the documentation) as-is.Quoted 1 line
Quoted 9 lines
Quoted 1 line
You can add my R-b to the patch.
That's the unchanged patch then, including the libxl change that I had asked about and that I have to admit I don't fully follow Igor's responses? I'm hesitant to give an ack for that aspect of the change, yet I suppose the libxl maintainers will defer to x86 ones there. Alternatively Andrew or Roger could of course ack this ...
Quoted 1 line
I don't think we really need specific control in xl.cfg as this is a fix for some poorly documented semantics in the spec. The flag simply prevents the leaf magically appearing on migrate and I think that's enough.
Well, okay then. I can throw in this patch unchanged; it is my understanding that there'll be a v2 for patch 2.
Jan
tools/libs/light/libxl_x86.c static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid, · line 339
Quoted 8 lines · Igor Druzhinin
tools/libs/light/libxl_x86.c +1
-1@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;
Could you clarify the point of having the new control when at the guest config level there's no way to prevent it from getting enabled (short of disabling Viridian extensions altogether)?
Jan
Quoted 6 lines · Jan Beulich
Quoted 5 lines · Igor Druzhinin
tools/libs/light/libxl_x86.c +0
-0@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));
Quoted 8 lines
tools/libs/light/libxl_x86.c static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid, · line 339
Quoted 3 lines
tools/libs/light/libxl_x86.c +1
-1if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;Could you clarify the point of having the new control when at the guest config level there's no way to prevent it from getting enabled (short of disabling Viridian extensions altogether)?
If you migrate in from a host without this code (previous version of Xen)- you will keep the old behavior for the guest thus preserving binary compatibility.
Igor
Quoted 16 lines · Igor Druzhinin
Quoted 6 lines · Jan Beulich
Quoted 5 lines · Igor Druzhinin
tools/libs/light/libxl_x86.c +0
-0@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));Quoted 8 lines
tools/libs/light/libxl_x86.c static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid, · line 339
Quoted 3 lines
tools/libs/light/libxl_x86.c +1
-1if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;Could you clarify the point of having the new control when at the guest config level there's no way to prevent it from getting enabled (short of disabling Viridian extensions altogether)?
Quoted 3 lines
If you migrate in from a host without this code (previous version of Xen)- you will keep the old behavior for the guest thus preserving binary compatibility.
Keeping thing compatible like this is clearly a requirement. But is this enough? As soon as the guest reboots, it will see differing behavior, won't it?
Jan
Quoted 17 lines · Jan Beulich
Quoted 16 lines · Igor Druzhinin
Quoted 14 lines · Jan Beulich
tools/libs/light/libxl_x86.c static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid, · line 339
Quoted 8 lines · Igor Druzhinin
tools/libs/light/libxl_x86.c +1
-1@@ -336,7 +336,7 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,LOG (DETAIL ,"%s group enabled" ,libxl_viridian_enlightenment_to_string (v));if (libxl_bitmap_test (&enlightenments,LIBXL_VIRIDIAN_ENLIGHTENMENT_BASE )) { - mask |= HVMPV_base_freq; + mask |= HVMPV_base_freq | HVMPV_no_vp_limit;Could you clarify the point of having the new control when at the guest config level there's no way to prevent it from getting enabled (short of disabling Viridian extensions altogether)?
Quoted 7 lines
Quoted 3 lines
If you migrate in from a host without this code (previous version of Xen)- you will keep the old behavior for the guest thus preserving binary compatibility.
Keeping thing compatible like this is clearly a requirement. But is this enough? As soon as the guest reboots, it will see differing behavior, won't it?
Yes, that's what I was expecting - after reboot it should be fine. Hence I put this option into the default set - I'd expect no limit to be applied in the first place.
Igor