[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH][RFC] FPU LWP 0/5: patch description


  • To: Wei Huang <wei.huang2@xxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Thu, 14 Apr 2011 22:09:59 +0100
  • Cc:
  • Delivery-date: Thu, 14 Apr 2011 14:11:50 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=vp/W7xRLtagb5y/uhb9oPQ635ExUAi0TjZYGC5Ye5VweUzsamn19neFS35oILw6oJa HpGGUjAr+XT91jZi4z08mtOCQAbFYqXVcuLe80pzXFi2ulbOg8CrmitNv37VtgFVGkwc +Kbs5CIpaumpnCJ10PvBxKUjUJXra7yijX6CU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acv66E/ls51O2N5kzE6rYZoAw5tFww==
  • Thread-topic: [Xen-devel] [PATCH][RFC] FPU LWP 0/5: patch description

On 14/04/2011 21:37, "Wei Huang" <wei.huang2@xxxxxxx> wrote:

> The following patches support AMD lightweight profiling.
> 
> Because LWP isn't tracked by CR0.TS bit, we clean up the FPU code to
> handle lazy and unlazy FPU states differently. Lazy FPU state (such as
> SSE, YMM) is handled when #NM is triggered. Unlazy state, such as LWP,
> is saved and restored on each vcpu context switch. To simplify the code,
> we also add a mask option to xsave/xrstor function.

How much cost is added to context switch paths in the (overwhelmingly
likely) case that LWP is not being used by the guest? Is this adding a whole
lot of unconditional overhead for a feature that noone uses?

 -- Keir

> Thanks,
> -Wei
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.