Re: upgrade kvm with running vm

2010-10-08 Thread Michael Tokarev
08.10.2010 08:07, Teck Choon Giam wrote: On Thu, Oct 7, 2010 at 11:43 PM, sofa5...@lavabit.com wrote: hi everybody, is it a problem to update kvm (the kvm package (qemu-kvm on debian) with the package manager) while some vms are turned on? or should i shutdown all vms first? If you update

Re: [PATCH v6 07/12] Add async PF initialization to PV guest.

2010-10-08 Thread Gleb Natapov
On Thu, Oct 07, 2010 at 02:50:49PM +0200, Avi Kivity wrote: On 10/04/2010 05:56 PM, Gleb Natapov wrote: Enable async PF in a guest if async PF capability is discovered. +void __cpuinit kvm_guest_cpu_init(void) +{ +if (!kvm_para_available()) +return; + +if

[PATCH 1/2] kvm, MCE, Add MCG_SER_P into KVM_MCE_CAP_SUPPORTED

2010-10-08 Thread Huang Ying
Now we have MCG_SER_P (and corresponding SRAO/SRAR MCE) support in kernel and QEMU-KVM, the MCG_SER_P should be added into KVM_MCE_CAP_SUPPORTED to make all these code really works. Reported-by: Dean Nelson dnel...@redhat.com Signed-off-by: Huang Ying ying.hu...@intel.com --- arch/x86/kvm/x86.c

[PATCH 2/2] kvm, MCE, Send SRAR SIGBUS directly

2010-10-08 Thread Huang Ying
Originally, SRAR SIGBUS is sent to QEMU-KVM via touching the poisoned page. But commit 96054569190bdec375fe824e48ca1f4e3b53dd36 prevents the signal from being sent. So now the signal is sent via force_sig_info_fault directly. Reported-by: Dean Nelson dnel...@redhat.com Signed-off-by: Huang Ying

[PATCH] Fix SRAO/SRAR MCE injecting on guest without MCG_SER_P

2010-10-08 Thread Huang Ying
On real machine, if MCG_SER_P in MSR_MCG_CAP is not set, SRAO/SRAR MCE should not be raised by hardware. This patch makes QEMU-KVM to follow the same rule. Reported-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com Signed-off-by: Huang Ying ying.hu...@intel.com --- qemu-kvm.c |6 +++--- 1

Re: [PATCH] Fix SRAO/SRAR MCE injecting on guest without MCG_SER_P

2010-10-08 Thread Hidetoshi Seto
(2010/10/08 17:25), Huang Ying wrote: On real machine, if MCG_SER_P in MSR_MCG_CAP is not set, SRAO/SRAR MCE should not be raised by hardware. This patch makes QEMU-KVM to follow the same rule. Reported-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com Signed-off-by: Huang Ying

Re: [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM

2010-10-08 Thread Michael S. Tsirkin
On Thu, Oct 07, 2010 at 10:02:25PM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 00:45 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 11:34:01AM -0600, Alex Williamson wrote: On Thu, 2010-10-07 at 19:18 +0200, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 03:26:30PM

[PATCH 3/5] kvm: stop including asm-generic/bitops/le.h directly

2010-10-08 Thread Akinobu Mita
asm-generic/bitops/le.h is only intended to be included directly from asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h which implements generic ext2 or minix bit operations. This stops including asm-generic/bitops/le.h directly and use ext2 non-atomic bit operations instead.

Re: [KVM_AUTOTEST][RFC 0/3]: QMP basic test-suite

2010-10-08 Thread Lucas Meneghel Rodrigues
On Thu, 2010-10-07 at 16:52 -0300, Luiz Capitulino wrote: This series is an _initial_ work on having a full QMP test-suite in kvm-autotest. I think it's very near of being in a mergeable state, but I figured it would be a good idea to get some feedback before submitting the final version.

Re: [PATCH] kvm: add oom notifier for virtio balloon

2010-10-08 Thread Dave Young
On Wed, Oct 6, 2010 at 9:50 PM, Dave Young hidave.darks...@gmail.com wrote: On Wed, Oct 6, 2010 at 5:05 PM, Rusty Russell ru...@rustcorp.com.au wrote: On Tue, 5 Oct 2010 11:15:21 pm Dave Young wrote: Balloon could cause guest memory oom killing and panic. Add oom notify to leak some memory

Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest

2010-10-08 Thread Dean Nelson
On 10/07/2010 10:15 PM, Huang Ying wrote: Hi, Seto, On Thu, 2010-10-07 at 11:41 +0800, Hidetoshi Seto wrote: (2010/10/07 3:10), Dean Nelson wrote: snip When I applied a patch to the guest's kernel which forces mce_ser to be set, as if MCG_SER_P was set (see __mcheck_cpu_cap_init()), I found

Re: [PATCH] kvm_monitor.py: is_responsive(): Use status command

2010-10-08 Thread Lucas Meneghel Rodrigues
On Thu, 2010-10-07 at 19:30 -0300, Luiz Capitulino wrote: The is_responsive() method in QMPMonitor class uses the query-version command to check if the monitor is alive and the same method in the HumanMonitor class uses the help command. This commit changes both classes to use the status

Re: [Autotest] [PATCH 00/18] Network Patchset v4

2010-10-08 Thread Lucas Meneghel Rodrigues
On Thu, 2010-10-07 at 17:00 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 08:07:04PM +0530, pradeep wrote: On Thu, 07 Oct 2010 10:54:16 -0300 Lucas Meneghel Rodrigues l...@redhat.com wrote: I tested macchange quite a lot, so I wonder what the problem is. About

Re: how CPU hot-plug is suppose to work on Linux?

2010-10-08 Thread Thomas Renninger
On Tuesday 21 September 2010 15:41:09 Gleb Natapov wrote: Hello, We are trying to add CPU hot-plug/unplug capability to KVM. We want to be able to initiate hot-plug/unplug from a host. Our current schema works like this: We have Processor object in DSDT for each potentially available CPU.

Re: [PATCH 3/5] kvm: stop including asm-generic/bitops/le.h directly

2010-10-08 Thread Alexander Graf
On 08.10.2010, at 12:03, Akinobu Mita wrote: asm-generic/bitops/le.h is only intended to be included directly from asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h which implements generic ext2 or minix bit operations. This stops including asm-generic/bitops/le.h

Re: [KVM_AUTOTEST][RFC 0/3]: QMP basic test-suite

2010-10-08 Thread Luiz Capitulino
On Fri, 08 Oct 2010 07:14:33 -0300 Lucas Meneghel Rodrigues l...@redhat.com wrote: On Thu, 2010-10-07 at 16:52 -0300, Luiz Capitulino wrote: This series is an _initial_ work on having a full QMP test-suite in kvm-autotest. I think it's very near of being in a mergeable state, but I figured

Re: [PATCH] kvm: add oom notifier for virtio balloon

2010-10-08 Thread Balbir Singh
* Dave Young hidave.darks...@gmail.com [2010-10-05 20:45:21]: Balloon could cause guest memory oom killing and panic. Add oom notify to leak some memory and retry fill balloon after 5 minutes. At the same time add a mutex to protect balloon operations because we need leak balloon in oom

Re: [PATCH] kvm: add oom notifier for virtio balloon

2010-10-08 Thread Dave Young
On Fri, Oct 8, 2010 at 9:09 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote: * Dave Young hidave.darks...@gmail.com [2010-10-05 20:45:21]: Balloon could cause guest memory oom killing and panic. Add oom notify to leak some memory and retry fill balloon after 5 minutes. At the same time add

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Anthony Liguori
On 10/07/2010 05:45 PM, Sage Weil wrote: On Thu, 7 Oct 2010, Anthony Liguori wrote: On 10/07/2010 04:49 PM, Yehuda Sadeh Weinraub wrote: On Thu, Oct 7, 2010 at 2:04 PM, Anthony Liguorianth...@codemonkey.ws wrote: On 10/07/2010 03:47 PM, Yehuda Sadeh Weinraub wrote:

Re: [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM

2010-10-08 Thread Alex Williamson
On Fri, 2010-10-08 at 10:40 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 10:02:25PM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 00:45 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 11:34:01AM -0600, Alex Williamson wrote: On Thu, 2010-10-07 at 19:18 +0200,

Re: [V2 PATCH 2/2] KVM test: Add vhost-net support

2010-10-08 Thread Lucas Meneghel Rodrigues
On Sun, 2010-09-26 at 10:28 +0800, Jason Wang wrote: Vhost is a kernel-level backend for virtio. This patch add a nic_params named vhost to enable/disable vhost backend. Jason, I had rebased your patches. The patches themselves look good, but apparently the syntax proposed here is invalid, and

Re: [V2 PATCH 2/2] KVM test: Add vhost-net support

2010-10-08 Thread Lucas Meneghel Rodrigues
/autotest/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20101008-103957-4nMr',server,nowait -serial unix:'/tmp/serial-20101008-103957-4nMr',server,nowait -drive file='/tmp/kvm_autotest_root/images/f13-64.qcow2',index=0,if=virtio,boot=on -device virtio-net-pci,mac=9a:0b:5d

[PATCH 0/2] vhost net support v3

2010-10-08 Thread Lucas Meneghel Rodrigues
The first patch of the series looks good, will be applied. The second one needs more care. Lucas Meneghel Rodrigues (2): KVM test: Use -device to add nic device when possible KVM test: Add vhost-net support client/tests/kvm/kvm_vm.py | 40 ---

[PATCH 2/2] KVM test: Add vhost-net support

2010-10-08 Thread Lucas Meneghel Rodrigues
Vhost is a kernel-level backend for virtio. This patch add a nic_param named vhost to enable/disable vhost backend. Changes from v2: - Rebase against latest HEAD lmr - This one has problems so I'll hold on about applying this one. Signed-off-by: Jason Wang jasow...@redhat.com ---

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Yehuda Sadeh Weinraub
On Fri, Oct 8, 2010 at 7:06 AM, Anthony Liguori anth...@codemonkey.ws wrote: On 10/07/2010 05:45 PM, Sage Weil wrote: I'm sorry, I'm having a hard time understanding what it is you're objecting to, or what you would prefer, as there are two different things we're talking about here (callbacks

Re: [PATCH] kvm: add oom notifier for virtio balloon

2010-10-08 Thread Balbir Singh
* Dave Young hidave.darks...@gmail.com [2010-10-08 21:33:02]: On Fri, Oct 8, 2010 at 9:09 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote: * Dave Young hidave.darks...@gmail.com [2010-10-05 20:45:21]: Balloon could cause guest memory oom killing and panic. Add oom notify to leak

Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v4)

2010-10-08 Thread Anthony Liguori
On 10/08/2010 10:50 AM, Yehuda Sadeh Weinraub wrote: Oh, that makes it more clean. Considering that we did it for kvm, and looking at the kvm qemu_bh_schedule() implementation, it does look thread safe (there might be an issue though with canceling the bh though, haven't looked at it, not really

[2.6.36 REGRESSION] Re: virtio-blk: put request that was created to retrieve the device id

2010-10-08 Thread Mike Snitzer
Hi Rusty, On Tue, Sep 21 2010 at 5:00pm -0400, Christoph Hellwig h...@infradead.org wrote: On Fri, Sep 17, 2010 at 09:58:48AM -0500, Ryan Harper wrote: Since __bio_map_kern() sets up bio-bi_end_io = bio_map_kern_endio (which does a bio_put(bio)) doesn't that ensure we don't leak?

Re: [PATCH] trace exit to userspace event

2010-10-08 Thread Marcelo Tosatti
On Thu, Oct 07, 2010 at 07:56:55PM +0200, Gleb Natapov wrote: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index b8499f5..8800713 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1458,6 +1458,8 @@ static long kvm_vcpu_ioctl(struct file *filp, if

Re: [PATCH v6 03/12] Retry fault before vmentry

2010-10-08 Thread Marcelo Tosatti
On Thu, Oct 07, 2010 at 08:44:57PM +0200, Gleb Natapov wrote: On Wed, Oct 06, 2010 at 11:20:50AM -0300, Marcelo Tosatti wrote: On Wed, Oct 06, 2010 at 01:07:04PM +0200, Gleb Natapov wrote: Can't you set a bit in vcpu-requests instead, and handle it in out: at the end of

Re: [PATCH] trace exit to userspace event

2010-10-08 Thread Gleb Natapov
On Thu, Oct 07, 2010 at 09:49:17PM -0300, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 07:56:55PM +0200, Gleb Natapov wrote: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index b8499f5..8800713 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1458,6

Re: [AUTOTEST MIRROR][PATCH] Introduce .gitignore file

2010-10-08 Thread Eduardo Habkost
On Thu, Oct 07, 2010 at 05:22:17PM -0300, Luiz Capitulino wrote: Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- Eduardo, can you actually commit to a git mirror? It's hard to work in your repo w/o this file. Can't we get this added to svn:ignore on the Subversion repository

Re: [AUTOTEST MIRROR][PATCH] Introduce .gitignore file

2010-10-08 Thread Luiz Capitulino
On Fri, 8 Oct 2010 15:02:26 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Thu, Oct 07, 2010 at 05:22:17PM -0300, Luiz Capitulino wrote: Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- Eduardo, can you actually commit to a git mirror? It's hard to work in your repo w/o

Re: [PATCH 2/2] kvm, MCE, Send SRAR SIGBUS directly

2010-10-08 Thread Marcelo Tosatti
On Fri, Oct 08, 2010 at 04:24:15PM +0800, Huang Ying wrote: Originally, SRAR SIGBUS is sent to QEMU-KVM via touching the poisoned page. But commit 96054569190bdec375fe824e48ca1f4e3b53dd36 prevents the signal from being sent. So now the signal is sent via force_sig_info_fault directly.

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-08 Thread Marcelo Tosatti
On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan Koers wrote: On 2010-10-03 01:42, Zachary Amsden wrote: ... Umm... do you guys have this commit? This is supposed to address the issue where the guest keeps resetting the TSC. A guest which does

Re: upgrade kvm with running vm

2010-10-08 Thread Teck Choon Giam
On Fri, Oct 8, 2010 at 2:03 PM, Michael Tokarev m...@tls.msk.ru wrote: 08.10.2010 08:07, Teck Choon Giam wrote: On Thu, Oct 7, 2010 at 11:43 PM,  sofa5...@lavabit.com wrote: hi everybody, is it a problem to update kvm (the kvm package (qemu-kvm on debian) with the package manager) while some

Re: [PATCH 2/2] kvm, MCE, Send SRAR SIGBUS directly

2010-10-08 Thread Huang Ying
On Sat, 2010-10-09 at 04:25 +0800, Marcelo Tosatti wrote: On Fri, Oct 08, 2010 at 04:24:15PM +0800, Huang Ying wrote: Originally, SRAR SIGBUS is sent to QEMU-KVM via touching the poisoned page. But commit 96054569190bdec375fe824e48ca1f4e3b53dd36 prevents the signal from being sent. So now

Re: [PATCH 2/2] kvm, MCE, Send SRAR SIGBUS directly

2010-10-08 Thread Marcelo Tosatti
On Fri, Oct 08, 2010 at 05:25:01PM -0300, Marcelo Tosatti wrote: On Fri, Oct 08, 2010 at 04:24:15PM +0800, Huang Ying wrote: Originally, SRAR SIGBUS is sent to QEMU-KVM via touching the poisoned page. But commit 96054569190bdec375fe824e48ca1f4e3b53dd36 prevents the signal from being sent.

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-08 Thread Arjan Koers
On 2010-10-09 00:06, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan Koers wrote: On 2010-10-03 01:42, Zachary Amsden wrote: ... Umm... do you guys have this commit? This is supposed to address the issue where the guest

Re: [PATCH] virtio-blk: put request that was created to retrieve the device id

2010-10-08 Thread Rusty Russell
On Fri, 10 Sep 2010 06:30:42 am Mike Snitzer wrote: On Thu, Sep 09 2010 at 4:30pm -0400, Ryan Harper ry...@us.ibm.com wrote: * Mike Snitzer snit...@redhat.com [2010-09-09 15:15]: On Thu, Sep 09 2010 at 3:43pm -0400, Mike Snitzer snit...@redhat.com wrote: # while true ; do cat

Re: [V2 PATCH 2/2] KVM test: Add vhost-net support

2010-10-08 Thread Jason Wang
' -monitor unix:'/tmp/monitor-humanmonitor1-20101008-103957-4nMr',server,nowait -serial unix:'/tmp/serial-20101008-103957-4nMr',server,nowait -drive file='/tmp/kvm_autotest_root/images/f13-64.qcow2',index=0,if=virtio,boot=on -device virtio-net-pci,mac=9a:0b:5d:7a:c1:7b,netdev=idlTBuUt -netdev

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-08 Thread Zachary Amsden
On 10/08/2010 03:10 PM, Arjan Koers wrote: On 2010-10-09 00:06, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan Koers wrote: On 2010-10-03 01:42, Zachary Amsden wrote: ... Umm... do you guys

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-08 Thread Zachary Amsden
On 10/08/2010 03:10 PM, Arjan Koers wrote: On 2010-10-09 00:06, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan Koers wrote: On 2010-10-03 01:42, Zachary Amsden wrote: ... Umm... do you guys

Re: [PATCH] kvm: add oom notifier for virtio balloon

2010-10-08 Thread Dave Young
On Fri, Oct 8, 2010 at 11:53 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote: * Dave Young hidave.darks...@gmail.com [2010-10-08 21:33:02]: On Fri, Oct 8, 2010 at 9:09 PM, Balbir Singh bal...@linux.vnet.ibm.com wrote: * Dave Young hidave.darks...@gmail.com [2010-10-05 20:45:21]:

Re: [PATCH] KVM: PPC: e500: Call kvm_vcpu_uninit() before kvmppc_e500_tlb_uninit().

2010-10-08 Thread Scott Wood
On Fri, 8 Oct 2010 12:39:33 +0200 Alexander Graf ag...@suse.de wrote: On 08.10.2010, at 05:50, Liu Yu-B13201 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, October 06, 2010 3:42 AM To: Wood Scott-B07421 Cc: