Page MenuHomeFreeBSD

D40734.diff
No OneTemporary

D40734.diff

diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -62,7 +62,6 @@
qemu_fwcfg.c \
qemu_loader.c \
rfb.c \
- rtc.c \
smbiostbl.c \
sockstream.c \
spinup_ap.c \
diff --git a/usr.sbin/bhyve/amd64/Makefile.inc b/usr.sbin/bhyve/amd64/Makefile.inc
--- a/usr.sbin/bhyve/amd64/Makefile.inc
+++ b/usr.sbin/bhyve/amd64/Makefile.inc
@@ -7,6 +7,7 @@
post.c \
ps2kbd.c \
ps2mouse.c \
+ rtc.c \
task_switch.c \
xmsr.c
diff --git a/usr.sbin/bhyve/rtc.h b/usr.sbin/bhyve/amd64/rtc.h
rename from usr.sbin/bhyve/rtc.h
rename to usr.sbin/bhyve/amd64/rtc.h
diff --git a/usr.sbin/bhyve/rtc.c b/usr.sbin/bhyve/amd64/rtc.c
rename from usr.sbin/bhyve/rtc.c
rename to usr.sbin/bhyve/amd64/rtc.c
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -103,7 +103,9 @@
#include "snapshot.h"
#endif
#include "tpm_device.h"
-#include "rtc.h"
+#ifdef __amd64__
+#include "amd64/rtc.h"
+#endif
#include "vmgenc.h"
#include "vmexit.h"
#ifdef __amd64__
@@ -903,9 +905,11 @@
case 'e':
set_config_bool("x86.strictio", true);
break;
+#ifdef __amd64__
case 'u':
set_config_bool("rtc.use_localtime", false);
break;
+#endif
case 'U':
set_config_value("uuid", optarg);
break;
@@ -1037,7 +1041,9 @@
pci_irq_init(ctx);
ioapic_init(ctx);
+#ifdef __amd64__
rtc_init(ctx);
+#endif
sci_init(ctx);
if (qemu_fwcfg_init(ctx) != 0) {

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 2:59 PM (13 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15743562
Default Alt Text
D40734.diff (1 KB)

Event Timeline