qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/5] target/i386: Restrict sysemu/reset.h to system emulation


From: Philippe Mathieu-Daudé
Subject: [PATCH 2/5] target/i386: Restrict sysemu/reset.h to system emulation
Date: Tue, 20 Dec 2022 15:56:22 +0100

In user emulation, threads -- implemented as CPU -- are
created/destroyed, but never reset. There is no point in
allowing the user emulation access the sysemu/reset API.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 435980dd3a..91961359c7 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -24,7 +24,6 @@
 #include "qemu/hw-version.h"
 #include "cpu.h"
 #include "tcg/helper-tcg.h"
-#include "sysemu/reset.h"
 #include "sysemu/hvf.h"
 #include "kvm/kvm_i386.h"
 #include "sev.h"
@@ -37,6 +36,7 @@
 #ifndef CONFIG_USER_ONLY
 #include "qapi/qapi-commands-machine-target.h"
 #include "exec/address-spaces.h"
+#include "sysemu/reset.h"
 #include "hw/boards.h"
 #include "hw/i386/sgx-epc.h"
 #endif
-- 
2.38.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]