VirtualBox

Changeset 85494 in vbox for trunk


Ignore:
Timestamp:
Jul 29, 2020 5:28:58 AM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Nits and comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp

    r85007 r85494  
    59215921
    59225922    /* Capability Header. */
     5923    /* NOTE! Fields (e.g, EFR) must match what we expose in the ACPI tables. */
    59235924    PDMPciDevSetDWord(pPciDev, IOMMU_PCI_OFF_CAP_HDR,
    59245925                        RT_BF_MAKE(IOMMU_BF_CAPHDR_CAP_ID,    0xf)     /* RO - Secure Device capability block */
     
    59425943
    59435944    /* Misc. Information Register 0. */
     5945    /* NOTE! Fields (e.g, GVA size) must match what we expose in the ACPI tables. */
    59445946    PDMPciDevSetDWord(pPciDev, IOMMU_PCI_OFF_MISCINFO_REG_0,
    5945                         RT_BF_MAKE(IOMMU_BF_MISCINFO_0_MSI_NUM,     0x0)    /* RO - MSI number */
    5946                       | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_GVA_SIZE,    0x2)    /* RO - Guest Virt. Addr size (2=48 bits) */
    5947                       | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_PA_SIZE,     0x30)   /* RO - Physical Addr size (48 bits) */
    5948                       | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_VA_SIZE,     0x40)   /* RO - Virt. Addr size (64 bits) */
    5949                       | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_HT_ATS_RESV, 0x0)    /* RW - HT ATS reserved */
    5950                       | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_MSI_NUM_PPR, 0x0));  /* RW - PPR interrupt number */
     5947                        RT_BF_MAKE(IOMMU_BF_MISCINFO_0_MSI_NUM,      0)     /* RO - MSI number */
     5948                      | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_GVA_SIZE,     2)     /* RO - Guest Virt. Addr size (2=48 bits) */
     5949                      | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_PA_SIZE,     48)     /* RO - Physical Addr size (48 bits) */
     5950                      | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_VA_SIZE,     64)     /* RO - Virt. Addr size (64 bits) */
     5951                      | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_HT_ATS_RESV,  0)     /* RW - HT ATS reserved */
     5952                      | RT_BF_MAKE(IOMMU_BF_MISCINFO_0_MSI_NUM_PPR,  0));   /* RW - PPR interrupt number */
    59515953
    59525954    /* Misc. Information Register 1. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette