]> git.proxmox.com Git - mirror_qemu.git/commit
pc_piix: Reuse pc_compat_1_2() for pc-0.1[0123]
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 7 Jul 2014 18:30:52 +0000 (15:30 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Jul 2014 18:13:00 +0000 (21:13 +0300)
commitfaab4597973573852bbddadef21c9e788ce732b3
treec59f92a3356f03d62df944cf04838868e7cc9513
parent4ec6ee5acef8092ec64e183694aba2a1cfce8d80
pc_piix: Reuse pc_compat_1_2() for pc-0.1[0123]

pc-0.13 and older were missing some compat code that was present on
newer machine-types:

* x86_cpu_compat_disable_kvm_features(FEAT_1_ECX, CPUID_EXT_X2APIC);
  (pc-i440fx-1.7 and older)
  (added by commit ef02ef5f4536dba090b12360a6c862ef0e57e3bc)
* x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
  (pc-i440fx-1.4 and older)
  (added by commit 4458c23672904fa131e69897007eeb7c953be7e5
* x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
  (pc-i440fx-1.4 and older)
  (added by commit 56383703c060777fd01aaf8d63d5f46d660e9fb9)

Instead of duplicating the code from the previous pc_compat_*()
functions, we can now reuse pc_compat_1_2() and fix those issues.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c