aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/bhyverun.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bhyve/bhyverun.c')
-rw-r--r--usr.sbin/bhyve/bhyverun.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
index 31fda7028569..005acec77a93 100644
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -106,7 +106,9 @@
#include "rtc.h"
#include "vmgenc.h"
#include "vmexit.h"
-#include "xmsr.h"
+#ifdef __amd64__
+#include "amd64/xmsr.h"
+#endif
#define MB (1024UL * 1024)
#define GB (1024UL * MB)
@@ -1011,11 +1013,13 @@ main(int argc, char *argv[])
exit(4);
}
+#ifdef __amd64__
error = init_msr();
if (error) {
fprintf(stderr, "init_msr error %d", error);
exit(4);
}
+#endif
init_mem(guest_ncpus);
init_inout();