summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorZhang, Yang Z <yang.z.zhang@intel.com>2013-04-17 23:11:54 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2013-04-17 23:11:54 -0300
commit6ffbbbbab34ef84b89f8b9f50a5f0fed5795d79a (patch)
treeeb1b1efacc37ec37da2959d2e2037bd862d10c4e /arch/x86
parentf13882d84df31a8567032b6bcbfbdd76ac378513 (diff)
downloadop-kernel-dev-6ffbbbbab34ef84b89f8b9f50a5f0fed5795d79a.zip
op-kernel-dev-6ffbbbbab34ef84b89f8b9f50a5f0fed5795d79a.tar.gz
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index c84f0cb..a05cca6 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -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);
kvm_make_request(KVM_REQ_EVENT, vcpu);
+#ifdef CONFIG_SMP
if (!r && (vcpu->mode == IN_GUEST_MODE))
apic->send_IPI_mask(get_cpu_mask(vcpu->cpu),
POSTED_INTR_VECTOR);
else
+#endif
kvm_vcpu_kick(vcpu);
}
OpenPOWER on IntegriCloud