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] mapping problems in xenpaging

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: [Xen-devel] mapping problems in xenpaging
From: zhen shi <bickys1986@xxxxxxxxx>
Date: Thu, 29 Sep 2011 22:55:18 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 29 Sep 2011 07:55:52 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=GYe1ehrtNyS1nYCypLmo7u31C2mmf/ZxzZJ6WE9ogds=; b=hPZMwhL21l0+rPuYYxkCV4dGK5PM+A9l6hKWuFBtQkDP7QlgjAHpPYx8zwRbQo4ojH OgU/II2fyP2ZNrsfoPfs8P5C+JMSa1yeCU+1SmEsyN2/RFGRKdhsXc1RbbgdzjfilITb nICb5W1/0VJZHtL0MDQobaDHT3U/u5Iy/SHDQ=
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
 Hi,Olaf,
 
 When we analyze and test xenpaging,we found there are some problems between mapping and xenpaging.
 1) When mapping firstly, then do xenpaging,and the code paths have resolved the problems.It's OK.
 2) The problems exists if we do address mapping firstly then go to xenpaging,and our confusions are as followings:
   a) If the domU's memory is directly mapped to dom0,such as the hypercall from pv driver,then it will build a related page-table in dom0,which will not change p2m-type.
      and then do the xenpaging to page out the domU's memory pages whose gfn address have been already mapped to dom0;So it will cause some problems when dom0
      accesses these pages.Because these pages are paged-out,and dom0 cannot tell the p2mt before access the pages.
  b)The another situation is that if xen has mapped the domU's page, and get the mfn according to pfn_to_mfn.But then the page's p2mt is changed by others, so when xen
    accesses the page ,it will cause problems such as BSOD or reboot.Because the operations of getting mfn and accessing the page are not atomic.and the situation exists
    in many code paths .
   According to the above-mentioned points,do you have any suggestions about what to do to avoid these situations.We have thought these two problems,but currently have no
  good method to resolve.
 
  I am looking forward to hearing from you. Thank you very much!  :)
 
 
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>