Fix pci device attachment to QubesVM

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-20 17:52:49 +02:00 committed by Wojtek Porczyk
parent c18537439f
commit d3f8fc96e4
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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 %}