aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-06-21 18:31:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-25 10:53:46 +0200
commit9ce8af4d92d4772cb33d4ea9cbd5ebdb970c5172 (patch)
tree3696e62d9bcb81b9d12320b1c989f08e26c1202d /target/i386/cpu.c
parentecba223da6215d6f6ce2d343b70b2e9a19bfb90b (diff)
downloadqemu-9ce8af4d92d4772cb33d4ea9cbd5ebdb970c5172.zip
qemu-9ce8af4d92d4772cb33d4ea9cbd5ebdb970c5172.tar.gz
qemu-9ce8af4d92d4772cb33d4ea9cbd5ebdb970c5172.tar.bz2
target/i386: kvm: add support for TSC scaling
Linux 5.14 will add support for nested TSC scaling. Add the corresponding feature in QEMU; to keep support for existing kernels, do not add it to any processor yet. The handling of the VMCS enumeration MSR is ugly; once we have more than one case, we may want to add a table to check VMX features against. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/cpu.c')
-rw-r--r--target/i386/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index a9fe166..d8f3ab3 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1031,7 +1031,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
"vmx-invpcid-exit", "vmx-vmfunc", "vmx-shadow-vmcs", "vmx-encls-exit",
"vmx-rdseed-exit", "vmx-pml", NULL, NULL,
"vmx-xsaves", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
+ NULL, "vmx-tsc-scaling", NULL, NULL,
NULL, NULL, NULL, NULL,
},
.msr = {