Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823Ab3IQTxm (ORCPT ); Tue, 17 Sep 2013 15:53:42 -0400 Received: from mail-bn1lp0155.outbound.protection.outlook.com ([207.46.163.155]:33312 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753336Ab3IQTxl convert rfc822-to-8bit (ORCPT ); Tue, 17 Sep 2013 15:53:41 -0400 From: KY Srinivasan To: Gleb Natapov CC: "H. Peter Anvin" , "x86@kernel.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , "tglx@linutronix.de" , "JBeulich@suse.com" , "bp@alien8.de" Subject: RE: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequency from the hypervisor Thread-Topic: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequency from the hypervisor Thread-Index: AQHOqM30I+mkPB2b1kKq/5YqjRysqJnC17CggAAG+ACAABQ5UIAAikAAgABK5hCABkKSgIAAYOzQ Date: Tue, 17 Sep 2013 19:53:36 +0000 Message-ID: <2b4a9a0cff5143c59a0802a2e425c4db@SN2PR03MB061.namprd03.prod.outlook.com> References: <1378233023-4512-1-git-send-email-kys@microsoft.com> <52325C1E.90101@zytor.com> <50f92d9c16a54e5bb6fa14ef72e5fdfb@SN2PR03MB061.namprd03.prod.outlook.com> <20130913095526.GE18381@redhat.com> <7737cb643a664b6fb39021b4d364b5cf@SN2PR03MB061.namprd03.prod.outlook.com> <20130917135918.GY17294@redhat.com> In-Reply-To: <20130917135918.GY17294@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:4898:80e0:ee43::3] x-forefront-prvs: 0972DEC1D9 x-forefront-antispam-report: SFV:NSPM;SFS:(479174003)(24454002)(51704005)(377454003)(13464003)(199002)(189002)(74366001)(79102001)(65816001)(76786001)(81686001)(81816001)(80976001)(77096001)(56816003)(54356001)(59766001)(74316001)(76482001)(76796001)(63696002)(50986001)(77982001)(76576001)(83072001)(31966008)(19580395003)(83322001)(47446002)(19580405001)(74502001)(74662001)(51856001)(69226001)(74706001)(81342001)(81542001)(80022001)(53806001)(74876001)(46102001)(54316002)(15975445006)(4396001)(56776001)(47736001)(49866001)(15202345003)(47976001)(33646001)(3826001)(15583001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:SN2PR03MB063;H:SN2PR03MB061.namprd03.prod.outlook.com;CLIP:2001:4898:80e0:ee43::3;FPR:;RD:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: DuplicateDomain-a84fc36a-4ed7-4e57-ab1c-3e967bcbad48.microsoft.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3356 Lines: 88 > -----Original Message----- > From: Gleb Natapov [mailto:gleb@redhat.com] > Sent: Tuesday, September 17, 2013 6:59 AM > To: KY Srinivasan > Cc: H. Peter Anvin; x86@kernel.org; gregkh@linuxfoundation.org; linux- > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > apw@canonical.com; jasowang@redhat.com; tglx@linutronix.de; > JBeulich@suse.com; bp@alien8.de > Subject: Re: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequency > from the hypervisor > > On Fri, Sep 13, 2013 at 02:28:35PM +0000, KY Srinivasan wrote: > > > > > > > -----Original Message----- > > > From: Gleb Natapov [mailto:gleb@redhat.com] > > > Sent: Friday, September 13, 2013 2:55 AM > > > To: KY Srinivasan > > > Cc: H. Peter Anvin; x86@kernel.org; gregkh@linuxfoundation.org; linux- > > > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > > > apw@canonical.com; jasowang@redhat.com; tglx@linutronix.de; > > > JBeulich@suse.com; bp@alien8.de > > > Subject: Re: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequency > > > from the hypervisor > > > > > > On Fri, Sep 13, 2013 at 01:43:09AM +0000, KY Srinivasan wrote: > > > > > > > > > > > > > -----Original Message----- > > > > > From: H. Peter Anvin [mailto:hpa@zytor.com] > > > > > Sent: Thursday, September 12, 2013 5:28 PM > > > > > To: KY Srinivasan > > > > > Cc: x86@kernel.org; gregkh@linuxfoundation.org; linux- > > > kernel@vger.kernel.org; > > > > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com; > > > > > jasowang@redhat.com; tglx@linutronix.de; JBeulich@suse.com; > > > bp@alien8.de > > > > > Subject: Re: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer > frequency > > > > > from the hypervisor > > > > > > > > > > On 09/12/2013 05:06 PM, KY Srinivasan wrote: > > > > > > > > > > > > Peter, > > > > > > > > > > > > Let me know if you want me to address any additional issues in this > patch. > > > > > > > > > > > > > > > > Please address Jan and Gleb's feedback. > > > > > > > > Gleb's feedback was a question and I answered that as I did Jan's feedback > as > > > well. > > > > Gleb, Jan, please let me know if there is something else you want > addressed > > > here. > > > > > > > No, I am just interesting to know some details about the interface since > > > I cannot find it documented in Hyper-V spec. > > > > Thanks Gleb. Here is the link for the latest Hyper-V specification: > > http://www.microsoft.com/en-us/download/details.aspx?id=39289 > > > > This spec talks about how migration is handled with regards to TSC. > > > All I can see is "15.4.3 Partition Reference TSC Mechanism". I see > nothing about HV_X64_MSR_TSC_FREQUENCY specifically. To access this MSR > a partition needs AccessFrequencyMsrs privilege, may be partition that > cab be migrated does not have this privilege? If you use the MSR to read the TSC frequency, then indeed when you migrate then there is no guarantee that the TSC frequency won't change when you migrate. The approach described in section 15.4.3 is the preferred approach that can accommodate migration. Regards, K. Y > > -- > Gleb. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/