summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-06-04 17:50:47 +0000
committerjhb <jhb@FreeBSD.org>2014-06-04 17:50:47 +0000
commitd820529bb0883ee693ea625fe74eb88122b09b39 (patch)
tree16e8c7c3be2656338294e3eea6b61815609784ab /sys/x86
parent3af9d4776e4145fbccdcb19cef209913b8354c47 (diff)
downloadFreeBSD-src-d820529bb0883ee693ea625fe74eb88122b09b39.zip
FreeBSD-src-d820529bb0883ee693ea625fe74eb88122b09b39.tar.gz
MFC 263772: Fix build without SMP.
PR: 187854
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/xen/hvm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/x86/xen/hvm.c b/sys/x86/xen/hvm.c
index 9f4c6be..c386953 100644
--- a/sys/x86/xen/hvm.c
+++ b/sys/x86/xen/hvm.c
@@ -71,9 +71,9 @@ static driver_filter_t xen_ipi_bitmap_handler;
static driver_filter_t xen_cpustop_handler;
static driver_filter_t xen_cpususpend_handler;
static driver_filter_t xen_cpustophard_handler;
-#endif
static void xen_ipi_vectored(u_int vector, int dest);
static void xen_hvm_cpu_resume(void);
+#endif
static void xen_hvm_cpu_init(void);
/*---------------------------- Extern Declarations ---------------------------*/
@@ -106,11 +106,13 @@ struct xen_ipi_handler
/*-------------------------------- Global Data -------------------------------*/
enum xen_domain_type xen_domain_type = XEN_NATIVE;
+#ifdef SMP
struct cpu_ops xen_hvm_cpu_ops = {
.ipi_vectored = lapic_ipi_vectored,
.cpu_init = xen_hvm_cpu_init,
.cpu_resume = xen_hvm_cpu_resume
};
+#endif
static MALLOC_DEFINE(M_XENHVM, "xen_hvm", "Xen HVM PV Support");
@@ -526,7 +528,9 @@ xen_hvm_init(enum xen_hvm_init_type init_type)
return;
setup_xen_features();
+#ifdef SMP
cpu_ops = xen_hvm_cpu_ops;
+#endif
vm_guest = VM_GUEST_XEN;
break;
case XEN_HVM_INIT_RESUME:
OpenPOWER on IntegriCloud