[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes

otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
Tim Deegan committed 2007-03-21 17:17:08 +00:00
1 parent 9639f3da4f
commit 2ccced7b73
1 file changed
+1 -1
+1 -1
View File
@@ -597,7 +597,7 @@ accumulate_guest_flags(struct vcpu *v, walk_t *gw)
* have reserved bits that we can use for this.
*/
#define SH_L1E_MAGIC 0xffffffff00000000ULL
#define SH_L1E_MAGIC 0xffffffff00000001ULL
static inline int sh_l1e_is_magic(shadow_l1e_t sl1e)
{
return ((sl1e.l1 & SH_L1E_MAGIC) == SH_L1E_MAGIC);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.