pvh: Introduce "pvh_boot" feature

Use a new feature called "pvh_boot" to enable using the PVH boot
protocol if the guest kernel supports it. The feature can be enabled
by building with:

cargo build [--release] --features "pvh_boot"

Once performance has been evaluated, this can be made part of the
default set of features so that any guest that supports it boots
using PVH as the preferred option as is the case in QEMU.

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
This commit is contained in:
Alejandro Jimenez 2020-02-15 14:14:34 -05:00 committed by Sebastien Boeuf
parent a22bc3559f
commit 9e247c4e06
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ acpi = ["vmm/acpi"]
pci = ["vmm/pci_support"]
mmio = ["vmm/mmio_support"]
cmos = ["vmm/cmos"]
pvh_boot = ["vmm/pvh_boot"]
# Integration tests require a special environment to run in
integration_tests = []

View File

@ -10,6 +10,7 @@ acpi = ["acpi_tables","devices/acpi"]
pci_support = ["pci", "vfio", "vm-virtio/pci_support"]
mmio_support = ["vm-virtio/mmio_support"]
cmos = ["devices/cmos"]
pvh_boot = []
[dependencies]
arc-swap = ">=0.4.4"