[PATCH] kvm: libkvm: add deassign ioctl

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com Add this to support hot remove assigned device. Acked-by: Mark McLoughlin mar...@redhat.com Signed-off-by: Weidong Han weidong@intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c index 92ffe10..a559a0d

[PATCH] kvm: qemu: deassign device from guest

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com free_assigned_device just frees device from qemu, it should also deassign the device from guest when guest exits or hot remove assigned device. Acked-by: Mark McLoughlin mar...@redhat.com Signed-off-by: Weidong Han weidong@intel.com Signed-off-by: Avi

[PATCH] kvm: qemu: wrap assign_device and assign_irq

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com Just wrap assign_device and assign_irq, no functional changes Acked-by: Mark McLoughlin mar...@redhat.com Signed-off-by: Weidong Han weidong@intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu/hw/device-assignment.c

[PATCH] kvm: qemu: regenerate bios for pci mmio page alignment

2009-02-24 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu/pc-bios/bios.bin b/qemu/pc-bios/bios.bin index 3a7d7c2..04c1f86 100644 Binary files a/qemu/pc-bios/bios.bin and b/qemu/pc-bios/bios.bin differ -- To unsubscribe from this list: send the line unsubscribe

[PATCH] kvm: qemu: remove some redundant args of ipf

2009-02-24 Thread Avi Kivity
From: Yang Zhang Yang Zhang remove redundant args of pci_vga_init(),isa_vga_init(), rtc_init() in ia64. Signed-off-by: Yang Zhang yang.zh...@intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kernel/ia64/hack-module.awk b/kernel/ia64/hack-module.awk index d0ef130..2e4e05f 100644

[PATCH] kvm: qemu: fix hot remove assigned device

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com When hot remove assigned device, should deassign it from guest and free it from qemu. assign_dev_update_irqs may not be invoked when hot add a device, so need to assign irq after device assignment in init_assigned_device. Acked-by: Mark McLoughlin

[PATCH] kvm: bios: make MMIO address page aligned in guest

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com MMIO of some devices are not page aligned, such as some EHCI controllers and virtual Realtek NIC in guest. Current guest bios doesn't guarantee the start address of MMIO page aligned. This may result in failure of device assignment, because KVM only allow

[PATCH] KVM: fix kvm_vm_ioctl_deassign_device

2009-02-24 Thread Avi Kivity
From: Weidong Han weidong@intel.com only need to set assigned_dev_id for deassignment, use match-flags to judge and deassign it. Acked-by: Mark McLoughlin mar...@redhat.com Signed-off-by: Weidong Han weidong@intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git

[PATCH] KVM: VMX: Don't intercept MSR_KERNEL_GS_BASE

2009-02-24 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Windows 2008 accesses this MSR often on context switch intensive workloads; since we run in guest context with the guest MSR value loaded (so swapgs can work correctly), we can simply disable interception of rdmsr/wrmsr for this MSR. A complication occurs since