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

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] hvm_copy_from_guest_virt
From: "Wu Bingzheng" <wubingzheng@xxxxxxx>
Date: Fri, 11 Sep 2009 10:26:00 +0800 (CST)
Delivery-date: Thu, 10 Sep 2009 19:26:36 -0700
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,

In Xen 3.3.0, hvm's shadow page fault handler: sh_page_fault():
I call 'hvm_copy_from_guest_virt' to read some guest's (Windows XP) memory.
If I read user space, it works fine.
If I read kernel space, like 0x8xxxxxxx or 0xFxxxxxxx, it retures HVMCOPY_bad_gva_to_gfn.
I am sure that the page I read is present in guest's page table.

Can I copy memory from kernel space?

Thanks,
Wu


网易邮箱用户购物独享现金返还
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>