]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Eliminate CONFIG_KVM #ifdefs
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 30 Jan 2014 19:48:53 +0000 (17:48 -0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Feb 2014 16:33:55 +0000 (17:33 +0100)
commitc1f412260b4e0f309dba8da99482fb32d6098719
treec49ef90b1b4ddb11b901f8edd352d7708d6bf719
parent48a5f3bcbbbe59a3120a39106bfda59fd1933fbc
target-i386: Eliminate CONFIG_KVM #ifdefs

The compiler is already able to eliminate the kvm_arch_get_supported_cpuid()
calls in kvm_cpu_fill_host() and filter_features_for_kvm(), so we can
eliminate the CONFIG_KVM #ifdefs there.

Also, kvm_cpu_fill_host() and host_cpuid() don't need to check
CONFIG_KVM, as they don't have any KVM-specific function calls.

Tested to build successfully with CONFIG_KVM disabled, using the
following CFLAGS combinations: "-DNDEBUG", "-DNDEBUG -O', "-DNDEBUG
-O0", "-DNDEBUG -O1", "-DNDEBUG -O2".

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.c