From: Shuai Ruan Subject: Re: [V5 1/4] x86/xsaves: add basic definitions/helpers to support xsaves Date: Fri, 9 Oct 2015 16:17:43 +0800 Message-ID: <17860.6460024186$1444378692@news.gmane.org> References: <1442835241-26983-1-git-send-email-shuai.ruan@linux.intel.com> <1442835241-26983-2-git-send-email-shuai.ruan@linux.intel.com> <56091E1E02000078000A60D8@prv-mh.provo.novell.com> Reply-To: Shuai Ruan Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <56091E1E02000078000A60D8@prv-mh.provo.novell.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: Jan Beulich Cc: kevin.tian@intel.com, wei.liu2@citrix.com, eddie.dong@intel.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, jun.nakajima@intel.com, keir@xen.org, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, Sep 28, 2015 at 03:01:50AM -0600, Jan Beulich wrote: > >>> On 21.09.15 at 13:33, wrote: > > This patch add basic definitions/helpers which will be used in > > later patches. > > > > Signed-off-by: Shuai Ruan > > --- > > > > +void save_xsave_states(struct vcpu *v, void *dest, unsigned int size) > > Iirc it was suggested before that the function's name isn't adequate: > There's no saving of anything here. You're expanding already saved > state. > Is void expand_xsave_states(struct vcpu *v , void *dest, unsigned int size); Ok ? > > + > > +void load_xsave_states(struct vcpu *v, const void *src, unsigned int size) > > Similar comments as above apply to this function. > Is void compress_xsave_states(struct vcpu *v , void *dest, unsigned int size); Ok ? > > Jan > Thanks Shuai