The patch series introduces use of d->arch.emulation_flags for non-x86 platforms (patch 1) and hooks emulation_flags to 'q' keyhandler for debugging. emulation_flags on non-x86 systems will be used in the follow on virtual UARTs clean up series.
Also, series adds helper macros (patch 2) which are used in re-write of emulation_flags_ok() on x86 (patch 3, depends on patch 2). Originally, the code was part of [1], part of NS16550 emulator v3 series. [1] https://lore.kernel.org/xen-devel/20250103-vuart-ns8250-v3-v1-6-c5d36b31d...@ford.com/ [2] Link to CI run: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/1745622772 Denis Mukhin (3): xen/domain: introduce non-x86 hardware emulation flags x86/domain: add helpers to simplify emulation flags management xen/domain: rewrite emulation_flags_ok() tools/python/xen/lowlevel/xc/xc.c | 4 +--- xen/arch/arm/include/asm/domain.h | 2 ++ xen/arch/ppc/include/asm/domain.h | 2 ++ xen/arch/riscv/include/asm/domain.h | 2 ++ xen/arch/x86/domain.c | 29 +++++++++++------------------ xen/arch/x86/include/asm/domain.h | 2 +- xen/common/keyhandler.c | 1 + xen/include/public/arch-x86/xen.h | 7 +++++++ 8 files changed, 27 insertions(+), 22 deletions(-) -- 2.34.1