mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-01 04:33:58 +00:00
hv: disable host MONITOR-WAIT support when SW SRAM is enabled
Per-core software SRAM L2 cache may be flushed by 'mwait' extension instruction, which guest VM may execute to enter core deep sleep. Such kind of flushing is not expected when software SRAM is enabled for RTVM. Hypervisor disables MONITOR-WAIT support on both hypervisor and VMs sides to protect above software SRAM from being flushed. This patch disable hypervisor(host) MONITOR-WAIT support and refine software sram initializaion flow. Tracked-On: #5649 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -26,7 +26,7 @@ struct rtcm_header {
|
||||
uint64_t command_offset;
|
||||
} __packed;
|
||||
|
||||
void init_software_sram(bool is_bsp);
|
||||
bool init_software_sram(bool is_bsp);
|
||||
void set_rtct_tbl(void *rtct_tbl_addr);
|
||||
bool is_software_sram_enabled(void);
|
||||
#endif /* RTCM_H */
|
||||
|
||||
Reference in New Issue
Block a user