Re: [PATCH] kvm tools: Use vring_need_event() to determine if interrupt is needed

2011-11-26 Thread Pekka Enberg
On Fri, Nov 25, 2011 at 5:47 PM, Asias He asias.he...@gmail.com wrote: This patch also fixes fio seq-read hang problem.   root@guest-kvm:~# cat seq-read.fio   [seq-read]   rw=read   bs=4096   size=512m   direct=1   filename=/dev/vdb   root@guest-kvm:~# fio seq-read.fio   random-read:

Re: [PATCH v4] kvm tools, qcow: Add the support for copy-on-write cluster

2011-11-26 Thread Pekka Enberg
On Thu, 24 Nov 2011, Lan Tianyu wrote: When meeting request to write the cluster without copied flag, allocate a new cluster and write original data with modification to the new cluster. This also adds support for the writing operation of the qcow2 compressed image. After testing, image file can

where to report this bug?

2011-11-26 Thread Ludmilla Becherer
Hi there, i use qemu-kvm for production purpose and run into a bug when i try to connect over vnc. i did not know how or where to report this bug, so please could anybody tell me how to do? or maybe this bug is already known? here i try to give information: kvm crahshes immidiatly when trying

Re: [PATCH] kvm tools: Use vring_need_event() to determine if interrupt is needed

2011-11-26 Thread Sasha Levin
On Sat, 2011-11-26 at 14:40 +0200, Pekka Enberg wrote: On Fri, Nov 25, 2011 at 5:47 PM, Asias He asias.he...@gmail.com wrote: This patch also fixes fio seq-read hang problem. root@guest-kvm:~# cat seq-read.fio [seq-read] rw=read bs=4096 size=512m direct=1

setting motherboard serial number?

2011-11-26 Thread Oliver Rath
Hi list, i have a little problem: a program of us is looking for the serial number of the motherboard via dmidecode -s baseboard-serial-number which returns normally (i.e. Athlon Board) a 16-digits-number. But doing this in a virtualized (i.e. Ubuntu-oneric-11.10) box, the command returns the

Re: setting motherboard serial number?

2011-11-26 Thread Bjørn Mork
Oliver Rath r...@mglug.de writes: Hi list, i have a little problem: a program of us is looking for the serial number of the motherboard via dmidecode -s baseboard-serial-number which returns normally (i.e. Athlon Board) a 16-digits-number. But doing this in a virtualized (i.e.

Re: [PATCH] kvm tools: Use vring_need_event() to determine if interrupt is needed

2011-11-26 Thread Sasha Levin
On Sat, 2011-11-26 at 15:27 +0200, Sasha Levin wrote: On Sat, 2011-11-26 at 14:40 +0200, Pekka Enberg wrote: On Fri, Nov 25, 2011 at 5:47 PM, Asias He asias.he...@gmail.com wrote: This patch also fixes fio seq-read hang problem. root@guest-kvm:~# cat seq-read.fio [seq-read]

Re: [PATCH] vhost-net: Acquire device lock when releasing device

2011-11-26 Thread David Miller
From: Sasha Levin levinsasha...@gmail.com Date: Fri, 18 Nov 2011 11:19:42 +0200 Device lock should be held when releasing a device, and specifically when calling vhost_dev_cleanup(). Otherwise, RCU complains about it: ... Cc: Michael S. Tsirkin m...@redhat.com Cc: kvm@vger.kernel.org Cc:

[PATCH 2/2] kvm: exit to userspace with reason KVM_EXIT_VCPU_DEAD

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com The vcpu can be safely released when --1.guest tells us that the vcpu is not needed any longer. --2.vcpu hits the last instruction _halt_ If both of the conditions are satisfied, kvm exits to userspace with the reason vcpu dead. So the user thread

[PATCH 1/5] QEMU Add cpu_phyid_to_cpu() to map cpu phyid to CPUState

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com The guest has different cpu logic id from qemu, but they have the same phyid. When cpu phyid is told by guest, we need to obtain the corresponding CPUState. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- target-i386/cpu.h|2 ++

[PATCH 2/5] QEMU Add cpu_free() to support arch related CPUState release

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com When exiting from vcpu thread, the CPUState must be freed firstly. And the handling process is an arch related. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- hw/apic.c|4 target-i386/cpu.h|3 +++

[PATCH 3/5] QEMU Introduce a pci device cpustate to get CPU_DEAD event in guest

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com This device's driver in guest can get vcpu dead event and notify qemu through the device. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- Makefile.target |1 + hw/pc_piix.c |1 + hw/pci.c | 22 +++

[PATCH 4/5] QEMU Release vcpu and finally exit vcpu thread safely

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com When guest driver tell us that the vcpu is no longer needed, qemu can release the vcpu and finally exit vcpu thread Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- cpu-defs.h|5 + cpus.c| 21

[PATCH 5/5] QEMU tmp patches for linux-header files

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Temporary patch for qemu to compile. Normally the headers should be copied from kernel. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- kvm/include/linux/kvm.h |9 - linux-headers/linux/kvm.h |9 + 2 files

[PATCH] virtio: add a pci driver to notify host the CPU_DEAD event

2011-11-26 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com A driver for qemu device cpustate. This driver catch the guest CPU_DEAD event, and notify host. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- drivers/virtio/Kconfig |6 ++ drivers/virtio/Makefile|1 +

Re: [PATCH 0] A series patches for kvmqemu to enable vcpu destruction in kvm

2011-11-26 Thread Liu ping fan
On Sat, Nov 26, 2011 at 1:54 AM, Jan Kiszka jan.kis...@web.de wrote: On 2011-11-25 00:35, Liu Ping Fan wrote: A series of patches from kvm, qemu to guest. These patches will finally enable vcpu destruction in kvm instance and let vcpu thread exit in qemu. Currently, the vcpu online feature

[PATCH 05/62] powerpc: remove the second argument of k[un]map_atomic()

2011-11-26 Thread Cong Wang
Signed-off-by: Cong Wang amw...@redhat.com --- arch/powerpc/kvm/book3s_pr.c |4 ++-- arch/powerpc/mm/dma-noncoherent.c |5 ++--- arch/powerpc/mm/hugetlbpage.c |4 ++-- arch/powerpc/mm/mem.c |4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git

[PATCH 08/62] x86: remove the second argument of k[un]map_atomic()

2011-11-26 Thread Cong Wang
Signed-off-by: Cong Wang amw...@redhat.com --- arch/x86/crypto/aesni-intel_glue.c | 24 arch/x86/kernel/crash_dump_32.c|6 +++--- arch/x86/kvm/lapic.c |8 arch/x86/kvm/paging_tmpl.h |4 ++-- arch/x86/kvm/x86.c

[PATCH 28/62] vhost: remove the second argument of k[un]map_atomic()

2011-11-26 Thread Cong Wang
Signed-off-by: Cong Wang amw...@redhat.com --- drivers/vhost/vhost.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index c14c42b..bdb2d64 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -937,9 +937,9 @@