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] convert guest va to ma in xen?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] convert guest va to ma in xen?
From: "Bryan D. Payne" <bryan@xxxxxxxxxxxx>
Date: Wed, 24 Oct 2007 23:00:05 -0400
Delivery-date: Wed, 24 Oct 2007 20:00:49 -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:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=FSH86OyJOwIjcNogSOr8Z5bwbZ5KSDK3YU7lf5h49/g=; b=JcD0YHFBY1qCnHtsxFcbamrbE5deEya9SC+U+I81n/2OCN9RK7dU80xq13VhKfsPThryyzD1S6bVOFjffPX1kubC7zUkcZfmvGhKQBLXL6Dt97/QzP0K74gdjQCCdSeDESXLVC8SkirSSoDXFrhnOKMmCMstOj1T2cZwuXOQDes=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=cVIMUmBjv1KRJ1LzmFLyjlj67bu8PSAZMDKcVRZWnZzy3qpkdHciQuSeu/cLD06hSw7q9WPh+Z+LTMhuFlrbq344a+Av7kv/ai8r/gAU70BmbQnsRyTmZ7lPWgjJAnV5Wm+F5xcbR2Z8FufHOn/kWGHeLQUdCTNRdwXcr2IjLuI=
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
I have a dom0 kernel virtual address in xen.  I'd like to convert it
to a machine address.  What are the best function(s) to use for making
this conversion?  I've tried the code below, but this only seems to
work for hvm guest domains, and not for dom0:

mfn = get_mfn_from_gpfn(shadow_gva_to_gfn(current, vaddr);
maddr = (mfn << PAGE_SHIFT) + (vaddr & ~PAGE_MASK);

Is there equivalent code that will work for virtual addresses from dom0?

Thanks,
bryan


-- 
Bryan D. Payne
Graduate Student, Computer Science
Georgia Tech Information Security Center
http://www.bryanpayne.org

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] convert guest va to ma in xen?, Bryan D. Payne <=