Handle host e820 memory map feature

This is port of marmarek's "core: add pci_e820_host property"

QubesOS/qubes-issues#2019
This commit is contained in:
Wojtek Porczyk 2016-06-13 23:20:39 +02:00
parent 8de987443c
commit 129f55fe36

View File

@ -19,14 +19,22 @@
{% endif %}
</os>
{% if vm.hvm %}
<features>
{% if vm.hvm %}
<pae/>
<acpi/>
<apic/>
<viridian/>
{% endif %}
{% if vm.devices['pci'] and vm.features.get('pci-e820-host', True) %}
<xen>
<e820_host state="on"/>
</xen>
{% endif %}
</features>
{% if vm.hvm %}
{% set timezone = vm.features.check_with_template('timezone', 'localtime').lower() %}
{% if timezone == 'localtime' %}
<clock offset="variable" adjustment="0" basis="localtime" />