qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 15/24] accel/tcg: Restrict IcountDecr and CPUTLB to TCG


From: Richard Henderson
Subject: Re: [PATCH 15/24] accel/tcg: Restrict IcountDecr and CPUTLB to TCG
Date: Mon, 29 Apr 2024 07:48:00 -0700
User-agent: Mozilla Thunderbird

On 4/28/24 15:14, Philippe Mathieu-Daudé wrote:
IcountDecr union, the CPUTLB* structures and the
"exec/tlb-common.h" header are only required for
TCG.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  include/exec/tlb-common.h | 4 ++++
  include/hw/core/cpu.h     | 9 ++++++---
  2 files changed, 10 insertions(+), 3 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Though you might mention can_do_io also being restricted:

@@ -346,6 +347,7 @@ typedef union IcountDecr {
   * @plugin_state: per-CPU plugin state
   */
  typedef struct CPUNegativeOffsetState {
+#ifdef CONFIG_TCG
      CPUTLB tlb;
  #ifdef CONFIG_PLUGIN
      /*
@@ -356,6 +358,7 @@ typedef struct CPUNegativeOffsetState {
  #endif
      IcountDecr icount_decr;
      bool can_do_io;
+#endif
  } CPUNegativeOffsetState;
struct KVMState;


r~



reply via email to

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