Revision 3891c95e
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
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 | 739 |
# Add PCI passthrough |
740 |
constants.HV_PASSTHROUGH: hv_base.NO_CHECK,
|
|
740 |
constants.HV_PASSTHROUGH: hv_base.NO_CHECK, |
|
741 | 741 |
constants.HV_REBOOT_BEHAVIOR: |
742 | 742 |
hv_base.ParamInSet(True, constants.REBOOT_BEHAVIORS), |
743 | 743 |
constants.HV_CPU_MASK: hv_base.OPT_MULTI_CPU_MASK_CHECK, |
... | ... | |
840 | 840 |
pci_pass_arr = [] |
841 | 841 |
pci_pass = hvp[constants.HV_PASSTHROUGH] |
842 | 842 |
if pci_pass: |
843 |
pci_pass_arr = pci_pass.split(";")
|
|
844 |
config.write("pci = %s\n" % pci_pass_arr)
|
|
843 |
pci_pass_arr = pci_pass.split(";") |
|
844 |
config.write("pci = %s\n" % pci_pass_arr) |
|
845 | 845 |
config.write("on_poweroff = 'destroy'\n") |
846 | 846 |
if hvp[constants.HV_REBOOT_BEHAVIOR] == constants.INSTANCE_REBOOT_ALLOWED: |
847 | 847 |
config.write("on_reboot = 'restart'\n") |
Also available in: Unified diff