Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Philippe Mathieu-Daudé
On 7/3/25 20:28, Pierrick Bouvier wrote: On 3/7/25 08:49, Philippe Mathieu-Daudé wrote: On 7/3/25 17:38, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Use qemu_arch_available() to check at runtime if a target architecture is built in. Signed-off-by: Philippe Mathieu-Daudé ---    hw/vir

Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Richard Henderson
On 3/7/25 08:49, Philippe Mathieu-Daudé wrote: @@ -170,13 +171,16 @@ static bool virtio_mem_has_shared_zeropage(RAMBlock *rb)    * necessary (as the section size can change). But it's more likely that the    * section size will rather get smaller and not bigger over time.    */ -#if defined(TARGE

Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Pierrick Bouvier
On 3/7/25 08:49, Philippe Mathieu-Daudé wrote: On 7/3/25 17:38, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Use qemu_arch_available() to check at runtime if a target architecture is built in. Signed-off-by: Philippe Mathieu-Daudé --- hw/virtio/virtio-mem.c | 20

Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread David Hildenbrand
On 07.03.25 17:49, Philippe Mathieu-Daudé wrote: On 7/3/25 17:38, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Use qemu_arch_available() to check at runtime if a target architecture is built in. Signed-off-by: Philippe Mathieu-Daudé --- hw/virtio/virtio-mem.c | 20 --

Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Philippe Mathieu-Daudé
On 7/3/25 17:38, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Use qemu_arch_available() to check at runtime if a target architecture is built in. Signed-off-by: Philippe Mathieu-Daudé --- hw/virtio/virtio-mem.c | 20 1 file changed, 12 insertions(+), 8 deletions(

Re: [PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Use qemu_arch_available() to check at runtime if a target > architecture is built in. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/virtio/virtio-mem.c | 20 > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/hw/virti

[PATCH 5/7] hw/virtio/virtio-mem: Convert VIRTIO_MEM_USABLE_EXTENT to runtime

2025-03-07 Thread Philippe Mathieu-Daudé
Use qemu_arch_available() to check at runtime if a target architecture is built in. Signed-off-by: Philippe Mathieu-Daudé --- hw/virtio/virtio-mem.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index 5f5