qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 07/16] accel: Rename HAX 'struct hax_vcpu_state' -> AccelC


From: Richard Henderson
Subject: Re: [PATCH v3 07/16] accel: Rename HAX 'struct hax_vcpu_state' -> AccelCPUState
Date: Mon, 26 Jun 2023 12:10:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 6/24/23 19:41, Philippe Mathieu-Daudé wrote:
We want all accelerators to share the same opaque pointer in
CPUState. Start with the HAX context, renaming its forward
declarated structure 'hax_vcpu_state' as 'AccelCPUState'.
Document the CPUState field. Directly use the typedef.

Remove the amusing but now unnecessary casts in NVMM / WHPX.

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  include/hw/core/cpu.h         |  5 ++---
  include/qemu/typedefs.h       |  1 +
  target/i386/hax/hax-i386.h    |  9 +++++----
  target/i386/hax/hax-all.c     | 16 ++++++++--------
  target/i386/hax/hax-posix.c   |  4 ++--
  target/i386/hax/hax-windows.c |  4 ++--
  target/i386/nvmm/nvmm-all.c   |  2 +-
  target/i386/whpx/whpx-all.c   |  2 +-
  8 files changed, 22 insertions(+), 21 deletions(-)

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

r~



reply via email to

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