From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Wray Subject: Re: dom0 bootstrap for xenstore Date: Fri, 17 Jun 2005 14:00:49 +0100 Message-ID: <42B2C981.5020104@hp.com> References: <1118891075.15491.14.camel@localhost.localdomain> <1118909504.10407.4.camel@localhost.localdomain> <1118993482.12389.43.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1118993482.12389.43.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rusty Russell Cc: Ian Pratt , Xen Mailing List , Christian Limpach List-Id: xen-devel@lists.xenproject.org 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] PREEMPT Modules linked in: CPU: 0 EIP: 0061:[] Not tainted VLI EFLAGS: 00010246 (2.6.11.11-xen0) 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: [] kthread+0xaa/0xb0 [] kthread+0x0/0xb0 [] 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 Regards, Mike