From: Joerg Roedel Subject: [PATCH 0/6][RESEND] TSC scaling support for KVM v2 Date: Thu, 24 Mar 2011 08:40:18 +0100 Message-ID: <1300952424-32014-1-git-send-email-joerg.roedel@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Zachary Amsden , To: Avi Kivity , Marcelo Tosatti Return-path: Received: from ch1outboundpool.messaging.microsoft.com ([216.32.181.183]:33691 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933338Ab1CXHkb (ORCPT ); Thu, 24 Mar 2011 03:40:31 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi, this is version 2 of the TSC scaling patch-set. The main difference to version 1 is that the scaling factor is not switched in the leightweight exit path anymore. This is possible because production hardware will apply the scaling factor only when the CPU is in guest mode. Beside that change I addressed the comments that came up in the review of the first version. An important change here is that I changed the usage of the adjust_tsc_offset() function and calculate all adjustment values only from the guest tsc. This change should make it suitable to the changes Zachary wants to implement. Comments on this patches appreciated. Thanks, Joerg Diffstat: Documentation/kvm/api.txt | 22 ++++++++ arch/x86/include/asm/kvm_host.h | 10 ++++ arch/x86/include/asm/msr-index.h | 1 + arch/x86/kvm/svm.c | 110 +++++++++++++++++++++++++++++++++++++- arch/x86/kvm/vmx.c | 12 ++++ arch/x86/kvm/x86.c | 87 +++++++++++++++++++++++++++--- include/linux/kvm.h | 5 ++ 7 files changed, 237 insertions(+), 10 deletions(-) Shortlog: Joerg Roedel (6): KVM: SVM: Implement infrastructure for TSC_RATE_MSR KVM: X86: Let kvm-clock report the right tsc frequency KVM: X86: Make tsc_delta calculation a function of guest tsc KVM: SVM: Propagate requested TSC frequency on vcpu init KVM: X86: Delegate tsc-offset calculation to architecture code KVM: X86: Implement userspace interface to set virtual_tsc_khz