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 can i get VA from a pfn in HVM guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How can i get VA from a pfn in HVM guest
From: 胡少龙 <sunofblack@xxxxxxxx>
Date: Fri, 6 Aug 2010 07:39:56 +0800 (CST)
Delivery-date: Thu, 05 Aug 2010 16:42:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.cn; s=s1024; t=1281051597; bh=/3pWe2V5H3pO9E8IYKL658d5NplESyz7ZkcEIFYYudY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=uZ3ITfKeesLvkq9l+5a04uwcolCgu8yzB5NSManXiQvKztXkfrsUxf5+uVRoYfL+H77IOgs+5fWrXnyNoiQ6+B2BzgfPKvo8r0PDyZmJKOYtNvpGddWttD5XhdKMJY4RVT8vA3cDhjxy+fLvb3c2K4RTMVZSQ7NGDKZQRVLSchU=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=aljapVZL+rQ/0BU/otbiFXmdPGtLhCjv89AQn7mZByIdhYWdBs0uj/aSDpI84AO/L+a4HnMjZLPoX64crysRUKMFW6+gjYMBr4/JENTztXic9WkoWtDjG5JEepEpiLtOMQrlMUPl+XopuHFlb4wI2y0mN8Rq10UVAL77Hnxy9YQ=;
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,
    After i get the pfn in a hvm guest using following code, how can i use it? Simply using __va() seems wrong, for the ( param.value << PAGE_SHIFT ) is feffc000 in my test module, using __va() will overflow.
   
    xen_hvm_param_t param;
    param.domid = DOMID_SELF;
    param.index = HVM_PARAM_STORE_PFN; 
    hypercall_hvm_op(HVMOP_get_param, &param);

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