The branch main has been updated by markj:

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

commit f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5
Author:     Mark Johnston <[email protected]>
AuthorDate: 2023-02-09 20:49:40 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2023-02-09 21:14:33 +0000

    vmm: Collapse identical case statements in vlapic_icrlo_write_handler()
    
    No functional change intended.
    
    Reviewed by:    jhb, corvink
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D38446
---
 sys/amd64/vmm/io/vlapic.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/sys/amd64/vmm/io/vlapic.c b/sys/amd64/vmm/io/vlapic.c
index 44641cc29035..a68c68073893 100644
--- a/sys/amd64/vmm/io/vlapic.c
+++ b/sys/amd64/vmm/io/vlapic.c
@@ -1118,22 +1118,6 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic, bool 
*retu)
 
                break;
        case APIC_DELMODE_INIT:
-               if (!vlapic->ipi_exit) {
-                       if (!phys)
-                               break;
-
-                       i = vm_apicid2vcpuid(vlapic->vm, dest);
-                       if (i >= vm_get_maxcpus(vlapic->vm) ||
-                           i == vlapic->vcpuid)
-                               break;
-
-                       CPU_SETOF(i, &ipimask);
-
-                       break;
-               }
-
-               CPU_COPY(&dmask, &ipimask);
-               break;
        case APIC_DELMODE_STARTUP:
                if (!vlapic->ipi_exit) {
                        if (!phys)

Reply via email to