From: Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>
To: Gerd Knorr <kraxel@suse.de>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: current unstable doesn't boot dom0 (SMP bug?)
Date: Wed, 19 Oct 2005 18:13:53 +0200 [thread overview]
Message-ID: <20051019161352.GA18837@snarc.org> (raw)
In-Reply-To: <43564CBE.1050402@suse.de>
On Wed, Oct 19, 2005 at 03:40:14PM +0200, Gerd Knorr wrote:
> Hi,
>
> This is changeset 7425:7c951e3eb5ab, last messages are:
>
> Mount-cache hash table entries: 512
> CPU: Trace cache: 12K uops, L1 D cache: 16K
> CPU: L2 cache: 2048K
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Checking 'hlt' instruction... disabled
> (XEN) DOM0: (file=mm.c, line=1467) Bad type (saw f0000001 != exp
> a0000000) for mfn 10a2 (pfn 18a2)
> kernel BUG at arch/xen/kernel/smpboot.c:184 (vcpu_prepare)!
> [<c0109c96>] dump_stack+0x1e/0x20
> [<c0107166>] vcpu_prepare+0x184/0x190
> [<c0447443>] smp_prepare_cpus+0x134/0x205
> [<c01040a4>] init+0x3a/0x1b6
> [<c01078b5>] kernel_thread_helper+0x5/0xb
> Kernel panic - not syncing: BUG!
> smp_send_stop disable_local_APIC
> (XEN) Domain 0 shutdown: rebooting machine.
Hi Gerd,
it looks like we can't reproduce the problems here.
apparently the cpu that it's trying to start, got a gdt page which xen
consider as a writable page, where it should not.
The code in arch/xen/kernel/smpboot.c that set the page looks fine:
==============
cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
memcpy((void *)cpu_gdt_descr[cpu].address,
(void *)cpu_gdt_descr[0].address,
cpu_gdt_descr[0].size);
make_page_readonly((void *)cpu_gdt_descr[cpu].address);
==============
is there anything special with your box ?
--
Vincent Hanquez
next prev parent reply other threads:[~2005-10-19 16:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 13:40 current unstable doesn't boot dom0 (SMP bug?) Gerd Knorr
2005-10-19 13:48 ` Gerd Knorr
2005-10-19 16:13 ` Vincent Hanquez [this message]
2005-10-19 18:40 ` Ryan Harper
-- strict thread matches above, loose matches on Subject: below --
2005-10-19 18:01 Ian Pratt
2005-10-20 9:51 ` Gerd Knorr
2005-10-20 11:55 ` Gerd Knorr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051019161352.GA18837@snarc.org \
--to=vincent.hanquez@cl.cam.ac.uk \
--cc=kraxel@suse.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.