]> xenbits.xensource.com Git - xen.git/commitdiff
Revert "x86/guest: use the vcpu_info area from shared_info"
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Mar 2018 15:02:24 +0000 (15:02 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 5 Mar 2018 15:09:10 +0000 (15:09 +0000)
This reverts commit 69f4d872e524932d392acd80989c5b776baa4522.

There is already the required commit in staging 4.10. Revert the
workaround from comet branch.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/guest/xen.c

index ed8b8c8c7b15f0607681719203204bd8cb64008b..2a5554ab26da6b95219b8b3a5af93c6bc18a982f 100644 (file)
@@ -257,8 +257,7 @@ void __init hypervisor_setup(void)
     map_shared_info();
 
     set_vcpu_id();
-    if ( nr_cpu_ids > XEN_LEGACY_MAX_VCPUS )
-        vcpu_info = xzalloc_array(struct vcpu_info, nr_cpu_ids);
+    vcpu_info = xzalloc_array(struct vcpu_info, nr_cpu_ids);
     if ( map_vcpuinfo() )
     {
         xfree(vcpu_info);