mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
KVM: x86: Fix posted interrupt with CONFIG_SMP=n
->send_IPI_mask is not defined on UP. Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
f13882d84d
commit
6ffbbbbab3
1 changed files with 2 additions and 0 deletions
|
@ -3946,10 +3946,12 @@ static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector)
|
||||||
|
|
||||||
r = pi_test_and_set_on(&vmx->pi_desc);
|
r = pi_test_and_set_on(&vmx->pi_desc);
|
||||||
kvm_make_request(KVM_REQ_EVENT, vcpu);
|
kvm_make_request(KVM_REQ_EVENT, vcpu);
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
if (!r && (vcpu->mode == IN_GUEST_MODE))
|
if (!r && (vcpu->mode == IN_GUEST_MODE))
|
||||||
apic->send_IPI_mask(get_cpu_mask(vcpu->cpu),
|
apic->send_IPI_mask(get_cpu_mask(vcpu->cpu),
|
||||||
POSTED_INTR_VECTOR);
|
POSTED_INTR_VECTOR);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
kvm_vcpu_kick(vcpu);
|
kvm_vcpu_kick(vcpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue