Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm: vRTC: fix a bug that waag can't update RTC
Through it is best to halt the RTC before changing date/time, still some OSes just write date/time while RTC is not halted. Currently the DM vRTC has already dealt the situation where openBSD writes century byte out side of vRTC halt by updating vRTC time on century byte writes. Now WaaG is found writing all date/time regs outside of vRTC halt. Because those date/time writes are not updated instantly, WaaG’s vRTC time is not actually changed. This bug has not affected anything till now when we are adding support to RTC change vm_event. To make WaaG’s vRTC work properly, this patch adds vRTC time update on all date/time writes outside of vRTC halt. Tracked-On: projectacrn#8547 Signed-off-by: Wu Zhou <wu.zhou@intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
- Loading branch information