mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/xen: add stubs for various functions
Those symbols are used by system/physmem.c, and are called only if xen_enabled() (which happens only if CONFIG_XEN is set and xen is available). So we can crash the stubs in case those are called, as they are linked only when CONFIG_XEN is not set. Acked-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Anthony PERARD <anthony.perard@vates.tech> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250317183417.285700-13-pierrick.bouvier@linaro.org>
This commit is contained in:
parent
dea4acbdef
commit
105d7ea0a5
2 changed files with 54 additions and 0 deletions
|
@ -9,6 +9,9 @@ system_ss.add(when: ['CONFIG_XEN_BUS'], if_true: files(
|
|||
|
||||
system_ss.add(when: ['CONFIG_XEN', xen], if_true: files(
|
||||
'xen-operations.c',
|
||||
),
|
||||
if_false: files(
|
||||
'xen_stubs.c',
|
||||
))
|
||||
|
||||
xen_specific_ss = ss.source_set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue