qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulatio


From: Richard Henderson
Subject: Re: [PATCH 10/14] exec/user: Restrict 'syscall-trace.h' to user emulation
Date: Sun, 28 Apr 2024 11:32:57 -0700
User-agent: Mozilla Thunderbird

On 4/27/24 08:57, Philippe Mathieu-Daudé wrote:
System emulation shouldn't use "user/syscall-trace.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  include/user/syscall-trace.h | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/include/user/syscall-trace.h b/include/user/syscall-trace.h
index b48b2b2d0a..6926434d9a 100644
--- a/include/user/syscall-trace.h
+++ b/include/user/syscall-trace.h
@@ -10,6 +10,10 @@
  #ifndef SYSCALL_TRACE_H
  #define SYSCALL_TRACE_H
+#ifndef CONFIG_USER_ONLY
+#error Cannot include this header from system emulation
+#endif
+
  #include "exec/user/abitypes.h"
  #include "gdbstub/user.h"
  #include "qemu/plugin.h"

Are we really going to do this for all include/user/ headers?


r~



reply via email to

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