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)
commit29d6ca41992a771e2441424099695c329d735c28
tree98244b59d7d142dcfde4e11a45470e8c9eb216b5
parent6f7a343987fa24299db1a36b7af55bdbd5dd3b1b
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