|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5/9] x86/hvm: put hvm_local_events_need_delivery into a header file
This allows us to provide a stub for it in that header file.
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
xen/include/asm-x86/event.h | 3 ++-
xen/include/asm-x86/hvm/event.h | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 xen/include/asm-x86/hvm/event.h
diff --git a/xen/include/asm-x86/event.h b/xen/include/asm-x86/event.h
index 2f6ea54..b4472da 100644
--- a/xen/include/asm-x86/event.h
+++ b/xen/include/asm-x86/event.h
@@ -11,6 +11,8 @@
#include <xen/shared.h>
+#include <asm/hvm/event.h>
+
void vcpu_kick(struct vcpu *v);
void vcpu_mark_events_pending(struct vcpu *v);
@@ -19,7 +21,6 @@ static inline int vcpu_event_delivery_is_enabled(struct vcpu
*v)
return !vcpu_info(v, evtchn_upcall_mask);
}
-int hvm_local_events_need_delivery(struct vcpu *v);
static inline int local_events_need_delivery(void)
{
struct vcpu *v = current;
diff --git a/xen/include/asm-x86/hvm/event.h b/xen/include/asm-x86/hvm/event.h
new file mode 100644
index 0000000..f4781a9
--- /dev/null
+++ b/xen/include/asm-x86/hvm/event.h
@@ -0,0 +1,14 @@
+#ifndef ASM_HVM_EVENT_H
+#define ASM_HVM_EVENT_H
+
+#if CONFIG_HVM
+
+int hvm_local_events_need_delivery(struct vcpu *v);
+
+#else
+
+static inline int hvm_local_events_need_delivery(struct vcpu *v) { return 0; }
+
+#endif
+
+#endif /* ASM_HVM_EVENT_H */
--
git-series 0.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |