From: Simon Horman Subject: Re: [PATCH 0/2] kvm: disable virtualization on kdump Date: Fri, 24 Oct 2008 09:29:08 +1100 Message-ID: <20081023222906.GB10753@verge.net.au> References: <20081022232824.GD5247@verge.net.au> <20081023194129.GD27959@blackpad> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Andrew Morton , kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Haren Myneni , Avi Kivity , Vivek Goyal , Eric Biederman To: Eduardo Habkost Return-path: Content-Disposition: inline In-Reply-To: <20081023194129.GD27959@blackpad> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kexec-bounces-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Errors-To: kexec-bounces+glkk-kexec=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: kvm.vger.kernel.org [ Added Andrew Morton, Eric Biederman, Vivek Goyal and Haren Myneni to CC ] On Thu, Oct 23, 2008 at 05:41:29PM -0200, Eduardo Habkost wrote: > On Thu, Oct 23, 2008 at 10:28:24AM +1100, Simon Horman wrote: > > On Mon, Oct 20, 2008 at 01:01:32PM -0200, Eduardo Habkost wrote: > > > The following two patches should make kdump work when the kvm-intel module > > > is loaded. We need to disable vmx mode before booting the kdump kernel, > > > so I've introduced a notifier interface where KVM can hook and disable > > > virtualization on all CPUs just before they are halted. > > > > > > It has the same purpose of the KVM reboot notifier that gets executed > > > at kexec-time. But on the kdump case, things are not as simple because > > > the kernel has just crashed. > > > > > > The notifier interface being introduced is x86-specific. I don't know > > > if an arch-independent interface would be more appropriate for this > > > case. > > > > > > It was tested only using kvm-intel. Testing on different machines > > > is welcome. > > > > These changes look fine to me from a kexec/kdump point of view. > > > > Reviewed-by: Simon Horman > > Thanks. > > Considering they touch both KVM and kexec, which tree would be best way > to get them in? As I understand it, there is no kexec tree as such, rather patches either get picked up by an arch tree or Andrew Morton. I am happy to create and maintain a kexec tree if there is a need. But in this case it seems that using the KVM tree would be best. > (Avi: the patches were sent only to kexec and kvm mailing lists, > initially. If it's better to submit them to your address also so it gets > on your queue, please let me know) I won't speak for Avi, but usually its good to CC the maintainer. -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en