]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11764f1ca88693a39287a6051d648824829b4ba9
tree736885a0eb88eeb68eac7c50c85a74a6cda6c259
parented6b52afea00f8f5e7fd6148883c0601cd29b5ae
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