Skip to content

RFC hw/xen: Have ARM targets use common xen_memory_listener

Philippe Mathieu-Daudé qemu-arm qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hw/xen/hvm: Inline TARGET_PAGE_ALIGN() macrohw/i386/xen/xen-hvm.c+1 -11 reply
2/9hw/xen/hvm: Propagate page_mask to a pair of functionshw/i386/xen/xen-hvm.c+10 -81 reply
3/9hw/xen/hvm: Get target page size at runtimehw/i386/xen/xen-hvm.c+39 -231 reply
4/9hw/xen/hvm: Expose xen_memory_listener declarationhw/arm/xen_arm.c hw/i386/xen/xen-hvm.c include/hw/xen/xen-hvm-common.h+3 -21 reply
5/9hw/xen/hvm: Expose xen_read_physmap() prototypehw/i386/xen/xen-hvm.c include/hw/xen/xen-hvm-common.h+3 -21 reply
6/9hw/xen/hvm: Initialize xen_physmap QLIST in xen_read_physmap()hw/i386/xen/xen-hvm.c+3 -11 reply
7/9hw/xen/hvm: Extract common code to xen-hvm-common.chw/i386/xen/meson.build hw/i386/xen/xen-hvm-common.c hw/i386/xen/xen-hvm.c+474 -4591 reply
8/9hw/xen/hvm: Merge xen-hvm-common.c fileshw/arm/xen_arm.c hw/i386/xen/meson.build hw/i386/xen/xen-hvm-common.c +2 more+458 -5021 reply
9/9hw/xen/hvm: Inline xen_arch_set_memory()hw/xen/xen-hvm-common.c include/hw/xen/xen-hvm-common.h+51 -561 reply

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchManos Pitsidianakis
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9
9/9

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

Read the v1 thread

Cover letter [RFC PATCH-for-9.0 0/9] hw/xen: Have ARM targets use common xen_memory_listener

Hi,

While looking at Xen target-specific code, I noticed some generic code used by x86 which is not implemented for ARM.

Maybe ARM machines don't need it, I don't know. But I wanted to see if I can get this common code target agnostic and build it once, possibly bringing smth useful to ARM.

The changes don't break CI testing and Avocado local tests. If this xen_memory_listener feature isn't required for ARM, I'll send follow up patch that keep this series with common xen_memory_listener but with a runtime flag to disable.

Patches do the usual "change target-specific API to a target-agnostic one", in particular using "exec/target_page.h" at runtime. Then non-x86 code is extracted, then merged to the generic xen/xen-hvm-common.c.

Thoughts?

Regards,

Phil.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (9):
hw/xen/hvm: Inline TARGET_PAGE_ALIGN() macro hw/xen/hvm: Propagate page_mask to a pair of functions hw/xen/hvm: Get target page size at runtime hw/xen/hvm: Expose xen_memory_listener declaration hw/xen/hvm: Expose xen_read_physmap() prototype hw/xen/hvm: Initialize xen_physmap QLIST in xen_read_physmap() hw/xen/hvm: Extract common code to xen-hvm-common.c hw/xen/hvm: Merge xen-hvm-common.c files
hw/xen/hvm: Inline xen_arch_set_memory()

 include/hw/xen/xen-hvm-common.h |   5 +-
 hw/arm/xen_arm.c                |  24 --
 hw/i386/xen/xen-hvm.c           | 441 +----------------------------
 hw/xen/xen-hvm-common.c         | 474 +++++++++++++++++++++++++++++++-
 stubs/xen-hw-stub.c             |   4 -
 5 files changed, 468 insertions(+), 480 deletions(-)
Signature · 1 line
2.41.0