On 06/07/2015 18:31, Peter Maydell wrote:
> I'm afraid this doesn't build on OSX or on ARM Linux
> (or likely any build host where x86 isn't a CONFIG_KVM build):
> 
>   CC    i386-softmmu/hw/i386/pc_piix.o
> /Users/pm215/src/qemu/hw/i386/pc.c:1782:56: error: use of undeclared 
> identifier
>       'KVM_CAP_X86_SMM'
>         smm_available = kvm_check_extension(kvm_state, KVM_CAP_X86_SMM);
>                                                        ^
> 1 error generated.
> 
> Putting #ifdef CONFIG_KVM around the offending line fixes this;
> there may be a cleaner approach.

Indeed the same file already does something cleaner for
kvm_allows_irq0_override().

Paolo

Reply via email to