KVM: x86: Directly block (instead of "halting") UNINITIALIZED vCPUs
authorSean Christopherson <seanjc@google.com>
Sat, 9 Oct 2021 02:12:10 +0000 (19:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:53 +0000 (04:24 -0500)
commitc91d44971459073537874fcdd2f445e94cfb4f07
tree736885a0eb88eeb68eac7c50c85a74a6cda6c259
parent109a98260b533722d1190dcfa18447dd39fee5ff
KVM: x86: Directly block (instead of "halting") UNINITIALIZED vCPUs

Go directly to kvm_vcpu_block() when handling the case where userspace
attempts to run an UNINITIALIZED vCPU.  The vCPU is not halted, nor is it
likely that halt-polling will be successful in this case.

Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009021236.4122790-18-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c