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] managing address space inside paravirtualized guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] managing address space inside paravirtualized guest
From: Mike Rapoport <mike.rapoport@xxxxxxxxx>
Date: Sun, 14 Aug 2011 08:59:30 +0300
Delivery-date: Sat, 13 Aug 2011 23:00:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=TKg3SLTIaZ3nU6cbcjbIpjc7Ewg7klZf31yesOFcEs0=; b=EI6uEUI1NRR2f7clvj2k8+3qrZnCAvTwZ4KYReNbSFlUnT6+8KoHr7j0Am5OsEVfdP ygTSrXUy9Y9KvLbx6tp2GwHx6FneECyUCuzd6Ps/zoQRYgMx2z6mowc11assctssoVdY Sz9LLM44hxAQ182tZZYFb4839G7x9z5TDMOss=
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
Hello all,

I working on a project that runs in paravirtualized Linux. The
application should have it's own address space that is not managed by
the underlying Linux kernel. I use a kernel module to allocate pages
for the application page table and to communicate the pages physical
and machine physical addresses between the kernel and the application.
The page tables I create in the application seem to be correct and I
can successfully pin them using Xen hypercalls. However, when I try to
set cr3 to point to these page tables with MMUEXT_NEW_{USER}BASEPTR I
get the following error:

(XEN) domain_crash_sync called from entry.S
(XEN) Domain 1 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-4.0.1  x86_64  debug=n  Not tainted ]----
(XEN) CPU:    0
(XEN) RIP:    e033:[<0000000fb0013d09>]
(XEN) RFLAGS: 0000000000010246   EM: 0   CONTEXT: pv guest
(XEN) rax: 0000000000000000   rbx: 0000000fb0200000   rcx: 0000000000000000
(XEN) rdx: 0000000fb0023700   rsi: 0000000fb00247d2   rdi: 0000000000000005
(XEN) rbp: ffff880039227e98   rsp: 0000000fb0611fe8   r8:  0000000000000020
(XEN) r9:  0000000fb0023df0   r10: 0000000000007ff0   r11: 0720072007200720
(XEN) r12: 00000000014c8d00   r13: 0000000fb0200000   r14: ffff880039ce24c0
(XEN) r15: 00000000014c8d16   cr0: 0000000080050033   cr4: 00000000000006f0
(XEN) cr3: 00000000100d4000   cr2: 0000000fb0611fe0
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: e02b   cs: e033

Any leads how to debug it would be highly appreciated.

--
Sincerely yours,
Mike.

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