Avi Kivity
2007-Apr-15 15:53 UTC
[Xen-devel] [PATCH] Make pte writes in map_pages_to_xen() atomic
With debug=y, Xen calls map_pages_to_xen() to remap its own page tables. On pae builds, the pte writes are nonatomic. This causes Xen to crash under kvm (and presumably under other shadow page table caching VMMs), because after the first half of the pte update, the code under eip is no longer accessible. It''s also possible under bare metal if an SMI arrives exactly at the wrong moment, and in addition that SMI flushes the tlb. Fix by using atomic pte writes. With this, xen pae debug=y boots under kvm. Reported by Jeremy Fitzhardinge <jeremy@goop.org>. Signed-off-by: Avi Kivity <avi@qumranet.com> -- error compiling committee.c: too many arguments to function _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel