From: Paolo Bonzini Subject: Re: [PATCH v2 0/4] i386/kvm: advertise Hyper-V frequency MSRs Date: Mon, 11 Sep 2017 11:52:43 +0200 Message-ID: References: <20170807085703.32267-1-lprosek@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, david@redhat.com, rkrcmar@redhat.com To: Ladi Prosek , qemu-devel@nongnu.org, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60212 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbdIKJwu (ORCPT ); Mon, 11 Sep 2017 05:52:50 -0400 In-Reply-To: <20170807085703.32267-1-lprosek@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 07/08/2017 10:56, Ladi Prosek wrote: > This is the QEMU part of the changes required for nested Hyper-V to read > timestamps with RDTSC + TSC page. Without exposing the frequency MSRs, > Windows with the Hyper-V role enabled use the much slower > HV_X64_MSR_TIME_REF_COUNT (0x40000020) RDMSR to read timestamps. > > The new registers are exposed only if the TSC frequency is stable across > migration and known, as suggested by Paolo. > > v1->v2: > * deleted an extra empty line in patch 1 > * added patch 3 introducing a helper function for the "TSC is stable and > known" check (David) > > Ladi Prosek (4): > i386/kvm: use a switch statement for MSR detection > i386/kvm: set tsc_khz before configuring Hyper-V CPUID > i386/kvm: introduce tsc_is_stable_and_known() > i386/kvm: advertise Hyper-V frequency MSRs > > target/i386/kvm.c | 138 ++++++++++++++++++++++++++++-------------------------- > 1 file changed, 71 insertions(+), 67 deletions(-) > Queued, thanks. Paolo