qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] introduce kvm64 CPU
@ 2009-08-20 21:34 Andre Przywara
  2009-08-21 13:33 ` [Qemu-devel] " Jamie Lokier
  2009-08-21 15:41 ` Avi Kivity
  0 siblings, 2 replies; 13+ messages in thread
From: Andre Przywara @ 2009-08-20 21:34 UTC (permalink / raw)
  To: avi, anthony; +Cc: Andre Przywara, qemu-devel, kvm

In addition to the TCG based qemu64 type let's introduce a kvm64 CPU type,
which is the least common denominator of all KVM-capable x86-CPUs
(based on Intel Pentium 4 Prescott). It can be used as a base type
for migration.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
---
 target-i386/helper.c |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/target-i386/helper.c b/target-i386/helper.c
index dd89885..4cf62d9 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -187,6 +187,32 @@ static x86_def_t x86_defs[] = {
         .xlevel = 0x80000008,
         .model_id = "Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz",
     },
+    {
+        .name = "kvm64",
+        .level = 5,
+        .vendor1 = CPUID_VENDOR_INTEL_1,
+        .vendor2 = CPUID_VENDOR_INTEL_2,
+        .vendor3 = CPUID_VENDOR_INTEL_3,
+        .family = 15,
+        .model = 6,
+        .stepping = 1,
+        /* Missing: CPUID_VME, CPUID_HT */
+        .features = PPRO_FEATURES |
+            CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA |
+            CPUID_PSE36,
+        /* Missing: CPUID_EXT_POPCNT, CPUID_EXT_MONITOR */
+        .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_CX16,
+        /* Missing: CPUID_EXT2_PDPE1GB, CPUID_EXT2_RDTSCP */
+        .ext2_features = (PPRO_FEATURES & 0x0183F3FF) |
+            CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
+        /* Missing: CPUID_EXT3_LAHF_LM, CPUID_EXT3_CMP_LEG, CPUID_EXT3_EXTAPIC,
+                    CPUID_EXT3_CR8LEG, CPUID_EXT3_ABM, CPUID_EXT3_SSE4A,
+                    CPUID_EXT3_MISALIGNSSE, CPUID_EXT3_3DNOWPREFETCH,
+                    CPUID_EXT3_OSVW, CPUID_EXT3_IBS, CPUID_EXT3_SVM */
+        .ext3_features = 0,
+        .xlevel = 0x80000008,
+        .model_id = "Common KVM processor"
+    },
 #endif
     {
         .name = "qemu32",
-- 
1.6.1.3

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-08-23 13:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 21:34 [Qemu-devel] [PATCH] introduce kvm64 CPU Andre Przywara
2009-08-21 13:33 ` [Qemu-devel] " Jamie Lokier
2009-08-21 14:23   ` Andre Przywara
2009-08-22  1:45     ` Jamie Lokier
2009-08-21 15:41 ` Avi Kivity
2009-08-21 16:01   ` Glauber Costa
2009-08-21 21:53     ` Andre Przywara
2009-08-23  9:03       ` Avi Kivity
2009-08-23 13:20       ` Amit Shah
2009-08-21 21:59   ` Andre Przywara
2009-08-23  9:05     ` Avi Kivity
2009-08-23 12:47       ` Jamie Lokier
2009-08-22  1:03   ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).