git: 8ae1d55bfcd0 - main - bhyve/arm64: Mark CPU0 as on at boot
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Aug 2025 09:51:46 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ae1d55bfcd058b9d20bda7dad00536cb4ab4494
commit 8ae1d55bfcd058b9d20bda7dad00536cb4ab4494
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-08-07 09:31:56 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-08-07 09:45:16 +0000
bhyve/arm64: Mark CPU0 as on at boot
It was missed from the set. As it's the boot CPU it starts on.
Reviewed by: markj
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D51767
---
usr.sbin/bhyve/aarch64/bhyverun_machdep.c | 3 +++
usr.sbin/bhyve/aarch64/vmexit.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/bhyve/aarch64/bhyverun_machdep.c b/usr.sbin/bhyve/aarch64/bhyverun_machdep.c
index fbaba3128def..ffca4aa8c5a6 100644
--- a/usr.sbin/bhyve/aarch64/bhyverun_machdep.c
+++ b/usr.sbin/bhyve/aarch64/bhyverun_machdep.c
@@ -396,6 +396,9 @@ bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp)
pci_irq_init(pcie_intrs);
fdt_add_pcie(pcie_intrs);
+ /* Mark CPU0 as running */
+ CPU_SET(0, &running_cpumask);
+
return (0);
}
diff --git a/usr.sbin/bhyve/aarch64/vmexit.c b/usr.sbin/bhyve/aarch64/vmexit.c
index 6297a01d427f..2d350566675a 100644
--- a/usr.sbin/bhyve/aarch64/vmexit.c
+++ b/usr.sbin/bhyve/aarch64/vmexit.c
@@ -54,7 +54,7 @@
#include "mem.h"
#include "vmexit.h"
-static cpuset_t running_cpumask;
+cpuset_t running_cpumask;
static int
vmexit_inst_emul(struct vmctx *ctx __unused, struct vcpu *vcpu,