From: Tom Lendacky <thomas.lenda...@amd.com> In prep for AP booting, require the use of in-kernel irqchip support. This lessens the Qemu support burden required to boot APs.
Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com> --- target/i386/sev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/i386/sev.c b/target/i386/sev.c index af6b88691f..0d4bd3cd75 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -774,6 +774,12 @@ sev_guest_init(const char *id) sev->api_minor = status.api_minor; if (sev_es_enabled()) { + if (!kvm_kernel_irqchip_allowed()) { + error_report("%s: SEV-ES guests require in-kernel irqchip support", + __func__); + goto err; + } + if (!(status.flags & SEV_STATUS_FLAGS_CONFIG_ES)) { error_report("%s: guest policy requires SEV-ES, but " "host SEV-ES support unavailable", -- 2.28.0