VirtualBox

Changeset 83263 in vbox for trunk/src/VBox/Devices/testcase


Ignore:
Timestamp:
Mar 11, 2020 4:34:33 PM (5 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Skeletal bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDevicePdmDevHlp.cpp

    r83261 r83263  
    46224622
    46234623    LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: returns %Rrc *piBus=%u\n", pDevIns->pReg->szName, pDevIns->iInstance, rc, *piBus));
     4624    return rc;
     4625}
     4626
     4627
     4628/** @interface_method_impl{PDMDEVHLPR3,pfnIommuRegister} */
     4629static DECLCALLBACK(int) pdmR3DevHlp_IommuRegister(PPDMDEVINS pDevIns, PPDMIOMMUREG pIommuReg, PCPDMIOMMUHLP *ppIommuHlp)
     4630{
     4631    PDMDEV_ASSERT_DEVINS(pDevIns);
     4632    LogFlow(("pdmR3DevHlp_IommuRegister: caller='%s'/%d: pIommuReg=%p:{.u32Version=%#x, .u32TheEnd=%#x } ppIommuHlp=%p\n",
     4633             pDevIns->pReg->szName, pDevIns->iInstance, pIommuReg, pIommuReg->u32Version, pIommuReg->u32TheEnd, ppIommuHlp));
     4634
     4635    /*
     4636     * Validate input.
     4637     */
     4638    AssertMsgReturn(pIommuReg->u32Version == PDM_IOMMUREG_VERSION,
     4639                    ("%s/%d: u32Version=%#x expected %#x\n", pDevIns->pReg->szName, pDevIns->iInstance, pIommuReg->u32Version, PDM_IOMMUREG_VERSION),
     4640                    VERR_INVALID_PARAMETER);
     4641
     4642    /** @todo IOMMU: Validate other parameters */
     4643
     4644    AssertMsgReturn(pIommuReg->u32TheEnd == PDM_IOMMUREG_VERSION,
     4645                    ("%s/%d: u32TheEnd=%#x expected %#x\n", pDevIns->pReg->szName, pDevIns->iInstance, pIommuReg->u32TheEnd, PDM_IOMMUREG_VERSION),
     4646                    VERR_INVALID_PARAMETER);
     4647    AssertPtrReturn(ppIommuHlp, VERR_INVALID_POINTER);
     4648
     4649    int rc = VERR_NOT_IMPLEMENTED;
     4650    AssertFailed();
     4651    Log(("PDM: Registered IOMMU device '%s'/%d pDevIns=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, pDevIns));
     4652
     4653    LogFlow(("pdmR3DevHlp_IommuRegister: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc));
    46244654    return rc;
    46254655}
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