]> git.proxmox.com Git - mirror_qemu.git/commit
sysemu/kvm: Restrict hvf_get_supported_cpuid() to x86 targets
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 4 Oct 2023 09:25:09 +0000 (11:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 7 Oct 2023 17:02:32 +0000 (19:02 +0200)
commit044431cfe7a9325cc5c22b5feb5a6116d0264e2f
tree67b0c61cee34100ea44c9d5f87bc591bb158f7a9
parent6da9447929a88c05bc82a6ead0c967ce1e1e838c
sysemu/kvm: Restrict hvf_get_supported_cpuid() to x86 targets

hvf_get_supported_cpuid() is only defined for x86 targets
(in target/i386/hvf/x86_cpuid.c).
Its declaration is pointless on all other targets.

All the calls to it in target/i386/cpu.c are guarded by
a call on hvf_enabled(), so are elided when HVF is not
built in. Therefore we can remove the unnecessary function
stub.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231004092510.39498-3-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/sysemu/hvf.h
target/i386/cpu.c
target/i386/hvf/hvf-cpu.c
target/i386/hvf/hvf-i386.h
target/i386/hvf/x86_cpuid.c