Revision 87f0aa48 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
736 | 736 |
constants.HV_USE_LOCALTIME: hv_base.NO_CHECK, |
737 | 737 |
# TODO: Add a check for the blockdev prefix (matching [a-z:] or similar). |
738 | 738 |
constants.HV_BLOCKDEV_PREFIX: hv_base.NO_CHECK, |
739 |
# Add PCI passthrough |
|
740 |
constants.HV_PASSTHROUGH: hv_base.NO_CHECK, |
|
739 | 741 |
constants.HV_REBOOT_BEHAVIOR: |
740 | 742 |
hv_base.ParamInSet(True, constants.REBOOT_BEHAVIORS), |
741 | 743 |
constants.HV_CPU_MASK: hv_base.OPT_MULTI_CPU_MASK_CHECK, |
... | ... | |
834 | 836 |
disk_data.append(iso) |
835 | 837 |
|
836 | 838 |
config.write("disk = [%s]\n" % (",".join(disk_data))) |
837 |
|
|
839 |
# Add PCI passthrough |
|
840 |
pci_pass_arr = [] |
|
841 |
pci_pass = hvp[constants.HV_PASSTHROUGH] |
|
842 |
if pci_pass: |
|
843 |
pci_pass_arr = pci_pass.split(";") |
|
844 |
config.write("pci = %s \n" % pci_pass_arr) |
|
838 | 845 |
config.write("on_poweroff = 'destroy'\n") |
839 | 846 |
if hvp[constants.HV_REBOOT_BEHAVIOR] == constants.INSTANCE_REBOOT_ALLOWED: |
840 | 847 |
config.write("on_reboot = 'restart'\n") |
Also available in: Unified diff