qemu-x86: Add tsc_freq option to -cpu

To let the user configure the desired tsc frequency for the
guest if running in KVM.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
Joerg Roedel 2011-07-07 16:13:12 +02:00 committed by Marcelo Tosatti
parent a732e1baa8
commit b862d1fe42
2 changed files with 14 additions and 0 deletions

View file

@ -743,6 +743,7 @@ typedef struct CPUX86State {
uint32_t cpuid_kvm_features;
uint32_t cpuid_svm_features;
bool tsc_valid;
int tsc_khz;
/* in order to simplify APIC support, we leave this pointer to the
user */