aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vmsi.c
diff options
context:
space:
mode:
authorYang Zhang <yang.z.zhang@Intel.com>2013-04-18 11:35:43 +0200
committerJan Beulich <jbeulich@suse.com>2013-04-18 11:35:43 +0200
commit04015d6326f17e4aafb32593b94dac44b72ef4c1 (patch)
tree26f94b1da55f93eb3892ae7fe7b4dbeb4aacad8f /xen/arch/x86/hvm/vmsi.c
parentd7dafa375bc13772e2e3274d975d544af4208939 (diff)
downloadxen-04015d6326f17e4aafb32593b94dac44b72ef4c1.tar.gz
xen-04015d6326f17e4aafb32593b94dac44b72ef4c1.tar.bz2
xen-04015d6326f17e4aafb32593b94dac44b72ef4c1.zip
x86/HVM: Call vlapic_set_irq() to delivery virtual interrupt
Move kick_vcpu into vlapic_set_irq. And call it to deliver virtual interrupt instead set vIRR directly. Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: George Dunlap <george.dunlap@eu.citrix.com> (from a release perspective)
Diffstat (limited to 'xen/arch/x86/hvm/vmsi.c')
-rw-r--r--xen/arch/x86/hvm/vmsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/vmsi.c b/xen/arch/x86/hvm/vmsi.c
index cfc7c80b75..36de312ef0 100644
--- a/xen/arch/x86/hvm/vmsi.c
+++ b/xen/arch/x86/hvm/vmsi.c
@@ -57,8 +57,7 @@ static void vmsi_inj_irq(
{
case dest_Fixed:
case dest_LowestPrio:
- if ( vlapic_set_irq(target, vector, trig_mode) )
- vcpu_kick(vlapic_vcpu(target));
+ vlapic_set_irq(target, vector, trig_mode);
break;
default:
gdprintk(XENLOG_WARNING, "error delivery mode %d\n", delivery_mode);