mbox series

[v3,0/5] hw/virtio: Build virtio-mem.c once

Message ID 20250502214551.80401-1-philmd@linaro.org
Headers show
Series hw/virtio: Build virtio-mem.c once | expand

Message

Philippe Mathieu-Daudé May 2, 2025, 9:45 p.m. UTC
Since v2:
- Use TargetInfo API (Pierrick)

Since v1:
- Use max extent size of all archs (David)

Based-on: <20250501212113.2961531-1-richard.henderson@linaro.org>

Philippe Mathieu-Daudé (5):
  qemu/target-info: Factor target_system_arch() out
  qemu/target-info: Add %target_arch field to TargetInfo
  hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime
  hw/virtio/virtio-mem: Convert VIRTIO_MEM_HAS_LEGACY_GUESTS to runtime
  hw/virtio: Compile virtio-mem.c once

 include/qemu/target-info-impl.h |   4 +-
 include/qemu/target-info.h      |   9 +++
 hw/core/machine-qmp-cmds.c      |   6 +-
 hw/virtio/virtio-mem.c          | 101 +++++++++++++++++++-------------
 target-info-stub.c              |   1 +
 target-info.c                   |  15 +++++
 hw/virtio/meson.build           |   2 +-
 7 files changed, 90 insertions(+), 48 deletions(-)

Comments

Michael S. Tsirkin May 11, 2025, 6:39 p.m. UTC | #1
On Fri, May 02, 2025 at 11:45:46PM +0200, Philippe Mathieu-Daudé wrote:
> Since v2:
> - Use TargetInfo API (Pierrick)
> 
> Since v1:
> - Use max extent size of all archs (David)
> 
> Based-on: <20250501212113.2961531-1-richard.henderson@linaro.org>


virtio bits:
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

feel free to merge.

> Philippe Mathieu-Daudé (5):
>   qemu/target-info: Factor target_system_arch() out
>   qemu/target-info: Add %target_arch field to TargetInfo
>   hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime
>   hw/virtio/virtio-mem: Convert VIRTIO_MEM_HAS_LEGACY_GUESTS to runtime
>   hw/virtio: Compile virtio-mem.c once
> 
>  include/qemu/target-info-impl.h |   4 +-
>  include/qemu/target-info.h      |   9 +++
>  hw/core/machine-qmp-cmds.c      |   6 +-
>  hw/virtio/virtio-mem.c          | 101 +++++++++++++++++++-------------
>  target-info-stub.c              |   1 +
>  target-info.c                   |  15 +++++
>  hw/virtio/meson.build           |   2 +-
>  7 files changed, 90 insertions(+), 48 deletions(-)
> 
> -- 
> 2.47.1