kvm, cpuid: Use logical AND on bit ops

Otherwise we may push cleaned bits back.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:40 +01:00
committed by Will Deacon
parent 44677817a1
commit 0332e3139d
+1 -1
View File
@@ -117,7 +117,7 @@ void kvm__setup_cpuid(struct kvm *self)
.eax = regs.eax,
.ebx = regs.ebx,
.ecx =
cpu_feature_disable(regs.ecx, KVM__X86_FEATURE_XSAVE) |
cpu_feature_disable(regs.ecx, KVM__X86_FEATURE_XSAVE) &
cpu_feature_disable(regs.ecx, KVM__X86_FEATURE_VMX),
.edx = regs.edx,
};