Revision b6dbd9c9 include/HostShare.h

View differences:

include/HostShare.h
117 117
    static int get_pci_value(const char * name,
118 118
                             const VectorAttribute * pci_device,
119 119
                             unsigned int& value);
120
    /**
121
     *  Sets the PCI device address in the Virtual Machine as follows;
122
     *    - VM_DOMAIN: 0x0000
123
     *    - VM_BUS: dbus or VM_BUS in PCI attribute
124
     *    - VM_SLOT: PCI_ID + 1
125
     *    - VM_FUNCTION: 0
126
     *    - VM_ADDRESS: BUS:SLOT.0
127
     *  @param pci_device to set the address in
128
     *  @param default_bus if not set in PCI attribute (PCI_PASSTHROUGH_BUS
129
     *   in oned.conf)
130
     *  @return -1 if wrong bus 0 on success
131
     */
132
    static int set_pci_address(VectorAttribute * pci_device, const string& dbus);
120 133

  
121 134
private:
122 135
    /**

Also available in: Unified diff