Fix pci device attachment to QubesVM
This commit is contained in:
parent
c18537439f
commit
d3f8fc96e4
@ -132,7 +132,7 @@ class PCIDevice(RegexDevice):
|
||||
|
||||
@property
|
||||
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):
|
||||
|
@ -94,7 +94,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% for device in vm.devices.pci %}
|
||||
{% include libvirt/devices/pci.xml %}
|
||||
{% include 'libvirt/devices/pci.xml' %}
|
||||
{% endfor %}
|
||||
|
||||
{% if vm.hvm %}
|
||||
|
Loading…
Reference in New Issue
Block a user