On 5/19/23 05:06, Yang Zhong wrote:
Paolo, please help add below queued sgx fix into this PULL request, which was
missed from last time, thanks a lot!
https://lists.nongnu.org/archive/html/qemu-devel/2023-04/msg00841.html
https://lists.nongnu.org/archive/html/qemu-devel/2023-04/msg00896.html
Isn't this commit 72497cff896fecf74306ed33626c30e43633cdd6?
Author: Yang Zhong <yang.zh...@linux.intel.com>
Date: Thu Apr 6 02:40:41 2023 -0400
target/i386: Change wrong XFRM value in SGX CPUID leaf
The previous patch wrongly replaced FEAT_XSAVE_XCR0_{LO|HI} with
FEAT_XSAVE_XSS_{LO|HI} in CPUID(EAX=12,ECX=1):{ECX,EDX}. As a result,
SGX enclaves only supported SSE and x87 feature (xfrm=0x3).
Fixes: 301e90675c3f ("target/i386: Enable support for XSAVES based features")
Signed-off-by: Yang Zhong <yang.zh...@linux.intel.com>
Reviewed-by: Yang Weijiang <weijiang.y...@intel.com>
Reviewed-by: Kai Huang <kai.hu...@intel.com>
Message-Id: <20230406064041.420039-1-yang.zh...@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Paolo