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] can xc_translate_foreign_address() always work for kernel va

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] can xc_translate_foreign_address() always work for kernel va under x86_64 PV?
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Thu, 20 Mar 2008 08:20:16 -0400
Delivery-date: Thu, 20 Mar 2008 05:20:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=a8NtqMUpS7dkZjXg7GZMk3xN6lBWpMiRQyh4dt8UY8E=; b=LP6nJdxhWSNjaJtASc6EubAaiGB2xqjcXRgVYz/03mL6BRc9cStQRLPHxMxe2OnGmQVxxfG+ZEdRxHy6PDmP4O7/vngYG4uAPapoG2rZSLD97QzkU0szxbYxbpLWOOP0jh0EUZ865Ivk5L0xm0jufvjwxDgU+zqj0KJZsdJ20hg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=MxsMKP22HsQb25T0NkYleidw6JUlrO0g+9+7YhOJXu/FoImzDUCCnDTxQVhpLv6aUdHrcwMNAZo6QaCwxlvmNwLJ8LFSMMPiHaSsSNeV9t6BciDD26r/BhsC3LeUbrrCNe939Tq2koI8f2oQjTndWN4SKc24XoExoMQAtUES2Xc=
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,
In xc_translate_foreign_address(), the page directory address comes from vcpu's cr3.

when the domains is running a user application, the cr3 should contain the app's page table.

Under x86_64 PV, kernel and user space are both under ring 3 and protection is implemented via page protection, which means app's page table has no kernel space mappings.

So my question is: given a kernel's virtual address, can this function always return a valid mfn?

Thanks,
Weiming
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] can xc_translate_foreign_address() always work for kernel va under x86_64 PV?, weiming <=