qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/6] accel/kvm: Specify default IPA size for arm64
@ 2023-07-27  7:31 Akihiko Odaki
  2023-07-27  7:31 ` [PATCH v5 1/6] kvm: Introduce kvm_arch_get_default_type hook Akihiko Odaki
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Akihiko Odaki @ 2023-07-27  7:31 UTC (permalink / raw)
  Cc: qemu-devel, qemu-arm, kvm, Paolo Bonzini, Peter Maydell,
	Richard Henderson, Akihiko Odaki

Some Arm systems such as Apple Silicon Macs have IPA size smaller than the
default used by KVM. Introduce our own default IPA size that fits on such a
system.

When reviewing this series, Philippe Mathieu-Daudé found the error handling
around KVM type decision logic is flawed so I added a few patches for fixing
the error handling path.

V4 -> V5: Fixed KVM type error handling
V3 -> V4: Removed an inclusion of kvm_mips.h that is no longer needed.
V2 -> V3: Changed to use the maximum IPA size as the default.
V1 -> V2: Introduced an arch hook

Akihiko Odaki (6):
  kvm: Introduce kvm_arch_get_default_type hook
  accel/kvm: Specify default IPA size for arm64
  mips: Report an error when KVM_VM_MIPS_VZ is unavailable
  accel/kvm: Use negative KVM type for error propagation
  accel/kvm: Free as when an error occurred
  accel/kvm: Make kvm_dirty_ring_reaper_init() void

 include/sysemu/kvm.h     |  2 ++
 target/mips/kvm_mips.h   |  9 ---------
 accel/kvm/kvm-all.c      | 19 +++++++++++--------
 hw/arm/virt.c            |  2 +-
 hw/mips/loongson3_virt.c |  2 --
 hw/ppc/spapr.c           |  2 +-
 target/arm/kvm.c         |  7 +++++++
 target/i386/kvm/kvm.c    |  5 +++++
 target/mips/kvm.c        |  3 ++-
 target/ppc/kvm.c         |  5 +++++
 target/riscv/kvm.c       |  5 +++++
 target/s390x/kvm/kvm.c   |  5 +++++
 12 files changed, 44 insertions(+), 22 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-08-10  9:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27  7:31 [PATCH v5 0/6] accel/kvm: Specify default IPA size for arm64 Akihiko Odaki
2023-07-27  7:31 ` [PATCH v5 1/6] kvm: Introduce kvm_arch_get_default_type hook Akihiko Odaki
2023-08-04 17:26   ` Peter Maydell
2023-08-04 17:38     ` Peter Maydell
2023-08-10  9:21       ` Philippe Mathieu-Daudé
2023-07-27  7:31 ` [PATCH v5 2/6] accel/kvm: Specify default IPA size for arm64 Akihiko Odaki
2023-08-04 17:32   ` Peter Maydell
2023-07-27  7:31 ` [PATCH v5 3/6] mips: Report an error when KVM_VM_MIPS_VZ is unavailable Akihiko Odaki
2023-08-04 17:27   ` Peter Maydell
2023-08-10  9:17   ` Philippe Mathieu-Daudé
2023-07-27  7:31 ` [PATCH v5 4/6] accel/kvm: Use negative KVM type for error propagation Akihiko Odaki
2023-08-04 17:28   ` Peter Maydell
2023-08-10  9:19   ` Philippe Mathieu-Daudé
2023-07-27  7:31 ` [PATCH v5 5/6] accel/kvm: Free as when an error occurred Akihiko Odaki
2023-08-04 17:30   ` Peter Maydell
2023-07-27  7:31 ` [PATCH v5 6/6] accel/kvm: Make kvm_dirty_ring_reaper_init() void Akihiko Odaki
2023-08-04 17:31   ` Peter Maydell
2023-08-10  9:18   ` Philippe Mathieu-Daudé
2023-08-04 17:41 ` [PATCH v5 0/6] accel/kvm: Specify default IPA size for arm64 Peter Maydell
2023-08-07 15:27   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).