Re: limiting guest block i/o for qos

2010-11-25 Thread Nikola Ciprich
Hello Thomas, I t hink blkio-cgroup really can't help You here, but since NFS is network protocol, why not just consider some kind of network shaping? n. On Thu, Nov 25, 2010 at 12:58:22AM -0500, T Johnson wrote: > Hello, > > Does anyone know of any work in progress or any tricks to limit a > gue

Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs

2010-11-25 Thread Gleb Natapov
On Wed, Nov 24, 2010 at 12:53:00PM -0600, Anthony Liguori wrote: > On 11/24/2010 12:34 PM, Gleb Natapov wrote: > Right, and real HW does composition in the PIIX3 device. So let's > not regret making everything an ISA device later. > > >>>You design by packaging not functionality? > >>N

Re: [PATCH] Add function for clearing the requested VCPUs' mce registers.

2010-11-25 Thread Jin Dongming
Hi, Huang-san (2010/11/25 14:44), Huang Ying wrote: > On Thu, 2010-11-25 at 13:30 +0800, Jin Dongming wrote: >> Hi, Huang-san >> >> (2010/11/25 10:27), Huang Ying wrote: >>> Hi, Dongming, >>> >>> On Thu, 2010-11-25 at 09:14 +0800, Jin Dongming wrote: In some case of mce test, the injected dat

Re: [PATCH 2/2] reset mce registers of the given VCPU or all VCPUs with mce command.

2010-11-25 Thread Jin Dongming
Hi, Huang-san (2010/11/25 14:55), Huang Ying wrote: > On Thu, 2010-11-25 at 09:20 +0800, Jin Dongming wrote: >> --- a/monitor.c >> +++ b/monitor.c >> @@ -60,6 +60,7 @@ >> #include "trace.h" >> #endif >> #include "qemu-kvm.h" >> +#include "kvm_x86.h" >> >> //#define DEBUG >> //#define DEBUG_

Re: buildbot for kvm.git

2010-11-25 Thread Avi Kivity
On 11/25/2010 03:20 AM, Alexander Graf wrote: On 24.11.2010, at 22:03, Daniel Gollub wrote: > On Wednesday, November 24, 2010 11:23:37 pm Avi Kivity wrote: >>> powerpc not ready yet - trivial $ARCH change required in the buildbot >>> master configuration. > > powerpc builders are now also se

Re: [PATCH RFC] kvm: write protect memory after slot swap

2010-11-25 Thread Avi Kivity
On 11/24/2010 09:16 PM, Jan Kiszka wrote: > > Excellent catch, I stared at this code for a while and didn't see the > bug. Patch applied. > This patch was marked KVM-stable on commit, but it did not make into any stable branch thus also none of the recent releases. Please fix (for 2.6.36 now)

Re: buildbot for kvm.git

2010-11-25 Thread Avi Kivity
On 11/24/2010 10:48 PM, Daniel Gollub wrote: On Wednesday, November 24, 2010 11:23:37 pm Avi Kivity wrote: [...] > I think buildbot has a mechanism where you can send it a patch to be > build-tested. This allows developers to build-test on architectures > they don't have. Can we activate thi

[PATCH] KVM: PPC: Fix compile warning

2010-11-25 Thread Alexander Graf
KVM compilation fails with the following warning: include/linux/kvm_host.h: In function 'kvm_irq_routing_update': include/linux/kvm_host.h:679:2: error: 'struct kvm' has no member named 'irq_routing' That function is only used and reasonable to have on systems that implement an in-kernel interru

Re: [PATCH] KVM: PPC: Fix compile warning

2010-11-25 Thread Avi Kivity
On 11/25/2010 11:25 AM, Alexander Graf wrote: KVM compilation fails with the following warning: include/linux/kvm_host.h: In function 'kvm_irq_routing_update': include/linux/kvm_host.h:679:2: error: 'struct kvm' has no member named 'irq_routing' That function is only used and reasonable to hav

Re: [PATCH] KVM: PPC: Fix compile warning

