mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
master commit: 0f43883193
master date: 2016-11-16 10:33:18 +0000
This commit is contained in:
1 parent
cebf5ac0b0
commit
e87481f629
1 file changed
+5
@@ -808,6 +808,11 @@ int cpuid_hypervisor_leaves( uint32_t idx, uint32_t sub_idx,
|
||||
break;
|
||||
|
||||
case 4:
|
||||
if ( !has_hvm_container_domain(currd) )
|
||||
{
|
||||
*eax = *ebx = *ecx = *edx = 0;
|
||||
break;
|
||||
}
|
||||
hvm_hypervisor_cpuid_leaf(sub_idx, eax, ebx, ecx, edx);
|
||||
break;
|
||||
|
||||
|
||||