]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: add kvm_{test,clear}_request to replace {test,clear}_bit
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 26 Apr 2017 20:32:19 +0000 (22:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2017 12:12:22 +0000 (14:12 +0200)
commit870dfd5b6c565ec145990b389eae16028942bd77
treef42dd5ca2b21b57abbb4cc656aadf641cfaf1412
parentd1f1c886fd8e41f6693eba7953a9064a9e437197
KVM: add kvm_{test,clear}_request to replace {test,clear}_bit

Users were expected to use kvm_check_request() for testing and clearing,
but request have expanded their use since then and some users want to
only test or do a faster clear.

Make sure that requests are not directly accessed with bit operations.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/emulate.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/book3s_pr_papr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h