mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
The RFLAGS will be touched in some inline assembly.(exec_vmxon/ RFLAGS_RESTORE). The "cc" constraint should be added. Otherwise it won't be handled under -O2 option. And "%%XXX" register should also be added into constraints. Otherwise it will be optimized incorrectly. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Zheng Gen <gen.zheng@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>