VirtualBox

Changeset 36630 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 8, 2011 6:41:51 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71093
Message:

PCI: Main and VBoxManage work

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r36615 r36630  
    47044704        and most information will be delivered as IHostPciDevicePlugEvent
    47054705        on IVirtualBox event source.
    4706         <note>
    4707           Not yet implemented.
    4708         </note>
    47094706
    47104707        <see>IHostPciDevicePlugEvent</see>
     
    47384735        will be delivered. As currently we don't support hot device
    47394736        unplug, IHostPciDevicePlugEvent event is delivered immediately.
    4740 
    4741         <note>
    4742           Not yet implemented.
    4743         </note>
    47444737
    47454738        <see>IHostPciDevicePlugEvent</see>
  • trunk/src/VBox/Main/src-client/BusAssignmentManager.cpp

    r36107 r36630  
    376376        const DeviceAssignmentRule* rule = matchingRules[iRule];
    377377
    378         Address.iBus = rule->iBus;
    379         Address.iDevice = rule->iDevice;
    380         Address.iFn = rule->iFn;
     378        Address.miBus = rule->iBus;
     379        Address.miDevice = rule->iDevice;
     380        Address.miFn = rule->iFn;
    381381
    382382        if (checkAvailable(Address))
    383383            return S_OK;
    384384    }
    385     AssertMsg(false, ("All possible candidate positions for %s exhausted\n", pszName));
     385    AssertMsgFailed(("All possible candidate positions for %s exhausted\n", pszName));
    386386
    387387    return E_INVALIDARG;
     
    490490        return rc;
    491491
    492     rc = InsertConfigInteger(pCfg, "PCIBusNo",      GuestAddress.iBus);
     492    rc = InsertConfigInteger(pCfg, "PCIBusNo",      GuestAddress.miBus);
    493493    if (FAILED(rc))
    494494        return rc;
    495     rc = InsertConfigInteger(pCfg, "PCIDeviceNo",   GuestAddress.iDevice);
     495    rc = InsertConfigInteger(pCfg, "PCIDeviceNo",   GuestAddress.miDevice);
    496496    if (FAILED(rc))
    497497        return rc;
    498     rc = InsertConfigInteger(pCfg, "PCIFunctionNo", GuestAddress.iFn);
     498    rc = InsertConfigInteger(pCfg, "PCIFunctionNo", GuestAddress.miFn);
    499499    if (FAILED(rc))
    500500        return rc;
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r36559 r36630  
    485485        Assert(GuestPciAddress.valid());
    486486
    487         if (GuestPciAddress.iBus > 0)
     487        if (GuestPciAddress.miBus > 0)
    488488        {
    489489            int iBridgesMissed = 0;
    490             int iBase = GuestPciAddress.iBus - 1;
     490            int iBase = GuestPciAddress.miBus - 1;
    491491
    492492            while (!BusMgr->hasPciDevice("ich9pcibridge", iBase) && iBase > 0)
     
    547547
    548548        InsertConfigInteger(pCfg,      "DetachHostDriver",  1);
    549         InsertConfigInteger(pCfg,      "HostPCIBusNo",      HostPciAddress.iBus);
    550         InsertConfigInteger(pCfg,      "HostPCIDeviceNo",   HostPciAddress.iDevice);
    551         InsertConfigInteger(pCfg,      "HostPCIFunctionNo", HostPciAddress.iFn);
     549        InsertConfigInteger(pCfg,      "HostPCIBusNo",      HostPciAddress.miBus);
     550        InsertConfigInteger(pCfg,      "HostPCIDeviceNo",   HostPciAddress.miDevice);
     551        InsertConfigInteger(pCfg,      "HostPCIFunctionNo", HostPciAddress.miFn);
    552552
    553553        GuestPciAddress.fromLong(guest);
     
    557557            return hrc;
    558558
    559         InsertConfigInteger(pCfg,      "GuestPCIBusNo",      GuestPciAddress.iBus);
    560         InsertConfigInteger(pCfg,      "GuestPCIDeviceNo",   GuestPciAddress.iDevice);
    561         InsertConfigInteger(pCfg,      "GuestPCIFunctionNo", GuestPciAddress.iFn);
     559        InsertConfigInteger(pCfg,      "GuestPCIBusNo",      GuestPciAddress.miBus);
     560        InsertConfigInteger(pCfg,      "GuestPCIDeviceNo",   GuestPciAddress.miDevice);
     561        InsertConfigInteger(pCfg,      "GuestPCIFunctionNo", GuestPciAddress.miFn);
    562562
    563563        /* the Main driver */
     
    18801880                InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg);
    18811881                InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance);
    1882                 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo",      it->mPciAddress.iBus);
    1883                 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo",   it->mPciAddress.iDevice);
    1884                 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciAddress.iFn);
     1882                InsertConfigInteger(pNetBtDevCfg, "PCIBusNo",      it->mPciAddress.miBus);
     1883                InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo",   it->mPciAddress.miDevice);
     1884                InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciAddress.miFn);
    18851885            }
    18861886        }
     
    25092509            {
    25102510                BootNic aNic = llBootNics.front();
    2511                 uint32_t u32NicPciAddr = (aNic.mPciAddress.iDevice << 16) | aNic.mPciAddress.iFn;
     2511                uint32_t u32NicPciAddr = (aNic.mPciAddress.miDevice << 16) | aNic.mPciAddress.miFn;
    25122512                InsertConfigInteger(pCfg, "NicPciAddress",    u32NicPciAddr);
    25132513            }
     
    25172517                if (BusMgr->findPciAddress("hda", 0, Address))
    25182518                {
    2519                     uint32_t u32AudioPciAddr = (Address.iDevice << 16) | Address.iFn;
     2519                    uint32_t u32AudioPciAddr = (Address.miDevice << 16) | Address.miFn;
    25202520                    InsertConfigInteger(pCfg, "AudioPciAddress",    u32AudioPciAddr);
    25212521                }
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r36451 r36630  
    59335933        fireHostPciDevicePlugEvent(es, mid.raw(), false /* unplugged */, true /* success */, pAttach, NULL);
    59345934    }
    5935 
    5936     return S_OK;
     5935   
     5936    return fRemoved ? S_OK : setError(VBOX_E_OBJECT_NOT_FOUND,
     5937                                      tr("No host PCI device %08x attached"),
     5938                                      hostAddress
     5939                                      );
    59375940}
    59385941
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