]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/cpu: Mask with XCR0/XSS mask for FEAT_XSAVE_XCR0_HI and FEAT_XSAVE_XSS_HI leafs
authorXiaoyao Li <xiaoyao.li@intel.com>
Mon, 15 Jan 2024 09:13:25 +0000 (04:13 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 Feb 2024 15:41:39 +0000 (18:41 +0300)
commitf18b0189076a1dbf37cfcd4d8e8e60ccc2dccb67
tree47cdbb2c3746175c38c404b0fad9e38d2979b48a
parent14109f63535aa6efcf72ae84cb5beb6a15a58395
i386/cpu: Mask with XCR0/XSS mask for FEAT_XSAVE_XCR0_HI and FEAT_XSAVE_XSS_HI leafs

The value of FEAT_XSAVE_XCR0_HI leaf and FEAT_XSAVE_XSS_HI leaf also
need to be masked by XCR0 and XSS mask respectively, to make it
logically correct.

Fixes: 301e90675c3f ("target/i386: Enable support for XSAVES based features")
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Yang Weijiang <weijiang.yang@intel.com>
Message-ID: <20240115091325.1904229-3-xiaoyao.li@intel.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit a11a365159b944e05be76f3ec3b98c8b38cb70fd)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/cpu.c