[PATCH 2/2] kvm: disable virtualization when halting CPUs on crash

2008-10-20 Thread Eduardo Habkost
Use the emergency_halt_notifier interface to disable virtualization on all the CPUs on machine_crash_shutdown(). Signed-off-by: Eduardo Habkost [EMAIL PROTECTED] --- arch/x86/kvm/x86.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86

Re: [PATCH 0/4] Allow enabling kvm_trace on external module

2008-09-24 Thread Eduardo Habkost
On Wed, Sep 24, 2008 at 04:48:35PM +0300, Avi Kivity wrote: Eduardo Habkost wrote: This series adds compat code to allow enabling kvm_trace when building KVM as an external module on older kernels. The most hackish part is the last patch, that adds --with-kvm-trace to configure and adds

[PATCH 4/4] Add --with-kvm-trace arg to configure

2008-09-22 Thread Eduardo Habkost
./configure --with-kvm-trace will set a CONFIG_KVM_TRACE option on a kernel/config.kbuild file. This file can be included from the Kbuild files to get kvm-specific CONFIG_* definitions. Signed-off-by: Eduardo Habkost [EMAIL PROTECTED] --- .gitignore|1 + configure | 11

[PATCH 3/4] relay_open() compat

2008-09-22 Thread Eduardo Habkost
On 2.6.21 a new parameter was added to relay_open(). Handle this parameter on kvm_relay_open() if needed. Signed-off-by: Eduardo Habkost [EMAIL PROTECTED] --- kernel/external-module-compat-comm.h | 19 +++ kernel/external-module-compat.c | 22

[PATCH 0/4] Allow enabling kvm_trace on external module

2008-09-22 Thread Eduardo Habkost
This series adds compat code to allow enabling kvm_trace when building KVM as an external module on older kernels. The most hackish part is the last patch, that adds --with-kvm-trace to configure and adds an include to a generated file on kernel/x86/Kbuild. It doesn't look pretty, so suggestions

[PATCH 2/4] Hack DEFINE_SIMPLE_ATTRIBUTE for lost_records_get() also

2008-09-22 Thread Eduardo Habkost
Change the DEFINE_SIMPLE_ATTRIBUTE pattern to match the lost_records_get() definition also, so kvm_trace can compile on older kernels. Signed-off-by: Eduardo Habkost [EMAIL PROTECTED] --- kernel/x86/hack-module.awk |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] Re: [PATCH] Make page_find() return 0 for too-large addresses

2008-09-15 Thread Eduardo Habkost
On Mon, Sep 15, 2008 at 10:29:14AM -0500, Anthony Liguori wrote: Eduardo Habkost wrote: snip New patch, reusing the range check from page_find_alloc() on page_find(). Untested. Have you tested this patch yet? I like to avoid being the first one to test something when it's not my code

Re: [Qemu-devel] Re: [PATCH] Make page_find() return 0 for too-large addresses

2008-09-12 Thread Eduardo Habkost
On Fri, Sep 12, 2008 at 05:14:06PM -0300, Eduardo Habkost wrote: On Fri, Sep 12, 2008 at 02:50:33PM -0500, Anthony Liguori wrote: Eduardo Habkost wrote: On some cases, such as under KVM, tb_invalidate_phys_page_range() may be called for large addresses, when qemu is configured to more than

Re: [Qemu-devel] Re: [PATCH] Make page_find() return 0 for too-large addresses

2008-09-12 Thread Eduardo Habkost
On Fri, Sep 12, 2008 at 04:27:30PM -0500, Anthony Liguori wrote: Eduardo Habkost wrote: On Fri, Sep 12, 2008 at 05:14:06PM -0300, Eduardo Habkost wrote: On Fri, Sep 12, 2008 at 02:50:33PM -0500, Anthony Liguori wrote: Eduardo Habkost wrote: On some cases, such as under KVM

[PATCH] Use .fixup instead of .text.fixup on __kvm_handle_fault_on_reboot

2008-08-19 Thread Eduardo Habkost
. Signed-off-by: Eduardo Habkost [EMAIL PROTECTED] --- include/asm-x86/kvm_host.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 1e28880..982b6b2 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86

<    2   3   4   5   6   7