[PATCH] kvm: external module: do not hardcode tsc_khz

2009-03-25 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com external module compat hard codes tsc_khz as 200 if KERNEL_VERSION (2,6,23). This breaks kvmclock on hosts with different frequency. While tsc_khz was only exported on 2.6.23, the majority of relevant older v2.6 based distros seem to have it

[PATCH] kvm: extboot: Update number of HDs reported by BIOS

2009-03-25 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com The Vista boot loaded expects the bios to report a correct count of the bootable disks; and extboot disks are bootable. This fixes Vista boot from virtio-blk issue. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff

[PATCH] KVM: VMX: Zero the vpid module parameter if vpid is not supported

2009-03-25 Thread Avi Kivity
From: Avi Kivity a...@redhat.com This allows reading back how the hardware is configured. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 47b94ae..8b1b9b8 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1202,6 +1202,9 @@ static

[PATCH] KVM: Fix interrupt unhalting a vcpu when it shouldn't

2009-03-25 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com kvm_vcpu_block() unhalts vpu on an interrupt/timer without checking if interrupt window is actually opened. Signed-off-by: Gleb Natapov g...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c