]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: introduce kvm_check_has_quirk
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jul 2015 06:22:45 +0000 (08:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jul 2015 06:22:45 +0000 (08:22 +0200)
commit42edd233283b2c7055714e1b47d1f4a35060d6d3
tree3de1f317633917da3fd57e98406eb73f42458dbc
parent706a11525308ff919e94118bbb715402abef20f9
KVM: x86: introduce kvm_check_has_quirk

The logic of the disabled_quirks field usually results in a double
negation.  Wrap it in a simple function that checks the bit and
negates it.

Based on a patch from Xiao Guangrong.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/svm.c
arch/x86/kvm/x86.h