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

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

 



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@xxxxxxxxxx>
---
  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@xxxxxxxxxx>

r~



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux