RFC hw/xen: Have ARM targets use common xen_memory_listener
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest9 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | hw/xen/hvm: Inline TARGET_PAGE_ALIGN() macrohw/ | +1 | 1 reply | |
| 2/9 | hw/xen/hvm: Propagate page_mask to a pair of functionshw/ | +10 | 1 reply | |
| 3/9 | hw/xen/hvm: Get target page size at runtimehw/ | +39 | 1 reply | |
| 4/9 | hw/xen/hvm: Expose xen_memory_listener declarationhw/ hw/ include/ | +3 | 1 reply | |
| 5/9 | hw/xen/hvm: Expose xen_read_physmap() prototypehw/ include/ | +3 | 1 reply | |
| 6/9 | hw/xen/hvm: Initialize xen_physmap QLIST in xen_read_physmap()hw/ | +3 | 1 reply | |
| 7/9 | hw/xen/hvm: Extract common code to xen-hvm-common.chw/ hw/ hw/ | +474 | 1 reply | |
| 8/9 | hw/xen/hvm: Merge xen-hvm-common.c fileshw/ hw/ hw/ +2 more | +458 | 1 reply | |
| 9/9 | hw/xen/hvm: Inline xen_arch_set_memory()hw/ include/ | +51 | 1 reply |
Reviews trailers per patch
7 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Manos Pitsidianakis |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | R-b |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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