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/
Home Products Support Community News


[Xen-devel] Re: dom0 bootstrap for xenstore

Rusty Russell wrote:
On Thu, 2005-06-16 at 14:55 +0100, Keir Fraser wrote:

On 16 Jun 2005, at 09:11, Rusty Russell wrote:

So here's my patch against latest bk, including test program but we have
an issue.  On unmap, I hit the BUG_ON() on mm/rmap.c:482.  Is this some
issue with using xc_map_foreign_range() on non-foreign pages?

Ah, it's not working because xc_map_foreign_range does not raise refcnts on the page being mapped.

OK, fixed, please apply the below patch against current bk.

Mike, this means backing out your changes to use domain_info to
communicate this.  I didn't try to extricate that...

OK, I fixed up the domain introduce code to use the privcmd for
dom0 and applied the change to make the page reserved.
The good news is that introducing dom0 to xenstore now works, and
mapping the store page works too.
The bad news is that the dom0 xenbus probe oopses as follows:

bounds: 0000 [#1]
Modules linked in:
CPU:    0
EIP:    0061:[<c055d940>]    Not tainted VLI
EFLAGS: 00010246   (
EIP is at xenbus_probe_init+0x0/0x80
eax: 00000000   ebx: c5544000   ecx: 00000002   edx: 00000000
esi: c5a0fd10   edi: 00000000   ebp: c02c0ac0   esp: c5545fc4
ds: 007b   es: 007b   ss: 0069
Process xenbus_probe (pid: 2310, threadinfo=c5544000 task=c5521a00)
Stack: c01332ca 00000000 c5545fd8 00000000 fffffffc ffffffff ffffffff c0133220
       00000000 00000000 00000000 c0107b75 c5a0fd10 00000000 00000000
Call Trace:
 [<c01332ca>] kthread+0xaa/0xb0
 [<c0133220>] kthread+0x0/0xb0
 [<c0107b75>] kernel_thread_helper+0x5/0x10
Code: 75 67 69 6e 2e 73 6f 00 6c 69 62 6b 6f 6e 71 5f 73 69 64 65 62 61 72 5f 
74 72 65 65 2
e 73 6f 00 2f 75 73 72 2f 6c 69 62 2f 6c 69 <62> 6b 6f 6e 71 5f 73 69 64 65 62 
61 72 5f 74
72 65 65 2e 73 6f



Xen-devel mailing list