From: ebiederm@xmission.com (Eric W. Biederman)
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>,
Eduardo Habkost <ehabkost@redhat.com>,
kvm@vger.kernel.org, kexec@lists.infradead.org,
Haren Myneni <hbabu@us.ibm.com>,
Simon Horman <horms@verge.net.au>, Avi Kivity <avi@redhat.com>
Subject: Re: [PATCH 0/2] kvm: disable virtualization on kdump
Date: Wed, 29 Oct 2008 17:58:16 -0700 [thread overview]
Message-ID: <m1tzau3nmf.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <20081029210550.GA13316@redhat.com> (Vivek Goyal's message of "Wed, 29 Oct 2008 17:05:50 -0400")
Vivek Goyal <vgoyal@redhat.com> writes:
> On Wed, Oct 29, 2008 at 06:10:06PM -0200, Eduardo Habkost wrote:
>> On Mon, Oct 27, 2008 at 09:09:37AM -0400, Vivek Goyal wrote:
>> > On Mon, Oct 27, 2008 at 10:54:01AM +0200, Avi Kivity wrote:
>> <snip>
>> > >
>> > > The hang was likely caused by vmx blocking INIT. Sigh.
>> >
>> > Avi,
>> >
>> > We boot kdump kernel with maxcpus=1. IIUC, in that code path we will not
>> > be using INIT. So did you try booting kdump kernel with maxcpus=1 and did
>> > it work for you? If not than problem could be something else.
>>
>> Just checked it here: I am passing maxcpus=1 to the kdump kernel. My
>> full kexec commandline is this:
>>
>> /sbin/kexec --console-serial -p '--command-line=ro root=/dev/vg0/rawhide rhgb
> console=ttyS0,115200 ignore_loglevel irqpoll maxcpus=1 reset_devices
> earlyprintk=ttyS0,115200' --initrd=/boot/initrd-2.6.28-rc2kdump.img
> /boot/vmlinuz-2.6.28-rc2
>>
>> Additional info: I don't get the "I'm in purgatory" message on serial
>> console, when the system hangs. I do get the message if I trigger the
>> crash dump after unloading the kvm-intel module, so the serial console
>> is working.
>>
>
> That means we are not even beginning to boot second kernel and are getting
> lost somewhere in the first kernel itself (most likely relocate_kernel_32/64.S).
>
> And it could be because of any of the interesting restrictions put when
> vmx is enabled (As Avi mentioned in another mail.).
>
> To debug that code, I used to put some "outb" messages to output a
> character to serial console and find out which instructions is creating
> trouble. You can debug to find out exactly what operation is not allowed
> when vmx is enabled or simply write the patches to disable vmx and it
> should automatically lead to problem resolution.
The transfer between kernels happens with virtual addresses identity mapped
to physical addresses. For 32bit mode we implement this by disabling paging.
Which apparently is one of the interesting restrictions placed of vmx.
Eric
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: ebiederm@xmission.com (Eric W. Biederman)
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
Avi Kivity <avi@redhat.com>, Simon Horman <horms@verge.net.au>,
kexec@lists.infradead.org, kvm@vger.kernel.org,
Andrew Morton <akpm@osdl.org>, Haren Myneni <hbabu@us.ibm.com>
Subject: Re: [PATCH 0/2] kvm: disable virtualization on kdump
Date: Wed, 29 Oct 2008 17:58:16 -0700 [thread overview]
Message-ID: <m1tzau3nmf.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <20081029210550.GA13316@redhat.com> (Vivek Goyal's message of "Wed, 29 Oct 2008 17:05:50 -0400")
Vivek Goyal <vgoyal@redhat.com> writes:
> On Wed, Oct 29, 2008 at 06:10:06PM -0200, Eduardo Habkost wrote:
>> On Mon, Oct 27, 2008 at 09:09:37AM -0400, Vivek Goyal wrote:
>> > On Mon, Oct 27, 2008 at 10:54:01AM +0200, Avi Kivity wrote:
>> <snip>
>> > >
>> > > The hang was likely caused by vmx blocking INIT. Sigh.
>> >
>> > Avi,
>> >
>> > We boot kdump kernel with maxcpus=1. IIUC, in that code path we will not
>> > be using INIT. So did you try booting kdump kernel with maxcpus=1 and did
>> > it work for you? If not than problem could be something else.
>>
>> Just checked it here: I am passing maxcpus=1 to the kdump kernel. My
>> full kexec commandline is this:
>>
>> /sbin/kexec --console-serial -p '--command-line=ro root=/dev/vg0/rawhide rhgb
> console=ttyS0,115200 ignore_loglevel irqpoll maxcpus=1 reset_devices
> earlyprintk=ttyS0,115200' --initrd=/boot/initrd-2.6.28-rc2kdump.img
> /boot/vmlinuz-2.6.28-rc2
>>
>> Additional info: I don't get the "I'm in purgatory" message on serial
>> console, when the system hangs. I do get the message if I trigger the
>> crash dump after unloading the kvm-intel module, so the serial console
>> is working.
>>
>
> That means we are not even beginning to boot second kernel and are getting
> lost somewhere in the first kernel itself (most likely relocate_kernel_32/64.S).
>
> And it could be because of any of the interesting restrictions put when
> vmx is enabled (As Avi mentioned in another mail.).
>
> To debug that code, I used to put some "outb" messages to output a
> character to serial console and find out which instructions is creating
> trouble. You can debug to find out exactly what operation is not allowed
> when vmx is enabled or simply write the patches to disable vmx and it
> should automatically lead to problem resolution.
The transfer between kernels happens with virtual addresses identity mapped
to physical addresses. For 32bit mode we implement this by disabling paging.
Which apparently is one of the interesting restrictions placed of vmx.
Eric
next prev parent reply other threads:[~2008-10-30 1:04 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 15:01 [PATCH 0/2] kvm: disable virtualization on kdump Eduardo Habkost
2008-10-20 15:01 ` Eduardo Habkost
2008-10-20 15:01 ` [PATCH 1/2] kdump: crash-time CPU halt notifier interface Eduardo Habkost
2008-10-20 15:01 ` Eduardo Habkost
2008-10-20 15:01 ` [PATCH 2/2] kvm: disable virtualization when halting CPUs on crash Eduardo Habkost
2008-10-20 15:01 ` Eduardo Habkost
2008-10-22 23:28 ` [PATCH 0/2] kvm: disable virtualization on kdump Simon Horman
2008-10-22 23:28 ` Simon Horman
2008-10-23 19:41 ` Eduardo Habkost
2008-10-23 19:41 ` Eduardo Habkost
2008-10-23 22:29 ` Simon Horman
2008-10-23 22:29 ` Simon Horman
2008-10-24 1:00 ` Eric W. Biederman
2008-10-24 1:00 ` Eric W. Biederman
2008-10-26 12:49 ` Avi Kivity
2008-10-26 12:49 ` Avi Kivity
2008-10-26 14:46 ` Eric W. Biederman
2008-10-26 14:46 ` Eric W. Biederman
2008-10-26 15:07 ` Avi Kivity
2008-10-26 15:07 ` Avi Kivity
2008-10-26 21:39 ` Eduardo Habkost
2008-10-26 21:39 ` Eduardo Habkost
2008-10-27 2:08 ` Eric W. Biederman
2008-10-27 2:08 ` Eric W. Biederman
2008-10-27 9:13 ` Avi Kivity
2008-10-27 9:13 ` Avi Kivity
2008-10-27 12:28 ` Eduardo Habkost
2008-10-27 12:28 ` Eduardo Habkost
2008-10-27 14:02 ` Avi Kivity
2008-10-27 14:02 ` Avi Kivity
2008-10-27 17:32 ` Eric W. Biederman
2008-10-27 17:32 ` Eric W. Biederman
2008-10-28 19:45 ` Eduardo Habkost
2008-10-28 19:45 ` Eduardo Habkost
2008-10-28 20:13 ` Eric W. Biederman
2008-10-28 20:13 ` Eric W. Biederman
2008-10-29 9:41 ` Avi Kivity
2008-10-29 9:41 ` Avi Kivity
2008-10-29 14:54 ` Eric W. Biederman
2008-10-29 14:54 ` Eric W. Biederman
2008-10-29 17:03 ` Avi Kivity
2008-10-29 17:03 ` Avi Kivity
2008-10-30 1:33 ` Eric W. Biederman
2008-10-30 1:33 ` Eric W. Biederman
2008-10-30 7:35 ` Chris Lalancette
2008-10-30 7:35 ` Chris Lalancette
2008-10-30 7:43 ` Avi Kivity
2008-10-30 7:43 ` Avi Kivity
2008-10-30 7:52 ` Avi Kivity
2008-10-30 7:52 ` Avi Kivity
2008-10-29 9:31 ` Avi Kivity
2008-10-29 9:31 ` Avi Kivity
2008-10-27 15:05 ` Eric W. Biederman
2008-10-27 15:05 ` Eric W. Biederman
2008-10-27 15:50 ` Eduardo Habkost
2008-10-27 15:50 ` Eduardo Habkost
2008-10-27 8:54 ` Avi Kivity
2008-10-27 8:54 ` Avi Kivity
2008-10-27 13:09 ` Vivek Goyal
2008-10-27 13:09 ` Vivek Goyal
2008-10-27 14:04 ` Avi Kivity
2008-10-27 14:04 ` Avi Kivity
2008-10-29 20:10 ` Eduardo Habkost
2008-10-29 20:10 ` Eduardo Habkost
2008-10-29 20:29 ` Avi Kivity
2008-10-29 20:29 ` Avi Kivity
2008-10-29 21:05 ` Vivek Goyal
2008-10-29 21:05 ` Vivek Goyal
2008-10-30 0:58 ` Eric W. Biederman [this message]
2008-10-30 0:58 ` Eric W. Biederman
2008-10-26 21:47 ` Eric W. Biederman
2008-10-26 21:47 ` Eric W. Biederman
2008-10-27 8:59 ` Avi Kivity
2008-10-27 8:59 ` Avi Kivity
2008-10-27 15:02 ` Eric W. Biederman
2008-10-27 15:02 ` Eric W. Biederman
2008-10-27 15:38 ` Eduardo Habkost
2008-10-27 15:38 ` Eduardo Habkost
2008-10-26 12:46 ` Avi Kivity
2008-10-26 12:46 ` Avi Kivity
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=m1tzau3nmf.fsf@frodo.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=akpm@osdl.org \
--cc=avi@redhat.com \
--cc=ehabkost@redhat.com \
--cc=hbabu@us.ibm.com \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
--cc=kvm@vger.kernel.org \
--cc=vgoyal@redhat.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.