]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: reading DR cannot fail
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Feb 2021 08:42:41 +0000 (03:42 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Feb 2021 13:17:07 +0000 (08:17 -0500)
commit1d2fd17391fa2475e562f4b64ce5ce38beb7d920
tree98244b59d7d142dcfde4e11a45470e8c9eb216b5
parent3a6a2b329b87c120dd1a9ebceb114bdfed518b78
KVM: x86: reading DR cannot fail

kvm_get_dr and emulator_get_dr except an in-range value for the register
number so they cannot fail.  Change the return type to void.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c