[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] i386: Make "max" model not use any host CPUID i
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 5/6] i386: Make "max" model not use any host CPUID info on TCG |
Date: |
Thu, 19 Jan 2017 19:04:48 -0200 |
Instead of reporting host CPUID data on "max", use the qemu64 CPU
model as reference to initialize CPUID
vendor/family/model/stepping/model-id.
Signed-off-by: Eduardo Habkost <address@hidden>
---
target/i386/cpu.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 6f3a62840f..ea4e1ae519 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1592,6 +1592,15 @@ static void max_x86_cpu_initfn(Object *obj)
if (lmce_supported()) {
object_property_set_bool(OBJECT(cpu), true, "lmce", &error_abort);
}
+ } else {
+ object_property_set_str(OBJECT(cpu), CPUID_VENDOR_AMD,
+ "vendor", &error_abort);
+ object_property_set_int(OBJECT(cpu), 6, "family", &error_abort);
+ object_property_set_int(OBJECT(cpu), 6, "model", &error_abort);
+ object_property_set_int(OBJECT(cpu), 3, "stepping", &error_abort);
+ object_property_set_str(OBJECT(cpu),
+ "QEMU TCG CPU version " QEMU_HW_VERSION,
+ "model-id", &error_abort);
}
object_property_set_bool(OBJECT(cpu), true, "pmu", &error_abort);
--
2.11.0.259.g40922b1
- [Qemu-devel] [PATCH 0/6] i386: Add "max" CPU model to TCG and KVM, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 1/6] i386: Unset cannot_destroy_with_object_finalize_yet on "host" model, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 2/6] i386: Add ordering field to CPUClass, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 3/6] i386: Rename X86CPU::host_features to X86CPU::max_features, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 4/6] i386: Create "max" CPU model, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 6/6] i386: Don't set CPUClass::cpu_def on "max" model, Eduardo Habkost, 2017/01/19
- [Qemu-devel] [PATCH 5/6] i386: Make "max" model not use any host CPUID info on TCG,
Eduardo Habkost <=
- Re: [Qemu-devel] [PATCH 0/6] i386: Add "max" CPU model to TCG and KVM, Peter Maydell, 2017/01/20
- Re: [Qemu-devel] [PATCH 0/6] i386: Add "max" CPU model to TCG and KVM, David Hildenbrand, 2017/01/20
- Re: [Qemu-devel] [PATCH 0/6] i386: Add "max" CPU model to TCG and KVM, Cornelia Huck, 2017/01/20