WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xenpaging: compare domain pointer in p2m_mem_paging_

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xenpaging: compare domain pointer in p2m_mem_paging_populate
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 08 Nov 2011 18:34:21 +0100
Delivery-date: Tue, 08 Nov 2011 09:37:03 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1320773668; l=828; s=domk; d=aepfle.de; h=To:From:Date:Subject:Content-Transfer-Encoding:MIME-Version: Content-Type:X-RZG-CLASS-ID:X-RZG-AUTH; bh=uorDvkP0vkIoXQIeN5wexX8l2Xg=; b=WpQDPrKnWCoZSpu1a3D4KBq6yxyuDdAG2PBR751WFxAdt54zFbjHbfNSIeJEd4dC159 1SByEpH/y7sXngMMMFd1DnlbjlR7vTAQnDCAcscLq331kTGmjt3ujJlXQiOovXVPn/HAS zWuvNLfdoffrF90EzlVkqSNSPpTfLaJM3D4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1320773636 -3600
# Node ID c6f1423918baecb7a11eb7a151b9d5fb00888228
# Parent  a7e49740fbfe3a4ec0a21186e2a4c579a30e0838
xenpaging: compare domain pointer in p2m_mem_paging_populate

Compare just the domain pointer instead of the domain_id number.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r a7e49740fbfe -r c6f1423918ba xen/arch/x86/mm/p2m.c
--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -906,7 +906,7 @@ void p2m_mem_paging_populate(struct doma
     p2m_unlock(p2m);
 
     /* Pause domain if request came from guest and gfn has paging type */
-    if (  p2m_is_paging(p2mt) && v->domain->domain_id == d->domain_id )
+    if (  p2m_is_paging(p2mt) && v->domain == d )
     {
         vcpu_pause_nosync(v);
         req.flags |= MEM_EVENT_FLAG_VCPU_PAUSED;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xenpaging: compare domain pointer in p2m_mem_paging_populate, Olaf Hering <=