Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-11-12 Thread George Dunlap
On Mon, Nov 9, 2015 at 7:43 AM, Haozhong Zhang wrote: > On 10/27/15 15:16, Aravind Gopalakrishnan wrote: > [...] >> >> Haozhong, Boris- >> >> I am planning to use a Fam10h system (older processor) and Fam15h Model 60h >> (newer processor) for the test case. >> >> Shall try to run the test on a sin

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-11-08 Thread Haozhong Zhang
On 10/27/15 15:16, Aravind Gopalakrishnan wrote: [...] > > Haozhong, Boris- > > I am planning to use a Fam10h system (older processor) and Fam15h Model 60h > (newer processor) for the test case. > > Shall try to run the test on a single system as Haozhong mentioned on a > different reply. > I ra

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Haozhong Zhang
On Tue, Oct 27, 2015 at 03:16:15PM -0500, Aravind Gopalakrishnan wrote: > On 10/22/2015 10:44 AM, Boris Ostrovsky wrote: > >On 10/22/2015 10:17 AM, Jan Beulich wrote: > >On 28.09.15 at 09:13, wrote: > >>>The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > >>>calculate the gu

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Aravind Gopalakrishnan
On 10/22/2015 10:44 AM, Boris Ostrovsky wrote: On 10/22/2015 10:17 AM, Jan Beulich wrote: On 28.09.15 at 09:13, wrote: The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC scaling is enabled, the hos

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread haozhong . zhang
On Tue, Oct 27, 2015 at 09:10:19AM -0400, Boris Ostrovsky wrote: > On 10/27/2015 04:44 AM, Haozhong Zhang wrote: > >On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >On 28.09.15 at 09:13, wrote: > >>>The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > >>>calcul

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread haozhong.zhang
On Tue, Oct 27, 2015 at 09:55:26AM -0400, Boris Ostrovsky wrote: > On 10/27/2015 09:10 AM, Boris Ostrovsky wrote: > >On 10/27/2015 04:44 AM, Haozhong Zhang wrote: > >>On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >>On 28.09.15 at 09:13, wrote: > The existing hvm_set_guest_

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Boris Ostrovsky
On 10/27/2015 09:10 AM, Boris Ostrovsky wrote: On 10/27/2015 04:44 AM, Haozhong Zhang wrote: On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: On 28.09.15 at 09:13, wrote: The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Boris Ostrovsky
On 10/27/2015 04:44 AM, Haozhong Zhang wrote: On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: On 28.09.15 at 09:13, wrote: The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC scaling is

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Haozhong Zhang
On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >>> On 28.09.15 at 09:13, wrote: > > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > > calculate the guest TSC by adding the TSC offset to the host TSC. When > > the TSC scaling is enabled, the host TSC should be

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Haozhong Zhang
On Tue, Oct 27, 2015 at 02:15:53AM -0600, Jan Beulich wrote: > >>> On 27.10.15 at 02:54, wrote: > > On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >> >>> On 28.09.15 at 09:13, wrote: > >> > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > >> > calculate the g

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-27 Thread Jan Beulich
>>> On 27.10.15 at 02:54, wrote: > On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: >> >>> On 28.09.15 at 09:13, wrote: >> > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() >> > calculate the guest TSC by adding the TSC offset to the host TSC. When >> > the TSC sc

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-26 Thread Haozhong Zhang
On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >>> On 28.09.15 at 09:13, wrote: > > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > > calculate the guest TSC by adding the TSC offset to the host TSC. When > > the TSC scaling is enabled, the host TSC should be

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-22 Thread Haozhong Zhang
On Thu, Oct 22, 2015 at 11:44:52AM -0400, Boris Ostrovsky wrote: > On 10/22/2015 10:17 AM, Jan Beulich wrote: > On 28.09.15 at 09:13, wrote: > >>The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > >>calculate the guest TSC by adding the TSC offset to the host TSC. When > >>t

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-22 Thread Haozhong Zhang
On Thu, Oct 22, 2015 at 08:17:29AM -0600, Jan Beulich wrote: > >>> On 28.09.15 at 09:13, wrote: > > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > > calculate the guest TSC by adding the TSC offset to the host TSC. When > > the TSC scaling is enabled, the host TSC should be

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-22 Thread Boris Ostrovsky
On 10/22/2015 10:17 AM, Jan Beulich wrote: On 28.09.15 at 09:13, wrote: The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC scaling is enabled, the host TSC should be scaled first. This patch adds th

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-10-22 Thread Jan Beulich
>>> On 28.09.15 at 09:13, wrote: > The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() > calculate the guest TSC by adding the TSC offset to the host TSC. When > the TSC scaling is enabled, the host TSC should be scaled first. This > patch adds the scaling logic to those two funct

[Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-09-28 Thread Haozhong Zhang
The existing hvm_set_guest_tsc_fixed() and hvm_get_guest_tsc_fixed() calculate the guest TSC by adding the TSC offset to the host TSC. When the TSC scaling is enabled, the host TSC should be scaled first. This patch adds the scaling logic to those two functions. Signed-off-by: Haozhong Zhang ---