From: Haozhong Zhang Subject: Re: [PATCH v2 00/14] Add VMX TSC scaling support Date: Tue, 8 Dec 2015 10:13:06 +0800 Message-ID: <20151208021306.GJ3547@hz-desktop.sh.intel.com> References: <1449435529-12989-1-git-send-email-haozhong.zhang@intel.com> <20151206211434.GA13913@hz-desktop.sh.intel.com> <56654B77.8030205@amazon.de> <20151207101624.GB3547@hz-desktop.sh.intel.com> <5665BC03.5080901@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5665BC03.5080901@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Kevin Tian , Keir Fraser , Jan Beulich , Jun Nakajima , "Egger, Christoph" , xen-devel@lists.xen.org, Aravind Gopalakrishnan , Suravee Suthikulpanit , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On 12/07/15 17:04, Andrew Cooper wrote: > On 07/12/15 10:16, Haozhong Zhang wrote: > > On 12/07/15 10:03, Egger, Christoph wrote: > >> Did you consider nested virtualization? > >> L1 hypervisor may have a different tsc scaling > >> and L2 guest again may have a different tsc scale ratio. > >> > > Oh, I forgot this. I'll check the nested TSC scaling code (mostly > > about nested SVM TSC ratio, because this patch series does not expose > > VMX TSC scaling to L1 guest). > > > > BTW, are there any practical usage scenarios of nested TSC scaling? If > > any, I may also need to consider adding nested virtualization support > > to VMX TSC scaling. > > I would say that there are genuine uses for nested TSC scaling. An L1 > hypervisor is going to want to scale for the same reasons as the L0 > hypervisor. > nice to know this. > Having said that, if TSC scaling is correctly hidden from the L1 guests, > I would advise against conflating the two issues together. i.e. getting > nested TSC scaling working is not a prerequisite for accepting this series. > agree, I prefer to posting other standalone patches to support nested VMX TSC scaling. Thanks, Haozhong