> On 16. Sep 2025, at 19:40, Dr. David Alan Gilbert <d...@treblig.org> wrote: > > For example 'x86_is_real' is declared in target/i386/emulate/x86.h > and defined in target/i386/hvf/x86.c (hmm that's a bit weird). > So it's probably best to check if what you want already exists, > move it into target/i386 somewhere I guess, and everyone shares it. Currently there isn’t a backend-agnostic interface for this. It was part of the import of HVF support to qemu from downstream.
Notably means that the emulate infrastructure isn’t usable by multiple backends in the same build. It might be possible to get away without that however as HVF is macOS specific, MSHV is Linux-specific and WHPX (which is currently using winhvemulator instead of this) is Windows-specific...