mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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>
This commit is contained in:
parent
109a98260b
commit
c91d449714
|
|
@ -10203,7 +10203,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
|
|||
r = -EINTR;
|
||||
goto out;
|
||||
}
|
||||
kvm_vcpu_halt(vcpu);
|
||||
kvm_vcpu_block(vcpu);
|
||||
if (kvm_apic_accept_events(vcpu) < 0) {
|
||||
r = 0;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user