Implement Kevin's suggestion to remove KVM declarations for user emulation builds, so if KVM prototype are used we directly get a compile failure. Philippe Mathieu-Daudé (4): sysemu/kvm: Restrict kvmppc_get_radix_page_info() to ppc targets target/ppc: Restrict KVM objects to system emulation hw/ppc/e500: Restrict ppce500_init_mpic_kvm() to KVM target/ppc: Prohibit target specific KVM prototypes on user emulation include/sysemu/kvm.h | 1 - target/ppc/kvm_ppc.h | 6 ++++++ hw/ppc/e500.c | 4 ++++ target/ppc/kvm-stub.c | 19 ------------------- target/ppc/kvm.c | 4 ++-- target/ppc/meson.build | 2 +- 6 files changed, 13 insertions(+), 23 deletions(-) delete mode 100644 target/ppc/kvm-stub.c -- 2.41.0