2010-11-25 Thread Alexander Graf
On 25.11.2010, at 10:36, Avi Kivity wrote: > On 11/25/2010 11:25 AM, Alexander Graf wrote: >> KVM compilation fails with the following warning: >> >> include/linux/kvm_host.h: In function 'kvm_irq_routing_update': >> include/linux/kvm_host.h:679:2: error: 'struct kvm' has no member named >> 'ir

Re: [PATCH-v2 0/4] KVM: dirty logging optimization

2010-11-25 Thread Takuya Yoshikawa
(2010/11/22 14:40), Takuya Yoshikawa wrote: === I'm going to do additional measurements this weekend. - Especially with NPT. If you have any request about which cases you want to see, please let me know! Thanks, Takuya Test - On core 2 duo machine (without EPT) => just because

buildbot failure in qemu-kvm on disable_kvm_x86_64_debian_5_0

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of disable_kvm_x86_64_debian_5_0 on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_x86_64_debian_5_0/builds/647 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu

buildbot failure in qemu-kvm on disable_kvm_i386_debian_5_0

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of disable_kvm_i386_debian_5_0 on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_i386_debian_5_0/builds/648 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm

buildbot failure in qemu-kvm on disable_kvm_x86_64_out_of_tree

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of disable_kvm_x86_64_out_of_tree on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_x86_64_out_of_tree/builds/596 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qe

buildbot failure in qemu-kvm on default_x86_64_debian_5_0

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of default_x86_64_debian_5_0 on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5_0/builds/657 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_1

buildbot failure in qemu-kvm on disable_kvm_i386_out_of_tree

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of disable_kvm_i386_out_of_tree on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/disable_kvm_i386_out_of_tree/builds/596 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_k

buildbot failure in qemu-kvm on default_x86_64_out_of_tree

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of default_x86_64_out_of_tree on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_out_of_tree/builds/598 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_1

buildbot failure in qemu-kvm on default_i386_debian_5_0

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of default_i386_debian_5_0 on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0/builds/659 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_2 Build

buildbot failure in qemu-kvm on default_i386_out_of_tree

2010-11-25 Thread qemu-kvm
The Buildbot has detected a new failure of default_i386_out_of_tree on qemu-kvm. Full details are available at: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_out_of_tree/builds/596 Buildbot URL: http://buildbot.b1-systems.de/qemu-kvm/ Buildslave for this Build: b1_qemu_kvm_2 Bui

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Roedel, Joerg
On Wed, Nov 24, 2010 at 02:13:32PM -0500, Avi Kivity wrote: > On 11/24/2010 08:18 PM, Joerg Roedel wrote: > > Hi Avi, Hi Marcelo, > > > > here is a patch-set to make the instruction emulator aware of nested > > virtualization. It basically works by introducing a new callback into > > the x86_ops to

[GIT PULL net-2.6] vhost-net: rcu fixup

2010-11-25 Thread Michael S. Tsirkin
Please merge the following fix for 2.6.36. Thanks! The following changes since commit a27e13d370415add3487949c60810e36069a23a6: econet: fix CVE-2010-3848 (2010-11-24 11:51:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost-net

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Roedel, Joerg
On Thu, Nov 25, 2010 at 12:46:40PM +0100, Roedel, Joerg wrote: > We basically have two choices here: > > a) We expose svm internals into the emulator > b) We expose emulator internals into svm > > Both choices are not really good from a software-design point-of-view. > But I think opt

virtio_net sometimes didn't work

2010-11-25 Thread lidong chen
[version] the host os version is 2.6.32 the guest os version is 2.6.16 [dmesg] ACPI: (supports S3 S4 S5) Freeing unused kernel memory: 200k freed input: ImExPS/2 Generic Explorer Mouse as /class/input/input2 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 ACPI: PCI Interrupt :00:03.0[A] -> L

Re: virtio_net sometimes didn't work

