Han, Weidong
2010-Aug-31 14:52 UTC
[Xen-devel] [PATCH 3/3 v2] XSAVE/XRSTOR: enable guest AVX
This patch enables Intel(R) Advanced Vector Extension (AVX) for guest. Signed-off-by: Weidong Han <weidong.han@intel.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Konrad Rzeszutek Wilk
2010-Sep-01 14:00 UTC
Re: [Xen-devel] [PATCH 3/3 v2] XSAVE/XRSTOR: enable guest AVX
On Tue, Aug 31, 2010 at 10:52:38PM +0800, Han, Weidong wrote:> This patch enables Intel(R) Advanced Vector Extension (AVX) for guest.I thought that this would also work on the AMD Bulldozer''s CPUs? Or is the Intel AVX incompatible with AMD AVX?> > Signed-off-by: Weidong Han <weidong.han@intel.com>> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Li, Xin
2010-Sep-01 14:22 UTC
RE: [Xen-devel] [PATCH 3/3 v2] XSAVE/XRSTOR: enable guest AVX
> On Tue, Aug 31, 2010 at 10:52:38PM +0800, Han, Weidong wrote: > > This patch enables Intel(R) Advanced Vector Extension (AVX) for guest. > > I thought that this would also work on the AMD Bulldozer''s CPUs? Or is the > Intel AVX incompatible with AMD AVX?The code just checks if a feature is available thru CPUID before using, no matter it''s Intel CPU or AMD. There are 2 approaches to provide a new feature, use a compatible way the other side is using thus reuse the code/binary, or a complete new way. There are many examples you can find in Linux/Xen code. AMD people can comment if they will implement the AVX like feature. If yes, if it''s in a software compatible way or totally new. Thanks! -Xin _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Huang2, Wei
2010-Sep-01 16:27 UTC
RE: [Xen-devel] [PATCH 3/3 v2] XSAVE/XRSTOR: enable guest AVX
The AVX feature bit is compatible between Intel and AMD. AMD has another XSAVE/XRSTOR related feature (light-weight profiling) to be added in Xen. We are going to provide patches when they are ready. -Wei -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Li, Xin Sent: Wednesday, September 01, 2010 9:23 AM To: Konrad Rzeszutek Wilk; Han, Weidong Cc: Xen-devel; Keir Fraser; Jan Beulich Subject: RE: [Xen-devel] [PATCH 3/3 v2] XSAVE/XRSTOR: enable guest AVX> On Tue, Aug 31, 2010 at 10:52:38PM +0800, Han, Weidong wrote: > > This patch enables Intel(R) Advanced Vector Extension (AVX) for guest. > > I thought that this would also work on the AMD Bulldozer''s CPUs? Or is the > Intel AVX incompatible with AMD AVX?The code just checks if a feature is available thru CPUID before using, no matter it''s Intel CPU or AMD. There are 2 approaches to provide a new feature, use a compatible way the other side is using thus reuse the code/binary, or a complete new way. There are many examples you can find in Linux/Xen code. AMD people can comment if they will implement the AVX like feature. If yes, if it''s in a software compatible way or totally new. Thanks! -Xin _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel