mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
Starting with TSC_DEADLINE msr interception disabled, the virtual TSC_DEADLINE msr is always 0. When the interception is enabled, need to sync the physical TSC_DEADLINE value to virtual TSC_DEADLINE. When the interception is disabled, there are 2 cases: - if the timer hasn't expired, sync virtual TSC_DEADLINE to physical TSC_DEADLINE, to make the guest read the same tsc_deadline as it writes. This may change when the timer actually trigger. - if the timer has expired, write 0 to the virtual TSC_DEADLINE. Tracked-On: #4162 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>