x86/guest: use the vcpu_info area from shared_info
PATCH 1/1 x86/guest: use the vcpu_info area from shared_info
If using less than 32 vCPUs (XEN_LEGACY_MAX_VCPUS).
This is a workaround that should allow to boot the shim on hypervisors without commit "x86/upcall: inject a spurious event after setting upcall vector" as long as less than 32 vCPUs are assigned to the shim.
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>
---
ONLY apply to the 4.10.0-shim-comet branch. Long term we don't want to carry this patch since it would prevent the vcpu_info mapping code from being tested unless a shim with > 32 vCPUs is created, which doesn't seem very common.
--- xen/arch/x86/guest/xen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/x86/guest/xen.c +2 -1
@@ -257,7 +257,8 @@ void __init hypervisor_setup(void)map_shared_info ();set_vcpu_id (); - vcpu_info = xzalloc_array(struct vcpu_info, nr_cpu_ids); +if ( nr_cpu_ids >XEN_LEGACY_MAX_VCPUS ) + vcpu_info = xzalloc_array(struct vcpu_info, nr_cpu_ids);if (map_vcpuinfo () ) {xfree (vcpu_info);
Signature · 7 lines
2.15.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Roger Pau Monne
If using less than 32 vCPUs (
XEN_LEGACY_MAX_VCPUS).This is a workaround that should allow to boot the shim on hypervisors without commit "x86/upcall: inject a spurious event after setting upcall vector" as long as less than 32 vCPUs are assigned to the shim.
Signed-off-by Roger Pau Monné <[email protected]>
Quoted 11 lines
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>
---
ONLY apply to the 4.10.0-shim-comet branch. Long term we don't want to carry this patch since it would prevent thevcpu_infomapping code from being tested unless a shim with > 32 vCPUs is created, which doesn't seem very common.
Just to fill this out a bit:
Without this patch, people need to reboot their L0 hypervisor in order to use Comet.
With this patch, people only need to compile and update their L0 tools to use Comet; they can avoid rebooting their L0 hypervisor.
Roger would like to avoid checking this in to staging, because he's afraid it might make the >32vcpu path bitrot.
The risk of checking it into the Comet branches but not staging is that if people update their shim to "Rudolph" (4.11) without rebooting their host, things may unexpectedly not work. I think that's something we can live with.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
George Dunlap writes ("Re: [PATCH for-4.10.0-shim-comet] x86/guest: use the vcpu_info area from shared_info"):
Quoted 2 lines
Without this patch, people need to reboot their L0 hypervisor in order to use Comet.
People running 4.10. On 4.8 this presumably has no benefit.
Quoted 4 lines
The risk of checking it into the Comet branches but not staging is that if people update their shim to "Rudolph" (4.11) without rebooting their host, things may unexpectedly not work. I think that's something we can live with.
People won't expect to do that because of the way the tools and hypervisor already have to be in lockstep.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Ian Jackson
George Dunlap writes ("Re: [PATCH for-4.10.0-shim-comet] x86/guest: use the
vcpu_infoarea fromshared_info"):Quoted 2 lines
Without this patch, people need to reboot their L0 hypervisor in order to use Comet.
People running 4.10. On 4.8 this presumably has no benefit.
On the contrary -- exactly the same arguments apply. There were *no* hypervisor patches as part of the 4.8 PVH backport; the only patches between staging-4.8 and the 4.8 Comet tag that touch the hypervisor are the pvshim-specific patches; so the same arguments apply both to 4.10 and 4.8.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 30 lines
Quoted 1 line
Quoted 1 line · On 17.01.18 at 12:04, <[email protected]> wrote:
Quoted 8 lines · Roger Pau Monne
If using less than 32 vCPUs (
XEN_LEGACY_MAX_VCPUS).This is a workaround that should allow to boot the shim on hypervisors without commit "x86/upcall: inject a spurious event after setting upcall vector" as long as less than 32 vCPUs are assigned to the shim.
Signed-off-by Roger Pau Monné <[email protected]>Quoted 11 lines
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: George Dunlap <[email protected]>
---
ONLY apply to the 4.10.0-shim-comet branch. Long term we don't want to carry this patch since it would prevent thevcpu_infomapping code from being tested unless a shim with > 32 vCPUs is created, which doesn't seem very common.Just to fill this out a bit:
Without this patch, people need to reboot their L0 hypervisor in order to use Comet.
With this patch, people only need to compile and update their L0 tools to use Comet; they can avoid rebooting their L0 hypervisor.
Quoted 7 lines
Roger would like to avoid checking this in to staging, because he's afraid it might make the >32vcpu path bitrot.
The risk of checking it into the Comet branches but not staging is that if people update their shim to "Rudolph" (4.11) without rebooting their host, things may unexpectedly not work. I think that's something we can live with.
I agree. I'm not sure this patch going into that branch only needs an x86 maintainers ack, but if so, feel free to add mine.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel