]> 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)
commit69011ad5142aacb7b4bc8b6d3ef697ccdc4e6fad
tree736885a0eb88eeb68eac7c50c85a74a6cda6c259
parent9dfe0c5e65171e2eb79bbe01c72dafe28f098962
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