diff options
author | Joerg Roedel | 2010-09-27 15:16:17 +0200 |
---|---|---|
committer | Anthony Liguori | 2010-10-20 23:15:04 +0200 |
commit | 296acb643b0f7ec3ab3d8c4a8fc48039d9269818 (patch) | |
tree | e562b1b00594ef62dfbe963ee4fae058784dde9c /target-i386/kvm.c | |
parent | Set cpuid definition to 0 before initializing it (diff) | |
download | qemu-296acb643b0f7ec3ab3d8c4a8fc48039d9269818.tar.gz qemu-296acb643b0f7ec3ab3d8c4a8fc48039d9269818.tar.xz qemu-296acb643b0f7ec3ab3d8c4a8fc48039d9269818.zip |
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.c | 3 |
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; |