git: cd49fdbdec51 - stable/13 - bhyve: Remove handler for VM_EXITCODE_SPINUP_AP.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 26 Jan 2023 22:34:57 UTC
The branch stable/13 has been updated by jhb:

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

commit cd49fdbdec516fa3e0b975959a1831e7592fcf18
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-21 18:30:45 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 22:17:20 +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
    
    (cherry picked from commit 007d9ca5dd953c009cf976b49e2568444a16a473)
---
 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,