]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: mips, x86: do not rely on KVM_REQ_UNHALT
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Sep 2022 00:32:00 +0000 (00:32 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:37:21 +0000 (12:37 -0400)
commitd4ebe82ac2ac1d22a6f7a1d22af19a2d8e2804c1
tree800771994d263e2d833d530fbe5438bacb5ac230
parent0550cfdbad023f698991eb408bf642d84d5d3b66
KVM: mips, x86: do not rely on KVM_REQ_UNHALT

KVM_REQ_UNHALT is a weird request that simply reports the value of
kvm_arch_vcpu_runnable() on exit from kvm_vcpu_halt().  Only
MIPS and x86 are looking at it, the others just clear it.  Check
the state of the vCPU directly so that the request is handled
as a nop on all architectures.

No functional change intended, except for corner cases where an
event arrive immediately after a signal become pending or after
another similar host-side event.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220921003201.1441511-12-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/emulate.c
arch/x86/kvm/x86.c