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] How is foreign map invalidated in dom0?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How is foreign map invalidated in dom0?
From: "liuw@xxxxxxxxx" <liuw@xxxxxxxxx>
Date: Thu, 9 Dec 2010 20:12:44 +0800
Delivery-date: Thu, 09 Dec 2010 04:15:35 -0800
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, all.

I'm write some code to log foreign map operations in Xen space. I put a checkpoint in do_mmu_update() and log (ptr, val)'s of map opeartions successfully (I tested with domain builder and my test program). 

But the unmap procedure confuses me. As far as I understand (play with XenoLinux 2.6.18 and Xen 3.3.2), there is no "foreign unmap", user space process just invokes munmap() and flushes page table. 

I put some more code in do_mmu_update() to do the un-logging. However, things didn't come out as expected. Serial output reports no flushing on those logged ptr locations. For example, I am expecting Xen reports some previous logged (ptr, val) pairs are no longer valid after domain builder finishes its job, but nothing happens. One exception is that, when I kill xenconsoled (or xenstored, they both FM domU's page) with domU running, Xen reports "unmap" event. I don't see any logical differences between my test program and xenconsoled, which both utilize xc_map_foreign_range() and munmap().

I also traced code in writable page table and do_update_va_mapping(), none of them touches logged locations.

Did I miss something? Any suggestion is appreciated.

Best regards

Wei LIU
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] How is foreign map invalidated in dom0?, liuw@xxxxxxxxx <=