summaryrefslogtreecommitdiff
path: root/target-i386/kvm.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-27 15:16:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-10-20 16:15:04 -0500
commit296acb643b0f7ec3ab3d8c4a8fc48039d9269818 (patch)
treee562b1b00594ef62dfbe963ee4fae058784dde9c /target-i386/kvm.c
parentdb0ad1ba047b59cb89865008dcd0edd301e84c37 (diff)
downloadqemu-296acb643b0f7ec3ab3d8c4a8fc48039d9269818.tar.gz
Add svm cpuid features
This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KVM can provide. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r--target-i386/kvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index a33d2fad6a..74e7b4f73b 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -192,6 +192,9 @@ int kvm_arch_init_vcpu(CPUState *env)
0, R_EDX);
env->cpuid_ext3_features &= kvm_arch_get_supported_cpuid(env, 0x80000001,
0, R_ECX);
+ env->cpuid_svm_features &= kvm_arch_get_supported_cpuid(env, 0x8000000A,
+ 0, R_EDX);
+
cpuid_i = 0;