[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2172b969-1e0b-4fbb-8242-27518e9f6951@intel.com>
Date: Wed, 9 Apr 2025 10:05:50 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Vladis Dronov <vdronov@...hat.com>, linux-sgx@...r.kernel.org,
Jarkko Sakkinen <jarkko@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests/sgx: Fix an enclave built with extended
instructions
On 4/9/25 09:55, Vladis Dronov wrote:
...
> Fix this by adding "-mno-avx" to ENCL_CFLAGS in Makefile. Add some comments
> about this to code locations where enclave's xfrm field is set.
>
> Suggested-by: Dave Hansen <dave.hansen@...ux.intel.com>
> Signed-off-by: Vladis Dronov <vdronov@...hat.com>
First of all, this looks fine to me:
Acked-by: Dave Hansen <dave.hansen@...ux.intel.com>
The code comments are fine. I'm much less picky about selftests.
I'm also open to other solutions here. We could, for instance, set
xfrm=7 to allow AVX2 instructions (which are generated by
"--with-arch_64=x86-64-v3") or use some compiler flags other than
"-mno-avx".
But "-mno-avx" does seem good to me.
Powered by blists - more mailing lists