git: 007d9ca5dd95 - main - bhyve: Remove handler for VM_EXITCODE_SPINUP_AP.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 21 Dec 2022 18:33:59 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=007d9ca5dd953c009cf976b49e2568444a16a473

commit 007d9ca5dd953c009cf976b49e2568444a16a473
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-21 18:30:45 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-21 18:30:45 +0000

    bhyve: Remove handler for VM_EXITCODE_SPINUP_AP.
    
    Since commit 0bda8d3e9f7a, bhyve always enables VM_EXITCODE_IPI exits
    instead, so this handler is no longer used.
    
    Reviewed by:    corvink, markj
    Differential Revision:  https://reviews.freebsd.org/D37640
---
 usr.sbin/bhyve/bhyverun.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
index 4abdf8fe301e..8bc419504771 100644
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -685,15 +685,6 @@ vmexit_wrmsr(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu)
 	return (VMEXIT_CONTINUE);
 }
 
-static int
-vmexit_spinup_ap(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu __unused)
-{
-
-	(void)spinup_ap(ctx, vme->u.spinup_ap.vcpu, vme->u.spinup_ap.rip);
-
-	return (VMEXIT_CONTINUE);
-}
-
 #define	DEBUG_EPT_MISCONFIG
 #ifdef DEBUG_EPT_MISCONFIG
 #define	VMCS_GUEST_PHYSICAL_ADDRESS	0x00002400
@@ -980,7 +971,6 @@ static vmexit_handler_t handler[VM_EXITCODE_MAX] = {
 	[VM_EXITCODE_WRMSR]  = vmexit_wrmsr,
 	[VM_EXITCODE_MTRAP]  = vmexit_mtrap,
 	[VM_EXITCODE_INST_EMUL] = vmexit_inst_emul,
-	[VM_EXITCODE_SPINUP_AP] = vmexit_spinup_ap,
 	[VM_EXITCODE_SUSPENDED] = vmexit_suspend,
 	[VM_EXITCODE_TASK_SWITCH] = vmexit_task_switch,
 	[VM_EXITCODE_DEBUG] = vmexit_debug,