[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 4/4] hw/arm/virt: Use edk2_add_host_crypto_policy
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH v4 4/4] hw/arm/virt: Use edk2_add_host_crypto_policy() |
Date: |
Tue, 12 Mar 2019 23:56:32 +0100 |
Enable the EDK2 Crypto Policy features on the Virt machine.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/virt.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ce2664a30b..927d4ff31a 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -56,6 +56,7 @@
#include "hw/intc/arm_gicv3_common.h"
#include "kvm_arm.h"
#include "hw/firmware/smbios.h"
+#include "hw/firmware/uefi_edk2.h"
#include "qapi/visitor.h"
#include "standard-headers/linux/input.h"
#include "hw/arm/smmuv3.h"
@@ -1301,6 +1302,11 @@ static void virt_build_smbios(VirtMachineState *vms)
}
}
+static void virt_uefi_setup(VirtMachineState *vms)
+{
+ edk2_add_host_crypto_policy(vms->fw_cfg, &error_fatal);
+}
+
static
void virt_machine_done(Notifier *notifier, void *data)
{
@@ -1329,6 +1335,7 @@ void virt_machine_done(Notifier *notifier, void *data)
virt_acpi_setup(vms);
virt_build_smbios(vms);
+ virt_uefi_setup(vms);
}
static uint64_t virt_cpu_mp_affinity(VirtMachineState *vms, int idx)
--
2.20.1
- [Qemu-devel] [PATCH v4 0/4] fw_cfg: Add edk2_add_host_crypto_policy(), Philippe Mathieu-Daudé, 2019/03/12
- [Qemu-devel] [PATCH v4 3/4] hw/i386: Use edk2_add_host_crypto_policy(), Philippe Mathieu-Daudé, 2019/03/12
- [Qemu-devel] [PATCH v4 4/4] hw/arm/virt: Use edk2_add_host_crypto_policy(),
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v4 1/4] hw/nvram/fw_cfg: Add fw_cfg_add_file_from_host(), Philippe Mathieu-Daudé, 2019/03/12
- [Qemu-devel] [PATCH v4 2/4] hw/firmware: Add Edk2Crypto and edk2_add_host_crypto_policy(), Philippe Mathieu-Daudé, 2019/03/12
- Re: [Qemu-devel] [PATCH v4 0/4] fw_cfg: Add edk2_add_host_crypto_policy(), Markus Armbruster, 2019/03/13
- Re: [Qemu-devel] [PATCH v4 0/4] fw_cfg: Add edk2_add_host_crypto_policy(), Laszlo Ersek, 2019/03/13