]> 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)
commitc35faeae56bf50e8bf4b624acee617a91d8b1245
tree98244b59d7d142dcfde4e11a45470e8c9eb216b5
parente08c2e61f8ba219b9a323c859bd449a5634266b7
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