]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Remove guest mode check from kvm_check_nested_events
authorJim Mattson <jmattson@google.com>
Fri, 4 Jun 2021 17:26:00 +0000 (10:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:30 +0000 (13:09 -0400)
commit09a2813715e97badcaf5d1df1b628d79dc7250f6
treeebe694ec67e8ab8b054e31fcf79bfdbf6fc93dc3
parent3fe4adc2ba0760e5ba9e6bfd3a7b2a07e4622c52
KVM: x86: Remove guest mode check from kvm_check_nested_events

A survey of the callsites reveals that they all ensure the vCPU is in
guest mode before calling kvm_check_nested_events. Remove this dead
code so that the only negative value this function returns (at the
moment) is -EBUSY.

Signed-off-by: Jim Mattson <jmattson@google.com>
Message-Id: <20210604172611.281819-2-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c