Re: [PATCH v3 16/16] accel: Rename HVF 'struct hvf_vcpu_state' -> AccelCPUState

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

 



On 24/6/23 19:41, Philippe Mathieu-Daudé wrote:
We want all accelerators to share the same opaque pointer in
CPUState.

Rename the 'hvf_vcpu_state' structure as 'AccelCPUState'.

Use the generic 'accel' field of CPUState instead of 'hvf'.

Replace g_malloc0() by g_new0() for readability.

Signed-off-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
Reviewed-by: Richard Henderson <richard.henderson@xxxxxxxxxx>
---
Not even built on x86!

Per IRC chat:
Tested-by: Peter Maydell <peter.maydell@xxxxxxxxxx>

---
  include/hw/core/cpu.h       |   4 -
  include/sysemu/hvf_int.h    |   2 +-
  target/i386/hvf/vmx.h       |  22 ++--
  accel/hvf/hvf-accel-ops.c   |  18 ++--
  target/arm/hvf/hvf.c        | 108 +++++++++----------
  target/i386/hvf/hvf.c       | 104 +++++++++---------
  target/i386/hvf/x86.c       |  28 ++---
  target/i386/hvf/x86_descr.c |  26 ++---
  target/i386/hvf/x86_emu.c   |  62 +++++------
  target/i386/hvf/x86_mmu.c   |   4 +-
  target/i386/hvf/x86_task.c  |  10 +-
  target/i386/hvf/x86hvf.c    | 208 ++++++++++++++++++------------------
  12 files changed, 296 insertions(+), 300 deletions(-)




[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