From 9e247c4e063ab736c1bd1ba8f2a6ed8d0d068707 Mon Sep 17 00:00:00 2001 From: Alejandro Jimenez Date: Sat, 15 Feb 2020 14:14:34 -0500 Subject: [PATCH] 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 --- Cargo.toml | 1 + vmm/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e1b780dad..afb59ff76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index 91580497f..7113560c0 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -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"