mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Commit26646f3"x86/mce: translate passed-in GPA to host machine address" and commit4ddf474"tools/xen-mceinj: Pass in GPA when injecting through MSR_MCI_ADDR" forgot to consider reserved domain ID and mistakenly add MC_MSRINJ_F_GPADDR flag for them, which in turn causes bug reported by http://lists.xenproject.org/archives/html/xen-devel/2016-05/msg02640.html. This patch removes MC_MSRINK_F_GPADDR flag and checks this when injecting to reserved domain IDs except DOMID_SELF, and treats the passed-in address as host machine address. Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Acked-by: Christoph Egger <chegger@amazon.de>