2010-11-25 Thread Michael S. Tsirkin
On Thu, Nov 25, 2010 at 10:21:24PM +0800, lidong chen wrote: > [version] > the host os version is 2.6.32 Which qemu-kvm version? > the guest os version is 2.6.16 > > [dmesg] > ACPI: (supports S3 S4 S5) > Freeing unused kernel memory: 200k freed > input: ImExPS/2 Generic Explorer Mouse as /class/

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Avi Kivity
On 11/25/2010 01:46 PM, Roedel, Joerg wrote: On Wed, Nov 24, 2010 at 02:13:32PM -0500, Avi Kivity wrote: > On 11/24/2010 08:18 PM, Joerg Roedel wrote: > > Hi Avi, Hi Marcelo, > > > > here is a patch-set to make the instruction emulator aware of nested > > virtualization. It basically work

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Avi Kivity
On 11/25/2010 03:13 PM, Roedel, Joerg wrote: On Thu, Nov 25, 2010 at 12:46:40PM +0100, Roedel, Joerg wrote: > We basically have two choices here: > >a) We expose svm internals into the emulator >b) We expose emulator internals into svm > > Both choices are not really good from a softwar

PATCH: QEMU support for UHCI suspend / remote wake up

2010-11-25 Thread Marcelo Tosatti
This patch enables USB UHCI global suspend/resume feature. The OS will stop the HC once all ports are suspended. If there is activity on the port(s), an interrupt signalling remote wakeup will be triggered. To enable autosuspend for the USB tablet on Linux guests: echo auto > /sys/devices/pci000

Re: PATCH: QEMU support for UHCI suspend / remote wake up

