The branch stable/13 has been updated by jhb:

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

commit 3bedbb1008a82641b785d58f5c0def8ce5ec5377
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-12-09 18:26:23 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-01-26 22:07:24 +0000

    vmm: Don't lock a vCPU for VM_PPTDEV_MSI[X].
    
    These are manipulating state in a ppt(4) device none of which is
    vCPU-specific.  Mark the vcpu fields in the relevant ioctl structures
    as unused, but don't remove them for now.
    
    Reviewed by:    corvink, markj
    Differential Revision:  https://reviews.freebsd.org/D37639
    
    (cherry picked from commit 91980db1beecd52e34a1550a247e374cfcc746a2)
---
 sys/amd64/include/vmm_dev.h | 4 ++--
 sys/amd64/vmm/vmm_dev.c     | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/amd64/include/vmm_dev.h b/sys/amd64/include/vmm_dev.h
index 9ed8f32302ae..deeb125428f3 100644
--- a/sys/amd64/include/vmm_dev.h
+++ b/sys/amd64/include/vmm_dev.h
@@ -147,7 +147,7 @@ struct vm_pptdev_mmio {
 };
 
 struct vm_pptdev_msi {
-       int             vcpu;
+       int             vcpu;           /* unused */
        int             bus;
        int             slot;
        int             func;
@@ -157,7 +157,7 @@ struct vm_pptdev_msi {
 };
 
 struct vm_pptdev_msix {
-       int             vcpu;
+       int             vcpu;           /* unused */
        int             bus;
        int             slot;
        int             func;
diff --git a/sys/amd64/vmm/vmm_dev.c b/sys/amd64/vmm/vmm_dev.c
index 9afcd1796173..94b462feef6a 100644
--- a/sys/amd64/vmm/vmm_dev.c
+++ b/sys/amd64/vmm/vmm_dev.c
@@ -451,8 +451,6 @@ vmmdev_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, 
int fflag,
        case VM_INJECT_EXCEPTION:
        case VM_GET_CAPABILITY:
        case VM_SET_CAPABILITY:
-       case VM_PPTDEV_MSI:
-       case VM_PPTDEV_MSIX:
        case VM_SET_X2APIC_STATE:
        case VM_GLA2GPA:
        case VM_GLA2GPA_NOFAULT:

Reply via email to