mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: fix possible SSE region mismatch issue
During context switch in hypervisor, xsave/xrstore are used to save/resotre the XSAVE area according to the XCR0 and XSS. The legacy region in XSAVE area include FPU and SSE, we should make sure the legacy region be saved during contex switch. FPU in XCR0 is always enabled according to SDM. For SSE, we enable it in XCR0 during context switch. Tracked-On: #5062 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -158,6 +158,7 @@
|
||||
#define XSAVE_COMPACTED_FORMAT (1UL << 63U)
|
||||
|
||||
#define XSAVE_FPU (1UL << 0U)
|
||||
#define XSAVE_SSE (1UL << 1U)
|
||||
|
||||
#define CPU_CONTEXT_OFFSET_RAX 0U
|
||||
#define CPU_CONTEXT_OFFSET_RCX 8U
|
||||
|
Reference in New Issue
Block a user