On 13/09/2026 07.45, Yonggang Luo wrote:
#define CPU_RESOLVING_TYPE TYPE_X86_CPU, and TYPE_X86_CPU is vary for for x86_32 and x86_64. can it define TYPE_X86_CPU to be a fixed 'x86-cpu' like other arches?
TYPE_X86_CPU differs depending on whether you build the binary that targets 64-bit guest CPUs (qemu-system-x86_64) or the binary that targets 32-bit guest CPUs (qemu-system-i386). You cannot easily change this without breaking migration from older QEMU versions.

What's exactly the problem that you have run into that led to this question?

FWIW, I once proposed a patch series that allows to integrate both target types in one binary:

 https://lore.kernel.org/qemu-devel/[email protected]/

... however, I unfortunately failed to get the supporting attention of the x86 maintainers, so this has never been merged.

 Thomas


Reply via email to