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] update_va_mapping_otherdomain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] update_va_mapping_otherdomain
From: "Michael R. Hines" <mhines@xxxxxxxxxxxxxxxxx>
Date: Fri, 07 Sep 2007 21:29:23 -0400
Delivery-date: Fri, 07 Sep 2007 18:30:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: mhines@xxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.4 (X11/20070604)
Greetings,

I have a technical question about update_va_mapping_otherdomain.......

I have two components: a C program linked against libxc
and a kernel module which performs the following simple
sequence of events from domain zero:

1. Pause guest (unprivileged)
2. Grabs the PTE associated with a random (but present) page
   within the guest's kernel's address space
   (using a modified xc_translate_foreign_address)
3. Flips the present bit to zero
4. Calls HYPERVISOR_update_va_mapping otherdomain (from the kernel module)
5. Re-performs xc_translate_foreign_address on the same PTE
6. Verifies the the present bit was indeed changed to zero

Upon successful return from update_va_mapping (i.e. return code == zero),
my problem involves the last step mentioned above. The present bit still
remains unchanged (is still one), although update_va_mapping return true.

What might cause such a strange problem to occur?

-- 
/*
Michael R. Hines
http://www.cs.binghamton.edu/~mhines/
Live long and prosper...
*/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>