From ed0295ec9935a9b6c1459483f1a621d51f176781 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 18 Jan 2011 20:17:10 -0500 Subject: [PATCH] --- yaml --- r: 234169 b: refs/heads/master c: c7617798771ad588d585986d896197c04b737621 h: refs/heads/master i: 234167: b3fbf197a1bd8bb30ca47e2ec8c07e94b18cbc22 v: v3 --- [refs] | 2 +- trunk/arch/x86/xen/p2m.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 449a8b9ce91e..4568c07ce2ce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb38923ead10aa8a28db191548e176e8856614d7 +refs/heads/master: c7617798771ad588d585986d896197c04b737621 diff --git a/trunk/arch/x86/xen/p2m.c b/trunk/arch/x86/xen/p2m.c index 809fe3536301..4631cf99e714 100644 --- a/trunk/arch/x86/xen/p2m.c +++ b/trunk/arch/x86/xen/p2m.c @@ -605,7 +605,8 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) /* Swap over from MISSING to IDENTITY if needed. */ if (p2m_top[topidx][mididx] == p2m_missing) { - p2m_top[topidx][mididx] = p2m_identity; + WARN_ON(cmpxchg(&p2m_top[topidx][mididx], p2m_missing, + p2m_identity) != p2m_missing); return true; } }