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 to correctly copy from guest?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] How to correctly copy from guest?
From: "K.C. Lee" <kcl.joseph@xxxxxxxxx>
Date: Fri, 22 Oct 2010 11:22:22 +0800
Delivery-date: Thu, 21 Oct 2010 20:23:22 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=FQtXs7nurxCiyGlhetkWB3yF8Rsx+0nZJLRNYg8mWnQ=; b=GNr5JOEAdRQK2cpYiOHXCnqgEbCPa6KOZnw1odXe0FsZzlJpJ9zxyTzW+eQnkCmkTo wv2BkSWon4gjOZ/TGaBYSarmv7G4/1UpHkg2PnrzECGnpyuZXZdjYW/ISPjDNrCxuZxD r0gCJwUYrvzkJtYlHY638nDuio0JVgF8aOoko=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oWYAz7d5F1fxSAnzROJ2+RMxWxAMh3i/NMkwuZYT1bFtNYE+oT8nW50JUPIATwKvuv RLFYSeWQLjoDNr2GD/sx3oV064WKscfgLUFOGGYIuS3fGpnAOKQ8J1g7OvWPJVKWHtuj YfsjyzpCvdEzyoGd35Mt7JAnzayd1NVpn8Am8=
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,

I'm trying to read guest's cr3 value.

The version of xen is 4.0.1.

What should I do? I tried adding hvm_copy_from_guest_virt in mov_to_cr but it caused VM booting failure,
Then I tried hvm_copy_from_guest_virt_nofault.

Here is my code.

void mov_to_cr_do_01(void)
{
    unsigned long e_kcl = 0;
    //hvm_copy_from_guest_virt(&e_kcl, GUEST_FS_BASE, 4, PFEC_page_shared | PFEC_user_mode);
    hvm_copy_from_guest_virt_nofault(&e_kcl, GUEST_FS_BASE, 4, PFEC_page_shared | PFEC_user_mode);
}

Thank you.

Sincerely,

K.C.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] How to correctly copy from guest?, K.C. Lee <=