Page MenuHomeFreeBSD

D48811.diff
No OneTemporary

D48811.diff

diff --git a/usr.sbin/bhyve/riscv/vmexit.c b/usr.sbin/bhyve/riscv/vmexit.c
--- a/usr.sbin/bhyve/riscv/vmexit.c
+++ b/usr.sbin/bhyve/riscv/vmexit.c
@@ -47,6 +47,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <vmmapi.h>
@@ -135,6 +136,12 @@
struct vm_run *vmrun __unused)
{
+ /*
+ * XXX-MJ sleep for a short period to avoid chewing up the CPU in the
+ * window between activation of the vCPU thread and the
+ * SBI_HSM_HART_START request.
+ */
+ usleep(1000);
return (VMEXIT_CONTINUE);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 10, 9:06 PM (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16454213
Default Alt Text
D48811.diff (560 B)

Event Timeline