target/i386: kvm: add support for TSC scaling
commit9ce8af4d92d4772cb33d4ea9cbd5ebdb970c5172
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Jun 2021 16:31:52 +0000 (21 18:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 08:53:46 +0000 (25 10:53 +0200)
tree3696e62d9bcb81b9d12320b1c989f08e26c1202d
parentecba223da6215d6f6ce2d343b70b2e9a19bfb90b
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>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm.c