2010-11-25 Thread Gerd Hoffmann
Hi, +dev->info->remote_wakeup_cb = uhci_event; diff --git a/hw/usb.h b/hw/usb.h index 00d2802..16de1c9 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -189,6 +189,11 @@ struct USBDeviceInfo { */ int (*handle_data)(USBDevice *dev, USBPacket *p); +/* + * Process remote w

Re: [KVM-AUTOTEST][PATCH 2/2][virtio-console] Fix compatibility with python 2.4.

2010-11-25 Thread Lukáš Doktor
Dne 23.11.2010 03:30, Amos Kong napsal(a): - "Jiří Župka" wrote: --- After loading your this patch, virtio_console also could not work with older python. Something are not fixed, such as: "return True if self.failed> 0 else False" "PASS"if result[0] else "FAIL" ... I'm testi

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Roedel, Joerg
On Thu, Nov 25, 2010 at 10:17:53AM -0500, Avi Kivity wrote: > On 11/25/2010 03:13 PM, Roedel, Joerg wrote: > > On Thu, Nov 25, 2010 at 12:46:40PM +0100, Roedel, Joerg wrote: > > > We basically have two choices here: > > > > > > a) We expose svm internals into the emulator > > > b) We expose em

Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs

2010-11-25 Thread Avi Kivity
On 11/24/2010 04:29 PM, Avi Kivity wrote: +kvm_msrs* vcpu::alloc_msr_list(size_t nmsrs) +{ +size_t size = sizeof(kvm_msrs) + sizeof(kvm_msr_entry) * nmsrs; +kvm_msrs* ret = static_cast(malloc(size)); +if (!ret) { +throw ENOMEM; +} +return ret; +} malloc? Mixing C and C+

[patch 2/2] support for UHCI suspend / remote wake up

2010-11-25 Thread Marcelo Tosatti
This patch enables USB UHCI global suspend/resume feature. The OS will stop the HC once all ports are suspended. If there is activity on the port(s), an interrupt signalling remote wakeup will be triggered. To enable autosuspend for the USB tablet on Linux guests: echo auto > /sys/devices/pci

[patch 0/2] USB UHCI global suspend / remote wakeup

2010-11-25 Thread Marcelo Tosatti
See patch 2 for details. v2: - Add remote wakeup callback in USBBus, as suggested by Gerd. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch 1/2] add USBBusOps to USBBus

2010-11-25 Thread Marcelo Tosatti
Needed for remote wakeup notification. Signed-off-by: Marcelo Tosatti Index: qemu-kvm/hw/usb-bus.c === --- qemu-kvm.orig/hw/usb-bus.c +++ qemu-kvm/hw/usb-bus.c @@ -14,11 +14,12 @@ static struct BusInfo usb_bus_info = { static int n

Re: [PATCH 0/9] KVM: Make the instruction emulator aware of Nested Virtualization

2010-11-25 Thread Roedel, Joerg
On Thu, Nov 25, 2010 at 10:15:43AM -0500, Avi Kivity wrote: > On 11/25/2010 01:46 PM, Roedel, Joerg wrote: > Eventually the emulator will be used outside kvm. We don't want to tie > the two together. Does any user outside of KVM care about nested virtualization? > All that's needed is to read

Re: [KVM-AUTOTEST] [PATCH 2/2][virtio-console] Fix compatibility with python 2.4.

2010-11-25 Thread Lucas Meneghel Rodrigues
On Thu, 2010-11-25 at 17:22 +0100, Lukáš Doktor wrote: > Dne 23.11.2010 03:30, Amos Kong napsal(a): > > - "Jiří Župka" wrote: > > > >> --- > > > > After loading your this patch, virtio_console also could not work with > > older python. > > > > Something are not fixed, such as: > >"return

[PATCH 1/2] KVM test: virtio subtest: Add subtest layer v2

2010-11-25 Thread Lucas Meneghel Rodrigues
From: Jiri Zupka This patch changes structure of the virtio_console test and prepares this test for simpler porting of another required tests. It creates a new layer for running the elementary tests allowing them to non-critically fail and let the test to finish the whole test loop. Tests are d

[PATCH 2/2] Fix compatibility with python 2.4.

2010-11-25 Thread Lucas Meneghel Rodrigues
From: Jiri Zupka --- client/tests/kvm/scripts/virtio_guest.py | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/client/tests/kvm/scripts/virtio_guest.py b/client/tests/kvm/scripts/virtio_guest.py index 87727c7..b039ec9 100755 --- a/client/tests/kvm/

Re: [Qemu-devel] [patch 0/2] USB UHCI global suspend / remote wakeup

2010-11-25 Thread Paul Brook
> This patch enables USB UHCI global suspend/resume feature. The OS will > stop the HC once all ports are suspended. If there is activity on the > port(s), an interrupt signalling remote wakeup will be triggered. I'm pretty sure this is wrong. Suspend/resume works based on physical topology, i.e

Re: [PATCH v3 1/6] KVM: MMU: fix forgot flush tlbs on sync_page path

2010-11-25 Thread Xiao Guangrong
Hi Avi, Marcelo, What do you think of this patchset? Could you give me some comments please? Thanks! On 11/19/2010 05:01 PM, Xiao Guangrong wrote: > We should flush all tlbs after drop spte on sync_page path since: > > Quote from Avi: > | sync_page > | drop_spte > | kvm_mmu_notifier_invalidate_

Re: [Qemu-devel] [patch 0/2] USB UHCI global suspend / remote wakeup

2010-11-25 Thread Marcelo Tosatti
On Fri, Nov 26, 2010 at 12:38:28AM +, Paul Brook wrote: > > This patch enables USB UHCI global suspend/resume feature. The OS will > > stop the HC once all ports are suspended. If there is activity on the > > port(s), an interrupt signalling remote wakeup will be triggered. > > I'm pretty sure

Re: Mask bit support's API

2010-11-25 Thread Yang, Sheng
On Wednesday 24 November 2010 09:59:23 Yang, Sheng wrote: > On Tuesday 23 November 2010 22:06:20 Avi Kivity wrote: > > On 11/23/2010 03:57 PM, Yang, Sheng wrote: > > > > > Yeah, but won't be included in this patchset. > > > > > > > > What API changes are needed? I'd like to see the complete A

Re: virtio_net sometimes didn't work

2010-11-25 Thread lidong chen
Does this message appear on boot, or after some stress? on boot, and only appear when boot from network. Which qemu-kvm version? [r...@kvm-4slot ~]# /usr/libexec/qemu-kvm --version QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2), Copyright (c) 2003-2008 Fabrice Bellard Does cherry-picking 3ff

Re: [PATCH 1/2] KVM test: virtio subtest: Add subtest layer v2

2010-11-25 Thread Amit Shah
Hi Lucas, Jiri, Lukas, On (Thu) Nov 25 2010 [17:28:57], Lucas Meneghel Rodrigues wrote: > From: Jiri Zupka > > This patch changes structure of the virtio_console test and > prepares this test for simpler porting of another required tests. > > It creates a new layer for running the elementary te