]> xenbits.xensource.com Git - xen.git/commitdiff
x86: move arch_evtchn_inject to x86 common code
authorWei Liu <wei.liu2@citrix.com>
Tue, 7 Aug 2018 10:00:50 +0000 (11:00 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 8 Aug 2018 09:36:46 +0000 (10:36 +0100)
It is not specific to HVM. It just so happens that PV doesn't need
special handling.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/irq.c
xen/arch/x86/irq.c

index 8095c829b6ee991901ffda7ecb541bcf9eda688b..dfe8ed6385953714016127e03e837128ad9f2e3e 100644 (file)
@@ -577,12 +577,6 @@ int hvm_local_events_need_delivery(struct vcpu *v)
     return !hvm_interrupt_blocked(v, intack);
 }
 
-void arch_evtchn_inject(struct vcpu *v)
-{
-    if ( is_hvm_vcpu(v) )
-        hvm_assert_evtchn_irq(v);
-}
-
 static void irq_dump(struct domain *d)
 {
     struct hvm_irq *hvm_irq = hvm_domain_irq(d);
index 7d0b19f2d2f3042a35f633f8632a862913e5f844..6865c790ab8cd74f32b6c31a7a89ca9603e4c7d3 100644 (file)
@@ -2732,3 +2732,9 @@ int allocate_and_map_msi_pirq(struct domain *d, int index, int *pirq_p,
 
     return ret;
 }
+
+void arch_evtchn_inject(struct vcpu *v)
+{
+    if ( is_hvm_vcpu(v) )
+        hvm_assert_evtchn_irq(v);
+}