RE: [PATCH v2 1/1] Documentation/x86: Add the AMX enabling example

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

 



> But these state components are architectural. While this can help 
> userspace anyway, saying "XSTATE component" here and on the man-page is 
> probably it as they are already defined in the x86 spec.

An application writer can't use:

# include {x86 spec}"

to get these values ... if applications need them to find out if AMX is present,
and to enable it, then they need an API.

Maybe your example code should just be a library routine? So application writers
can just do:

	if (!intel_amx_enable()) {
		error message, or fall back to non-AMX implementation
	}

without having to worry about those #defines.

-Tony




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux