]> xenbits.xensource.com Git - xen.git/commit
x86/traps: Don't call hvm_hypervisor_cpuid_leaf() for PV guests
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Nov 2016 10:18:00 +0000 (10:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Nov 2016 10:33:18 +0000 (10:33 +0000)
commit0f43883193da76fc928e836e319c3172f394e0f3
tree2ba2b5ced000b598d8789e1c39c8ed320ee735b2
parentfcb618c025f9251d7e22138f6528595037252c21
x86/traps: Don't call hvm_hypervisor_cpuid_leaf() for PV guests

Luckily, hvm_hypervisor_cpuid_leaf() and vmx_hypervisor_cpuid_leaf() are safe
to execute in the context of a PV guest, but HVM-specific feature flags
shouldn't be visible to PV guests.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/traps.c