target-i386: cpu: make -cpu host/check/enforce code KVM-specific
commit6e746f30558cb1331598575918c2a8808be2a75b
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 24 Oct 2012 21:44:06 +0000 (24 19:44 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 31 Oct 2012 01:39:53 +0000 (30 23:39 -0200)
treeeae9e6ed114887b63c3d2767fa21432daa4237d9
parent1aefc6b8cbe66e5adb3e6b160f6790171e0a7785
target-i386: cpu: make -cpu host/check/enforce code KVM-specific

Rationale:
 * "-cpu host" is available only when using KVM
 * The current implementation of -cpu check/enforce
   (check_features_against_host()) makes sense only when using KVM.

So this makes the functions check_features_against_host() and
cpu_x86_fill_host() KVM-specific, document them as such, and rename them
to kvm_check_features_against_host() and kvm_cpu_fill_host().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/cpu.c