[lkml]   [2021]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH RFC 7/7] kvm: x86: AMX XCR0 support for guest
On Wed, May 26, 2021, Liu, Jing2 wrote:
> On 5/25/2021 5:53 AM, Sean Christopherson wrote:
> > On Sun, Feb 07, 2021, Jing Liu wrote:
> > > Two XCR0 bits are defined for AMX to support XSAVE mechanism.
> > > Bit 17 is for tilecfg and bit 18 is for tiledata.
> > This fails to explain why they must be set in tandem.
> The spec says, "executing the XSETBV instruction causes a general-protection
> fault (#GP) if ECX=0 and EAX[17] ≠ EAX[18] (XTILECFG and XTILEDATA must be
> enabled together). This implies that the value of XCR0[17:18] is always
> either 00b or 11b."
> I can add more to changelog if this is reasonable.

Ya, please do. It doesn't have to be the full thing verbatim (but that's ok, too),
but the requirement does need to be called out.

> > Out of curisoity, assuming they do indeed need to be set/cleared as a
> > pair, what's the point of having two separate bits?
> What I can see is to separate different states and mirror by XFD which can
> set bits separately.

Ah, that would make sense. Thanks!

 \ /
  Last update: 2021-05-26 16:54    [W:0.095 / U:3.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site