mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
[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:
1 parent
9639f3da4f
commit
2ccced7b73
1 file changed
+1
-1
@@ -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);
|
||||
|
||||