From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Habkost Subject: [PATCH 00/15] x86: disable virt on kdump and emergency_restart (v2) Date: Wed, 5 Nov 2008 17:56:43 -0200 Message-ID: <1225915018-6548-1-git-send-email-ehabkost@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Andrew Morton , Eduardo Habkost , kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Rafael J. Wysocki" , Haren Myneni , Simon Horman , "Eric W. Biederman" , Andrey Borzenkov , mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Vivek Goyal To: Avi Kivity , Ingo Molnar Return-path: 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 Hi, This is an updated version of the reboot/kdump virtualization disable series that I've sent previously. In short, the x86 and kdump changes are the same as before, except for EXPORT_SYMBOL_GPL, and the KVM parts are completely different. Details of changes since the previous series: - Style fixes suggested by checkpatch - Added local_irq_disable() to nmi_shootdown_cpus() (patch 08) - Use EXPORT_SYMBOL_GPL() on set_virt_disable_func() & clear_virt_disable_func() - Add comments to source code on places where emergency_virt_disable() is called, explaining why. - kvm: Move the set_virt_disable_func() call to vmx.c and svm.c. This made the patch series shorter and removing one level of abstraction. This series is against linux-next-20081105. Patches 01-07 simply move the non-kdump-specific parts of nmi_shootdown_cpus() to reboot.c, so it can be used by emergency_restart(). They should be a no-op in relation to existing code. Patch 08 adds an additional local_irq_disable() to nmi_shootdown_cpus(), in case it is called with IRQs enabled. Patch 09 adds the virt_disable function registering interface, like the previous series. Patch 10 hooks emergency_virt_disable() into kdump crash_shutdown code. Patch 11 hooks emergency_virt_disable() into emergency_restart() using nmi_shootdown_cpus(). Patches 12-14 change KVM so that it registers a virt_disable function when loading. Finally, patch 15 restore the previous reboot=kbd default. -- Eduardo