Force maxmem=memory for HVM with PCI devices

Xen do not support other cases at all ("PCI device assignment for HVM
guest failed due to PoD enabled", PoD means "populate on demand").
This commit is contained in:
Marek Marczykowski-Górecki 2017-06-15 00:21:13 +02:00
parent 083108e995
commit 5f187bd2bf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -2,7 +2,11 @@
{% block basic %} {% block basic %}
<name>{{ vm.name }}</name> <name>{{ vm.name }}</name>
<uuid>{{ vm.uuid }}</uuid> <uuid>{{ vm.uuid }}</uuid>
{% if vm.hvm and vm.devices['pci'].persistent() | list %}
<memory unit="MiB">{{ vm.memory }}</memory>
{% else %}
<memory unit="MiB">{{ vm.maxmem }}</memory> <memory unit="MiB">{{ vm.maxmem }}</memory>
{% endif %}
<currentMemory unit="MiB">{{ vm.memory }}</currentMemory> <currentMemory unit="MiB">{{ vm.memory }}</currentMemory>
<vcpu placement="static">{{ vm.vcpus }}</vcpu> <vcpu placement="static">{{ vm.vcpus }}</vcpu>
{% endblock %} {% endblock %}