mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
PCI passthru: tools changes (generic and vt-d)
I have added CONFIG_PASSTHROUGH in ioemu/Makefile.target and ioemu/hw/pc.c in attached vtd_tools2.patch. This should turn off libpci usage by default until user specifically enables it. This can be safely check-in without breaking builds for people who do not care about pass-through devices. I will try to think of a better way to enable this. Signed-off-by: Allen Kay <allen.m.kay@intel.com> Signed-off-by: Guy Zana <guy@neocleus.com>
This commit is contained in:
1 parent
221b43f357
commit
9e6ca368e2
11 files changed
+732
-12
No files matched your search
@@ -127,7 +127,7 @@ XENAPI_PLATFORM_CFG = [ 'acpi', 'apic', 'boot', 'device_model', 'display',
|
||||
'nographic', 'pae', 'rtc_timeoffset', 'serial', 'sdl',
|
||||
'soundhw','stdvga', 'usb', 'usbdevice', 'vnc',
|
||||
'vncconsole', 'vncdisplay', 'vnclisten',
|
||||
'vncpasswd', 'vncunused', 'xauthority']
|
||||
'vncpasswd', 'vncunused', 'xauthority', 'pci']
|
||||
|
||||
# Xen API console 'other_config' keys.
|
||||
XENAPI_CONSOLE_OTHER_CFG = ['vncunused', 'vncdisplay', 'vnclisten',
|
||||
@@ -168,6 +168,7 @@ XENAPI_CFG_TYPES = {
|
||||
'tools_version': dict,
|
||||
'other_config': dict,
|
||||
'security_label': str,
|
||||
'pci': str,
|
||||
}
|
||||
|
||||
# List of legacy configuration keys that have no equivalent in the
|
||||
|
||||
@@ -309,7 +309,7 @@ class HVMImageHandler(ImageHandler):
|
||||
def parseDeviceModelArgs(self, vmConfig):
|
||||
dmargs = [ 'boot', 'fda', 'fdb', 'soundhw',
|
||||
'localtime', 'serial', 'stdvga', 'isa',
|
||||
'acpi', 'usb', 'usbdevice', 'keymap' ]
|
||||
'acpi', 'usb', 'usbdevice', 'keymap', 'pci' ]
|
||||
|
||||
ret = ['-vcpus', str(self.vm.getVCpuCount())]
|
||||
|
||||
|
||||
@@ -721,7 +721,7 @@ def configure_hvm(config_image, vals):
|
||||
'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'soundhw',
|
||||
'vnc', 'vncdisplay', 'vncunused', 'vncconsole', 'vnclisten',
|
||||
'sdl', 'display', 'xauthority', 'rtc_timeoffset', 'monitor',
|
||||
'acpi', 'apic', 'usb', 'usbdevice', 'keymap' ]
|
||||
'acpi', 'apic', 'usb', 'usbdevice', 'keymap', 'pci' ]
|
||||
for a in args:
|
||||
if a in vals.__dict__ and vals.__dict__[a] is not None:
|
||||
config_image.append([a, vals.__dict__[a]])
|
||||
|
||||