mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
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:
committed by
Will Deacon
parent
44677817a1
commit
0332e3139d
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user