Fix pci device attachment to QubesVM
This commit is contained in:
parent
c18537439f
commit
d3f8fc96e4
@ -132,7 +132,7 @@ class PCIDevice(RegexDevice):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def libvirt_name(self):
|
def libvirt_name(self):
|
||||||
return 'pci_000_{}_{}_{}'.format(self.bus, self.device, self.name)
|
return 'pci_0000_{}_{}_{}'.format(self.bus, self.device, self.function)
|
||||||
|
|
||||||
|
|
||||||
class BlockDevice(object):
|
class BlockDevice(object):
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for device in vm.devices.pci %}
|
{% for device in vm.devices.pci %}
|
||||||
{% include libvirt/devices/pci.xml %}
|
{% include 'libvirt/devices/pci.xml' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if vm.hvm %}
|
{% if vm.hvm %}
|
||||||
|
Loading…
Reference in New Issue
Block a user