Re: [PATCH 2/3] sysemu/xen: Remove unreachable xen_ram_alloc() code

2023-10-04 Thread Michael Tokarev
05.09.2023 15:21, Philippe Mathieu-Daudé wrote: The xen_ram_alloc() call in softmmu/physmem.c is guarded by checking for xen_enabled(), which evaluate to 'false' when XEN is not built in. The compiler elide the function call, and thus the inlined function is not used. Remove it. I still don't t

[PATCH 2/3] sysemu/xen: Remove unreachable xen_ram_alloc() code

2023-09-05 Thread Philippe Mathieu-Daudé
The xen_ram_alloc() call in softmmu/physmem.c is guarded by checking for xen_enabled(), which evaluate to 'false' when XEN is not built in. The compiler elide the function call, and thus the inlined function is not used. Remove it. Inspired-by: Daniel Henrique Barboza Signed-off-by: Philippe Math