Skip to content

Add symbols for memory listener priority

Isaku Yamahata qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3exec/memory: Add symbolic value for memory listener priority for accelaccel/hvf/hvf-accel-ops.c accel/kvm/kvm-all.c hw/arm/xen_arm.c +7 more+12 -100 replies
2/3exec/memory: Add symbol for memory listener priority for dev backendaccel/kvm/kvm-all.c hw/remote/proxy-memory-listener.c hw/virtio/vhost.c +1 more+4 -30 replies
3/3exec/memory: Add symbol for the min value of memory listener priorityaccel/kvm/kvm-all.c include/exec/memory.h target/arm/kvm.c+3 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-Daudé
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Add symbols for memory listener priority

The hard-coded value, 10, is used for memory_listener_register(). Add symbolic values for priority of struct MemoryLister. Replace those hard-coded values with symbols.

The background is KVM guest memory[1] or TDX support. I'd like to add one more memory listener whose priority is higher than the KVM memory listener. And I don't want to hard-code 10 + 1.

[1] KVM gmem patches
https://github.com/sean-jc/linux/tree/x86/kvm_gmem_solo

Isaku Yamahata (3):
exec/memory: Add symbolic value for memory listener priority for accel exec/memory: Add symbol for memory listener priority for dev backend exec/memory: Add symbol for the min value of memory listener priority

 accel/hvf/hvf-accel-ops.c         | 2 +-
 accel/kvm/kvm-all.c               | 5 +++--
 hw/arm/xen_arm.c                  | 2 +-
 hw/i386/xen/xen-hvm.c             | 2 +-
 hw/remote/proxy-memory-listener.c | 2 +-
 hw/virtio/vhost.c                 | 2 +-
 hw/xen/xen-hvm-common.c           | 2 +-
 hw/xen/xen_pt.c                   | 4 ++--
 include/exec/memory.h             | 4 ++++
 target/arm/kvm.c                  | 1 +
 target/i386/hax/hax-mem.c         | 2 +-
 target/i386/nvmm/nvmm-all.c       | 2 +-
 target/i386/whpx/whpx-all.c       | 2 +-
 13 files changed, 19 insertions(+), 13 deletions(-)

base-commit: cab35c73be9d579db105ef73fa8a60728a890098

Signature · 1 line
2.25.1