[PATCH] KVM: VMX: Conditionally request interrupt window after injecting irq

2008-11-23 Thread Avi Kivity
From: Avi Kivity <[EMAIL PROTECTED]> If we're injecting an interrupt, and another one is pending, request an interrupt window notification so we don't have excess latency on the second interrupt. This shouldn't happen in practice since an EOI will be issued, giving a second chance to request an i

[PATCH] Merge branch 'qemu-cvs'

2008-11-23 Thread Avi Kivity
From: Avi Kivity <[EMAIL PROTECTED]> Conflicts: qemu/block-raw-posix.c qemu/configure qemu/cpu-defs.h qemu/cpu-exec.c qemu/exec.c qemu/gdbstub.c qemu/loader.c qemu/osdep.c qemu/sysemu.h qemu/target-i386/helper.c

[PATCH] KVM: ia64: Clean up vmm_ivt.S using tab to indent every line

2008-11-23 Thread Avi Kivity
From: Xiantao Zhang <[EMAIL PROTECTED]> Using tab for indentation for vmm_ivt.S. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/arch/ia64/kvm/vmm_ivt.S b/arch/ia64/kvm/vmm_ivt.S index 50b4646..3ef1a01 100644 --- a/arch/ia64/kvm/vmm_ivt

[PATCH] KVM: ia64: Fix: Use correct calling convention for PAL_VPS_RESUME_HANDLER

2008-11-23 Thread Avi Kivity
From: Xiantao Zhang <[EMAIL PROTECTED]> PAL_VPS_RESUME_HANDLER should use r26 to hold vac fields according to SDM. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/arch/ia64/kvm/optvfault.S b/arch/ia64/kvm/optvfault.S index 634abad..3225

[PATCH] KVM: ia64: Add some debug points to provide crash infomation

2008-11-23 Thread Avi Kivity
From: Xiantao Zhang <[EMAIL PROTECTED]> Use printk infrastructure to print out some debug info once VM crashes. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/arch/ia64/kvm/mmio.c b/arch/ia64/kvm/mmio.c index 7f1a858..21f63ff 100644 --

[PATCH] KVM: ia64: Add handler for crashed vmm

2008-11-23 Thread Avi Kivity
From: Xiantao Zhang <[EMAIL PROTECTED]> Since vmm runs in an isolated address space and it is just a copy of host's kvm-intel module, so once vmm crashes, we just crash all guests running on it instead of crashing whole kernel. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> Signed-off-by: Avi K

[PATCH] KVM: ia64: Define printk function for kvm-intel module

2008-11-23 Thread Avi Kivity
From: Xiantao Zhang <[EMAIL PROTECTED]> kvm-intel module is relocated to an isolated address space with kernel, so it can't call host kernel's printk for debug purpose. In the module, we implement the printk to output debug info of vmm. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]> Signed-off-

[PATCH] KVM: MMU: fix sync of ptes addressed at owner pagetable

2008-11-23 Thread Avi Kivity
From: Marcelo Tosatti <[EMAIL PROTECTED]> During page sync, if a pagetable contains a self referencing pte (that points to the pagetable), the corresponding spte may be marked as writable even though all mappings are supposed to be write protected. Fix by clearing page unsync before syncing indiv