From 0332e3139d6b2aecaf0e3082bb72f484007ff7ab Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 4 Jul 2010 14:00:35 +0400 Subject: [PATCH] kvm, cpuid: Use logical AND on bit ops Otherwise we may push cleaned bits back. Signed-off-by: Cyrill Gorcunov --- cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpuid.c b/cpuid.c index d527282..ee80fe3 100644 --- a/cpuid.c +++ b/cpuid.c @@ -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, };