[xen staging] x86: move arch_evtchn_inject to x86 common code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] x86: move arch_evtchn_inject to x86 common code

patchbot
commit 4b60c40659b34b6577a6bc91eb4115458a0e425f
Author:     Wei Liu <[hidden email]>
AuthorDate: Tue Aug 7 11:00:50 2018 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Wed Aug 8 10:36:46 2018 +0100

    x86: move arch_evtchn_inject to x86 common code
   
    It is not specific to HVM. It just so happens that PV doesn't need
    special handling.
   
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
---
 xen/arch/x86/hvm/irq.c | 6 ------
 xen/arch/x86/irq.c     | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/xen/arch/x86/hvm/irq.c b/xen/arch/x86/hvm/irq.c
index 8095c829b6..dfe8ed6385 100644
--- a/xen/arch/x86/hvm/irq.c
+++ b/xen/arch/x86/hvm/irq.c
@@ -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);
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c
index 7d0b19f2d2..6865c790ab 100644
--- a/xen/arch/x86/irq.c
+++ b/xen/arch/x86/irq.c
@@ -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);
+}
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog