libxc/x86: Report consistent initial APIC value for PV guests
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 10 Nov 2016 14:50:24 +0000 (09:50 -0500)
committerWei Liu <wei.liu2@citrix.com>
Sat, 12 Nov 2016 06:45:16 +0000 (06:45 +0000)
commit1a5245528ee3d3287f940a44b6cf91fea3dbae32
tree3f91923325d6cf7bdbebd30096a1342340e844c4
parent8dd7b8a8934e5d8bda9a07ef281cd8f8a4ee1e26
libxc/x86: Report consistent initial APIC value for PV guests

Currently hypervisor provides PV guest's CPUID(1).EBX[31:24] (initial
APIC ID) with contents of that field on the processor that launched
the guest. This results in the guest reporting different initial
APIC IDs across runs.

We should be consistent in how this value is reported, let's set
it to 0 (which is also what Linux guests expect).

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: remove trailing whitespace in comment ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_cpuid_x86.c