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-users

[Xen-users] Error with xc_translate_foreign_address

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Error with xc_translate_foreign_address
From: "Lewis, Christopher S." <Christopher.Lewis@xxxxxxxxxx>
Date: Mon, 19 Jun 2006 11:03:23 -0400
Delivery-date: Mon, 19 Jun 2006 08:04:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcaTsYLPrFKFtAI8S1+bQzMn2CbgSw==
Thread-topic: Error with xc_translate_foreign_address
Hello,
 
I am receiving an error on a VT HVM, which appears to be located in the function xc_translate_foreign_address.
 
Running the xenctx tool on a VT HVM (xen-testing 3.0.2) it returns:
 
# ./xenctx -f 1
eip: c027b646
esp: c0441ed4
eax: 000000c4   ebx: c0495300   ecx: 000001f7   edx: 000001f7
esi: c0495394   edi: 00000000   ebp: c027fec0
 cs: 00000060    ds: 0000007b    fs: 00000000    gs: 00000033
 
Stack:
failed to map PT
failed to map page.
 
Upon inspection, the value of cr3 in xc_translate_foreign_address (after the line cr3 = ctx.ctrlreg[3]) is set to be 0 if the xenctx tool is run immediately after the system is booted and a domU is created.  However, if I wait until after I see the second "(XEN) HVM_PIT: guest freq in cycles="<some value> in the xen dmesg, the value of cr3 is then set to a value. However, the error shown above remains the same.
 
Running the same command on a non-VT machine (32bit non-PAE)  (xen-testing 3.0.2) it returns:
 
# ./xenctx -f 1
eip: b7e4a547
esp: bfc26164
eax: 080f6968   ebx: b7bdcff4   ecx: b7f16ff4   edx: 080f6968
esi: b7dec6a0   edi: 00000000   ebp: bfc26164
 cs: 00000073    ds: 0000007b    fs: 00000000    gs: 00000033
 
Stack:
 bfc26184 b7bd8551 080f6968 b7bdbb2d bfc2618c b7bdcff4 b7dec6a0 b7f19098
......
etc.
 
Cr3 is immediately set on this machine and the xenctx command completes successfully.
 
It appears that this stems from a problem of mapping the CR3 register to the mfn on the VT  HVM -- this operation successfully completes on the non-VT machine, however, it doesn't resolve correctly for VT HVM.
 
Does anyone else have this issue?
 
Thanks,
~Chris
 
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Error with xc_translate_foreign_address, Lewis, Christopher S. <=