From: Philippe Mathieu-Daudé Date: Mon, 4 Sep 2023 12:43:15 +0000 (+0200) Subject: target/i386/helper: Restrict KVM declarations to system emulation X-Git-Tag: pull-xenfv-stable-20231106~107^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=28a43cb4dcb3a58408c2936f7be5cb1e1a3ca016;p=users%2Fdwmw2%2Fqemu.git target/i386/helper: Restrict KVM declarations to system emulation User emulation doesn't need any KVM declarations. Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20230904124325.79040-5-philmd@linaro.org> Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/helper.c b/target/i386/helper.c index 89aa696c6d..2070dd0dda 100644 --- a/target/i386/helper.c +++ b/target/i386/helper.c @@ -22,10 +22,10 @@ #include "cpu.h" #include "exec/exec-all.h" #include "sysemu/runstate.h" -#include "kvm/kvm_i386.h" #ifndef CONFIG_USER_ONLY #include "sysemu/hw_accel.h" #include "monitor/monitor.h" +#include "kvm/kvm_i386.h" #endif #include "qemu/log.h" #ifdef CONFIG_TCG