git: c5c26f15f868 - main - xen/x86: move x86-only variable out of common
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Nov 2023 13:38:38 UTC
The branch main has been updated by royger:
URL: https://cgit.FreeBSD.org/src/commit/?id=c5c26f15f86821c7e05d37456e05795b1b17747d
commit c5c26f15f86821c7e05d37456e05795b1b17747d
Author: Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2021-02-14 06:46:09 +0000
Commit: Roger Pau Monné <royger@FreeBSD.org>
CommitDate: 2023-11-28 12:30:40 +0000
xen/x86: move x86-only variable out of common
Commit 27c36a12f15 is an x86-only feature. As such xen_evtchn_needs_ack
should only exist on x86.
Differential Revision: https://reviews.freebsd.org/D29913
Reviewed by: royger
[royger]: adjust comment.
---
sys/x86/include/xen/xen-os.h | 3 +++
sys/xen/hvm.h | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/x86/include/xen/xen-os.h b/sys/x86/include/xen/xen-os.h
index 1a32b9c9e3a5..6a3b82c0ba62 100644
--- a/sys/x86/include/xen/xen-os.h
+++ b/sys/x86/include/xen/xen-os.h
@@ -43,6 +43,9 @@
/* If non-zero, the hypervisor has been configured to use a direct vector */
extern int xen_vector_callback_enabled;
+/* Signal whether the event channel vector requires EOI at the lapic */
+extern bool xen_evtchn_needs_ack;
+
/* tunable for disabling PV disks */
extern int xen_disable_pv_disks;
diff --git a/sys/xen/hvm.h b/sys/xen/hvm.h
index 01e409f026c4..3ff3ee3c51e6 100644
--- a/sys/xen/hvm.h
+++ b/sys/xen/hvm.h
@@ -102,6 +102,5 @@ void xen_hvm_suspend(void);
void xen_hvm_resume(bool suspend_cancelled);
extern uint32_t hvm_start_flags;
-extern bool xen_evtchn_needs_ack;
#endif /* __XEN_HVM_H__ */