From 296acb643b0f7ec3ab3d8c4a8fc48039d9269818 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Mon, 27 Sep 2010 15:16:17 +0200 Subject: 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 Signed-off-by: Avi Kivity --- target-i386/kvm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target-i386/kvm.c') 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; -- cgit v1.2.1