Re: Slow disk IO on virtio kvm guests with Centos 5.5 as hypervisor

2011-02-16 Thread Stefan Hajnoczi
On Wed, Feb 16, 2011 at 12:50 PM, Thomas Broda tho...@bassfimass.de wrote: On Tue, 15 Feb 2011 15:50:00 +, Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Feb 15, 2011 at 10:15 AM, Thomas Broda tho...@bassfimass.de wrote: Using O_DIRECT, performance went down to 11 MB/s

Re: Slow disk IO on virtio kvm guests with Centos 5.5 as hypervisor

2011-02-15 Thread Stefan Hajnoczi
On Mon, Feb 14, 2011 at 6:15 PM, Thomas Broda tho...@bassfimass.de wrote: dd'ing /dev/zero to a testfile gives me a throughput of about 400MB/s when done directly on the hypervisor. If I try this from within a virtual guest, it's only 19MB/s to 24MB/s if the guest is on the LVM volume (raw

Re: Slow disk IO on virtio kvm guests with Centos 5.5 as hypervisor

2011-02-15 Thread Stefan Hajnoczi
On Tue, Feb 15, 2011 at 10:15 AM, Thomas Broda tho...@bassfimass.de wrote: On Tue, 15 Feb 2011 09:19:23 +, Stefan Hajnoczi stefa...@gmail.com wrote: Did you run dd with O_DIRECT? dd if=/dev/zero of=path-to-device oflag=direct bs=64k Using O_DIRECT, performance went down to 11 MB/s

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Stefan Hajnoczi
On Mon, Feb 14, 2011 at 10:18 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 02/14/2011 11:56 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. -rc2 is tagged and waiting for announcement.  Please take a look at -rc2 and make sure there is nothing

Re: KVM call agenda for Feb 8

2011-02-08 Thread Stefan Hajnoczi
On Mon, Feb 7, 2011 at 10:40 PM, Chris Wright chr...@redhat.com wrote: Please send in any agenda items you are interested in covering. Automated builds and testing: maintainer trees, integrating KVM-Autotest, and QEMU tests we need but don't exist Stefan -- To unsubscribe from this list: send

Re: KVM call minutes for Feb 8

2011-02-08 Thread Stefan Hajnoczi
On Tue, Feb 8, 2011 at 3:55 PM, Chris Wright chr...@redhat.com wrote: Automated builds and testing - found broken 32-bit The broken build was found (and fixed?) before automated qemu.git builds. It's a good motivator though. Stefan -- To unsubscribe from this list: send the line unsubscribe

Re: Network performance with small packets

2011-02-08 Thread Stefan Hajnoczi
On Wed, Feb 9, 2011 at 1:55 AM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Feb 09, 2011 at 12:09:35PM +1030, Rusty Russell wrote: On Wed, 9 Feb 2011 11:23:45 am Michael S. Tsirkin wrote: On Wed, Feb 09, 2011 at 11:07:20AM +1030, Rusty Russell wrote: On Wed, 2 Feb 2011 03:12:22 pm

Re: [Qemu-devel] Re: [PATCH v3 14/22] kvm: Fix race between timer signals and vcpu entry under !IOTHREAD

2011-01-31 Thread Stefan Hajnoczi
On Mon, Jan 31, 2011 at 11:27 AM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-01-31 11:03, Avi Kivity wrote: On 01/27/2011 04:33 PM, Jan Kiszka wrote: Found by Stefan Hajnoczi: There is a race in kvm_cpu_exec between checking for exit_request on vcpu entry and timer signals arriving

Re: [Qemu-devel] Re: [PATCH v3 14/22] kvm: Fix race between timer signals and vcpu entry under !IOTHREAD

2011-01-31 Thread Stefan Hajnoczi
On Mon, Jan 31, 2011 at 12:18 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-01-31 13:13, Stefan Hajnoczi wrote: On Mon, Jan 31, 2011 at 11:27 AM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-01-31 11:03, Avi Kivity wrote: On 01/27/2011 04:33 PM, Jan Kiszka wrote: Found by Stefan

Re: Zero-copy block driver?

2011-01-29 Thread Stefan Hajnoczi
2011/1/29 Darko Petrović darko.b.petro...@gmail.com: Could you please tell me if it is possible to use a block driver that completely avoids the guest kernel and copies block data directly to/from the given buffer in the guest userspace? If yes, how to activate it? If not... why not? :)

Re: Zero-copy block driver?

2011-01-29 Thread Stefan Hajnoczi
2011/1/29 Darko Petrović darko.b.petro...@gmail.com: Thanks for your help. Actually, I am more interested in doing it from the outside, if possible (I am not allowed to change the application code). Can the guest be tricked by KVM somehow, using the appropriate drivers? Just to clear it out,

Re: Qemu-img create problem

2011-01-28 Thread Stefan Hajnoczi
On Fri, Jan 28, 2011 at 1:13 PM, Himanshu Chauhan hschau...@nulltrace.org wrote: I just cloned qemu-kvm, built and installed it. But the qemu-img fails to create any disk image above 1G. The problem as I see is use of ssize_t for image size. When size is 2G, the check if (sval 0) succeeds and

Re: [Qemu-devel] Re: KVM call agenda for Jan 25

2011-01-25 Thread Stefan Hajnoczi
On Tue, Jan 25, 2011 at 2:02 PM, Luiz Capitulino lcapitul...@redhat.com wrote:  - Google summer of code 2011 is on, are we interested? (note: I just saw the   news, I don't have any information yet) http://www.google-melange.com/document/show/gsoc_program/google/gsoc2011/timeline I'd like to

Re: KVM call agenda for Jan 25

2011-01-25 Thread Stefan Hajnoczi
On Tue, Jan 25, 2011 at 2:26 PM, Avi Kivity a...@redhat.com wrote: On 01/25/2011 12:06 AM, Anthony Liguori wrote: On 01/24/2011 07:25 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. - coroutines for the block layer I have a perpetually in progress

Re: ATA Trim for qcow(2)

2011-01-23 Thread Stefan Hajnoczi
On Sun, Jan 23, 2011 at 9:35 PM, Emil Langrock emil.langr...@gmx.de wrote: there is support for ext4 to use the trim ATA command when a block is freed. I read that there should be an extra command which does that freeing afterwards. So is it possible to use that information inside the qcow to

Re: [Qemu-devel] Re: KVM call agenda for Jan 11

2011-01-10 Thread Stefan Hajnoczi
On Mon, Jan 10, 2011 at 1:05 PM, Jes Sorensen jes.soren...@redhat.com wrote: On 01/10/11 12:59, Juan Quintela wrote: Juan Quintela quint...@redhat.com wrote: Now sent it to the right kvm list.  Sorry for the second sent. Please send any agenda items you are interested in covering. - KVM

Re: qemu-kvm-0.13.0 - winsows 2008 - chkdisk too slow

2011-01-06 Thread Stefan Hajnoczi
On Thu, Jan 6, 2011 at 7:48 AM, Nikola Ciprich extmaill...@linuxbox.cz wrote: So windows started checking disk integrity, but the problem is, that it's waaay too slow - after ~12 hours, it's still running and seeems like it'll take ages to finish. Please post your KVM command-line. Have you

Re: FIXED: Re: [Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2011-01-06 Thread Stefan Hajnoczi
On Wed, Jan 5, 2011 at 5:01 PM, Serge E. Hallyn se...@hallyn.com wrote: I don't see this patch in the git tree, nor a revert of the buggy commit.  Was any decision made on this? Blue Swirl posted a patch a few days ago: [PATCH] pc: move port 92 stuff back to pc.c from pckbd.c It hasn't been

Re: Disk activity issue...

2011-01-04 Thread Stefan Hajnoczi
On Thu, Dec 30, 2010 at 11:25 PM, Erich Weiler bitscrub...@gmail.com wrote: I've got this issue that I've been banging my head against a wall for a while over and I think another pair of eyes may help, if anyone have a moment.  We have this new-ish KVM VM server (with the latest CentOS 5.5

Re: [PATCH 09/21] Introduce event-tap.

2011-01-04 Thread Stefan Hajnoczi
On Tue, Jan 4, 2011 at 11:02 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: After doing some heavy load tests, I realized that we have to take a hybrid approach to replay for now.  This is because when a device moves to the next state (e.g. virtio decreases inuse) is different

Re: [Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2010-12-26 Thread Stefan Hajnoczi
On Sat, Dec 25, 2010 at 7:02 PM, Peter Lieven p...@dlh.net wrote: this was the outcome of my bisect session: 956a3e6bb7386de48b642d4fee11f7f86a2fcf9a is first bad commit commit 956a3e6bb7386de48b642d4fee11f7f86a2fcf9a Author: Blue Swirl blauwir...@gmail.com Date:   Sat May 22 07:59:01 2010

Re: FIXED: Re: [Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2010-12-26 Thread Stefan Hajnoczi
On Sun, Dec 26, 2010 at 9:21 PM, Peter Lieven p...@dlh.net wrote: Am 25.12.2010 um 20:02 schrieb Peter Lieven: Am 23.12.2010 um 03:42 schrieb Stefan Hajnoczi: On Wed, Dec 22, 2010 at 10:02 AM, Peter Lieven p...@dlh.net wrote: If I start a VM with the following parameters qemu-kvm-0.13.0

Re: [Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2010-12-22 Thread Stefan Hajnoczi
On Wed, Dec 22, 2010 at 10:02 AM, Peter Lieven p...@dlh.net wrote: If I start a VM with the following parameters qemu-kvm-0.13.0 -m 2048 -smp 2 -monitor tcp:0:4014,server,nowait -vnc :14 -name 'ubuntu.test'  -boot order=dc,menu=off  -cdrom ubuntu-10.04.1-desktop-amd64.iso -k de and select

Re: [PATCH 11/21] ioport: insert event_tap_ioport() to ioport_write().

2010-12-18 Thread Stefan Hajnoczi
On Fri, Dec 17, 2010 at 4:19 PM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/12/17 Stefan Hajnoczi stefa...@gmail.com: On Thu, Dec 16, 2010 at 9:50 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/12/16 Michael S. Tsirkin m...@redhat.com: On Thu, Dec 16, 2010 at 04

Re: [PATCH 11/21] ioport: insert event_tap_ioport() to ioport_write().

2010-12-16 Thread Stefan Hajnoczi
On Thu, Dec 16, 2010 at 9:50 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/12/16 Michael S. Tsirkin m...@redhat.com: On Thu, Dec 16, 2010 at 04:37:41PM +0900, Yoshiaki Tamura wrote: 2010/11/28 Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp: 2010/11/28 Michael S. Tsirkin

Re: ConVirt 2.0.1 Open Source released.

2010-12-15 Thread Stefan Hajnoczi
On Wed, Dec 15, 2010 at 8:28 PM, jd jdsw2...@yahoo.com wrote: We are pleased to announce availability of ConVirt 2.0.1 open source. We would like to thank ConVirt user community for their continuing participation and support. This release incorporates feedback gathered from the community over

Re: I/O Performance Tips

2010-12-09 Thread Stefan Hajnoczi
if there are disk timeouts in the guest? This behavior appeared on almost all hosts (20) so I can eliminate a single machine HW failure. Christoph any pointers on how to debug this? The backtraces from the original email are below: Am Donnerstag, den 09.12.2010, 10:30 + schrieb Stefan Hajnoczi: On Thu

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-12-01 Thread Stefan Hajnoczi
On Mon, Nov 15, 2010 at 11:20 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Nov 14, 2010 at 12:19 PM, Avi Kivity a...@redhat.com wrote: On 11/14/2010 01:05 PM, Avi Kivity wrote: I agree, but let's enable virtio-ioeventfd carefully because bad code is out there. Sure.  Note as long

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-12-01 Thread Stefan Hajnoczi
On Wed, Dec 1, 2010 at 12:30 PM, Avi Kivity a...@redhat.com wrote: On 12/01/2010 01:44 PM, Stefan Hajnoczi wrote:  And, what about efficiency?  As in bits/cycle?  We are running benchmarks with this latest patch and will report results. Full results here (thanks to Khoa Huynh

Re: [PATCH 09/21] Introduce event-tap.

2010-11-30 Thread Stefan Hajnoczi
On Tue, Nov 30, 2010 at 9:50 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/29 Stefan Hajnoczi stefa...@gmail.com: On Thu, Nov 25, 2010 at 6:06 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: event-tap controls when to start FT transaction, and provides proxy

Re: KVM call agenda for Nov 30

2010-11-30 Thread Stefan Hajnoczi
On Tue, Nov 30, 2010 at 12:58 PM, Dor Laor dl...@redhat.com wrote: Please send in any agenda items you are interested in covering. Juan already has a thread for agenda items. It includes: As I forgot to put the call for agenda befor, Anthony already suggested: - 2011 kvm conference - 0.14.0

Re: limiting guest block i/o for qos

2010-11-29 Thread Stefan Hajnoczi
On Mon, Nov 29, 2010 at 2:00 AM, T Johnson tjohnso...@gmail.com wrote: Hello, On Thu, Nov 25, 2010 at 3:33 AM, Nikola Ciprich extmaill...@linuxbox.cz wrote: 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

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-11-29 Thread Stefan Hajnoczi
On Sat, Nov 27, 2010 at 1:11 PM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/27 Stefan Hajnoczi stefa...@gmail.com: On Sat, Nov 27, 2010 at 8:53 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/27 Stefan Hajnoczi stefa...@gmail.com: On Sat, Nov 27, 2010 at 4

Re: [PATCH 09/21] Introduce event-tap.

2010-11-29 Thread Stefan Hajnoczi
On Thu, Nov 25, 2010 at 6:06 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices.  While FT transaction, it queues up net/block requests, and flush them when the transaction gets

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-11-29 Thread Stefan Hajnoczi
On Mon, Nov 29, 2010 at 3:00 PM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/29 Paul Brook p...@codesourcery.com: If devices incorrectly claim support for live migration, then that should also be fixed, either by removing the broken code or by making it work. I totally

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-11-27 Thread Stefan Hajnoczi
On Sat, Nov 27, 2010 at 8:53 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/27 Stefan Hajnoczi stefa...@gmail.com: On Sat, Nov 27, 2010 at 4:29 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/27 Blue Swirl blauwir...@gmail.com: On Thu, Nov 25, 2010 at 6:06

Re: Loading snapshot with -loadvm?

2010-11-26 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 8:47 AM, Jun Koi junkoi2...@gmail.com wrote: this created a snapshot named test on my image. then i tried to start the snapshot VM, like below: qemu-system-x86_64 -m 2000 -vga std -usb -usbdevice tablet -localtime -loadvm 2 -hda img.qcow2.win7_x64 but then i have a

Re: Loading snapshot with -loadvm?

2010-11-26 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 9:26 AM, Jun Koi junkoi2...@gmail.com wrote: On Fri, Nov 26, 2010 at 5:18 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Nov 26, 2010 at 8:47 AM, Jun Koi junkoi2...@gmail.com wrote: this created a snapshot named test on my image. then i tried to start

Re: Memory leaks in virtio drivers?

2010-11-26 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 7:19 PM, Freddie Cash fjwc...@gmail.com wrote: Within 2 weeks of booting, the host machine is using 2 GB of swap, and disk I/O wait is through the roof.  Restarting all of the VMs will free up RAM, but restarting the whole box is the only way to get performance back up.

Re: Memory leaks in virtio drivers?

2010-11-26 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 8:16 PM, Freddie Cash fjwc...@gmail.com wrote: On Fri, Nov 26, 2010 at 12:04 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Nov 26, 2010 at 7:19 PM, Freddie Cash fjwc...@gmail.com wrote: Within 2 weeks of booting, the host machine is using 2 GB of swap, and disk

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

2010-11-26 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 9:59 PM, Christian Brunner c.m.brun...@gmail.com wrote: Thanks for the review. What am I supposed to do now? Kevin is the block maintainer. His review is the next step, I have CCed him. After that rbd would be ready to merge. Stefan -- To unsubscribe from this list:

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-11-26 Thread Stefan Hajnoczi
to instrumentation patches. Perhaps the instrumentation framework could be used (maybe with some changes) for Kemari as well? That could be beneficial to both. Yes.  I had the same idea but I'm not sure how tracing works.  I think Stefan Hajnoczi knows it better. Stefan, is it possible

Re: KVM call agenda for Nov 23

2010-11-23 Thread Stefan Hajnoczi
On Tue, Nov 23, 2010 at 2:37 PM, Kevin Wolf kw...@redhat.com wrote: Am 22.11.2010 14:55, schrieb Stefan Hajnoczi: On Mon, Nov 22, 2010 at 1:38 PM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. QCOW2 performance roadmap: * What can

Re: KVM call agenda for Nov 23

2010-11-22 Thread Stefan Hajnoczi
On Mon, Nov 22, 2010 at 1:38 PM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. QCOW2 performance roadmap: * What can be done to achieve near-raw image format performance? * Benchmark results from an ideal QCOW2 model. Stefan -- To

Re: Question on virtio frontend backend drivers

2010-11-22 Thread Stefan Hajnoczi
On Mon, Nov 22, 2010 at 2:05 PM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: I was under the impression that the each virtio driver will have a frontend and backend part. The frontend part would be loaded in the Guest OS and the backend driver will be loaded in the Host OS. These two

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

2010-11-18 Thread Stefan Hajnoczi
Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com -- 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

Re: [PATCH v3 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-16 Thread Stefan Hajnoczi
On Tue, Nov 16, 2010 at 4:02 PM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Nov 12, 2010 at 01:24:28PM +, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio.   This prevents the vcpu from executing guest code while hardware emulation code

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-15 Thread Stefan Hajnoczi
On Sun, Nov 14, 2010 at 12:19 PM, Avi Kivity a...@redhat.com wrote: On 11/14/2010 01:05 PM, Avi Kivity wrote: I agree, but let's enable virtio-ioeventfd carefully because bad code is out there. Sure.  Note as long as the thread waiting on ioeventfd doesn't consume too much cpu, it will

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-14 Thread Stefan Hajnoczi
On Sun, Nov 14, 2010 at 10:34 AM, Avi Kivity a...@redhat.com wrote: On 11/12/2010 11:20 AM, Stefan Hajnoczi wrote:  Who guarantees that less common virtio-blk and virtio-net guest drivers  for non-Linux OSes are fine with it?  Maybe you should add a feature flag  that the guest has

Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-12 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 3:53 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Nov 11, 2010 at 01:47:21PM +, Stefan Hajnoczi wrote: Care must be taken not to interfere with vhost-net, which already uses ioeventfd host notifiers.  The following list shows the behavior implemented

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-12 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 4:45 PM, Christoph Hellwig h...@infradead.org wrote: On Thu, Nov 11, 2010 at 01:47:21PM +, Stefan Hajnoczi wrote: Some virtio devices are known to have guest drivers which expect a notify to be processed synchronously and spin waiting for completion.  Only enable

Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-12 Thread Stefan Hajnoczi
On Fri, Nov 12, 2010 at 9:25 AM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, Nov 12, 2010 at 09:18:48AM +, Stefan Hajnoczi wrote: On Thu, Nov 11, 2010 at 3:53 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Nov 11, 2010 at 01:47:21PM +, Stefan Hajnoczi wrote: Care must

[PATCH v3 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-12 Thread Stefan Hajnoczi
- qemu_set_fd_handler(NULL), deassign host notifiers * virtio_pci_set_host_notifier(true) - qemu_set_fd_handler(NULL) * virtio_pci_set_host_notifier(false) - qemu_set_fd_handler(virtio_pci_host_notifier_read) Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-pci.c

[PATCH v3 3/3] virtio-pci: Don't use ioeventfd on old kernels

2010-11-12 Thread Stefan Hajnoczi
to work. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-pci.c |4 kvm-all.c | 46 ++ kvm-stub.c |5 + kvm.h |1 + 4 files changed, 56 insertions(+), 0 deletions(-) diff --git a/hw

[PATCH v3 1/3] virtio-pci: Rename bugs field to flags

2010-11-12 Thread Stefan Hajnoczi
The VirtIOPCIProxy bugs field is currently used to enable workarounds for older guests. Rename it to flags so that other per-device behavior can be tracked. A later patch uses the flags field to remember whether ioeventfd should be used for virtqueue host notification. Signed-off-by: Stefan

Re: [PATCH v3 3/3] virtio-pci: Don't use ioeventfd on old kernels

2010-11-12 Thread Stefan Hajnoczi
On Fri, Nov 12, 2010 at 1:24 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: @@ -1046,6 +1087,11 @@ int kvm_has_xcrs(void)     return kvm_state-xcrs;  } +int kvm_has_many_ioeventfds(void) +{ +    return kvm_state-many_ioeventfds; +} + Missing if (!kvm_enabled()) { return 0

Re: Unable to start VM using COWed image

2010-11-11 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 12:17 PM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: Though specifying the absolute path for source image worked for me. Can any one please let me know the situation in which one would not want to specify the absolute path? How does relative path help?

[PATCH v2 0/3] virtio: Use ioeventfd for virtqueue notify

2010-11-11 Thread Stefan Hajnoczi
This is a rewrite of the virtio-ioeventfd patchset to work at the virtio-pci.c level instead of virtio.c. This results in better integration with the host/guest notifier code and makes the code simpler (no more state machine). Virtqueue notify is currently handled synchronously in userspace

[PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-11-11 Thread Stefan Hajnoczi
- qemu_set_fd_handler(NULL), deassign host notifiers * virtio_pci_set_host_notifier(true) - qemu_set_fd_handler(NULL) * virtio_pci_set_host_notifier(false) - qemu_set_fd_handler(virtio_pci_host_notifier_read) Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-pci.c | 155

[PATCH 1/3] virtio-pci: Rename bugs field to flags

2010-11-11 Thread Stefan Hajnoczi
The VirtIOPCIProxy bugs field is currently used to enable workarounds for older guests. Rename it to flags so that other per-device behavior can be tracked. A later patch uses the flags field to remember whether ioeventfd should be used for virtqueue host notification. Signed-off-by: Stefan

[PATCH 3/3] virtio-pci: Don't use ioeventfd on old kernels

2010-11-11 Thread Stefan Hajnoczi
to work. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio-pci.c |4 kvm-all.c | 46 ++ kvm-stub.c |5 + kvm.h |1 + 4 files changed, 56 insertions(+), 0 deletions(-) diff --git a/hw

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

2010-11-11 Thread Stefan Hajnoczi
On Fri, Oct 15, 2010 at 8:54 PM, Christian Brunner c...@muc.de wrote: Hi, once again, Yehuda committed fixes for all the suggestions made on the list (and more). Here is the next update for the ceph/rbd block driver. Please let us know if there are any pending issues. For those who didn't

Re: Unable to start VM using COWed image

2010-11-10 Thread Stefan Hajnoczi
On Wed, Nov 10, 2010 at 10:08 AM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: Where can I get the code of the qemu-kvm program? I cloned the qemu-lvm git repository and compiled the code. But it looks like qemu-kvm program is not part of this code.-- qemu-kvm.git contains the qemu-kvm

Re: KVM, windows 2000 and qcow2

2010-11-10 Thread Stefan Hajnoczi
On Tue, Nov 9, 2010 at 8:06 PM, RaSca ra...@miamammausalinux.org wrote: Today i saw this page: http://www.linux-kvm.org/page/Guest_Support_Status in which is explained how is better to run win2k on qcow2 images. The page does not state that it is better to run Windows 2000 on qcow2, it's

Re: Unable to start VM using COWed image

2010-11-10 Thread Stefan Hajnoczi
On Wed, Nov 10, 2010 at 12:40 PM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: From: Stefan Hajnoczi [stefa...@gmail.com] Sent: 10 November 2010 11:12 To: Prasad Joshi Cc: Keqin Hong; kvm@vger.kernel.org Subject: Re: Unable to start VM using COWed image On Wed, Nov 10, 2010 at 10:08

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-11-10 Thread Stefan Hajnoczi
Hi Michael, I have looked into the way irqfd with msix mask notifiers works. From what I can tell, the guest notifiers are enabled by vhost net in order to hook up irqfds for the virtqueues. MSIX allows vectors to be masked so there is a mmio write notifier in qemu-kvm to toggle the irqfd and

Re: Unable to start VM using COWed image

2010-11-09 Thread Stefan Hajnoczi
On Tue, Nov 9, 2010 at 3:36 PM, Prasad Joshi p.g.jo...@student.reading.ac.uk wrote: Hello, I am trying to run KVM machine from the image created as COW from the original image. But it not working. Screenshot that shows the KVM works with the original image  [r...@prasad images]# qemu-kvm

Re: Disk I/O stuck with KVM - no clue how to solve that

2010-11-07 Thread Stefan Hajnoczi
On Sun, Nov 7, 2010 at 4:07 PM, Hermann Himmelbauer du...@qwer.tk wrote: Am Samstag 06 November 2010 20:58:12 schrieb Stefan Hajnoczi: On Fri, Nov 5, 2010 at 5:16 PM, Hermann Himmelbauer du...@qwer.tk wrote: I experience strange disk I/O stucks on my Linux Host + Guest with KVM, which make

Re: Disk I/O stuck with KVM - no clue how to solve that

2010-11-06 Thread Stefan Hajnoczi
On Fri, Nov 5, 2010 at 5:16 PM, Hermann Himmelbauer du...@qwer.tk wrote: I experience strange disk I/O stucks on my Linux Host + Guest with KVM, which make the system (especially the guests) almost unusable. These stucks come periodically, e.g. every 2 to 10 seconds and last between 3 and

Re: [RFC PATCH 0/1] vhost: Reduce TX used buffer signal for performance

2010-10-28 Thread Stefan Hajnoczi
On Wed, Oct 27, 2010 at 10:05 PM, Shirley Ma mashi...@us.ibm.com wrote: This patch changes vhost TX used buffer signal to guest from one by one to up to 3/4 of vring size. This change improves vhost TX message size from 256 to 8K performance for both bandwidth and CPU utilization without

Re: [RFC PATCH 0/1] vhost: Reduce TX used buffer signal for performance

2010-10-28 Thread Stefan Hajnoczi
On Thu, Oct 28, 2010 at 9:57 AM, Stefan Hajnoczi stefa...@gmail.com wrote: Just read the patch 1/1 discussion and it looks like you're already on it. Sorry for the noise. Stefan -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

[PATCH] qcow2: Fix segfault when qcow2 preallocate fails

2010-10-26 Thread Stefan Hajnoczi
/show_bug.cgi?id=646538. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Here's a fix for the segfault. block/qcow2.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index ee3481b..0fceb0d 100644 --- a/block/qcow2.c +++ b/block

Re: [PATCH] qcow2: Fix segfault when qcow2 preallocate fails

2010-10-26 Thread Stefan Hajnoczi
On Tue, Oct 26, 2010 at 2:48 PM, Kevin Wolf kw...@redhat.com wrote: Am 26.10.2010 15:23, schrieb Stefan Hajnoczi: When an image is created with -o preallocate, ensure that we only call preallocate() if the image was indeed opened successfully.  Also use bdrv_delete() instead of bdrv_close

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-25 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 03:33:41PM +0200, Michael S. Tsirkin wrote: Apologies if you receive this twice, the original message either disappeared or was delayed somehow. My main concern is with the fact that we add more state in notifiers that can easily get out of sync with users. If we

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-25 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 03:33:41PM +0200, Michael S. Tsirkin wrote: My main concern is with the fact that we add more state in notifiers that can easily get out of sync with users. If we absolutely need this state, let's try to at least document the state machine, and make the API for state

Re: VM with two interfaces

2010-10-22 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 11:49 PM, Nirmal Guhan vavat...@gmail.com wrote: On Thu, Oct 21, 2010 at 9:23 AM, Nirmal Guhan vavat...@gmail.com wrote: Hi, Am trying to create a VM using qemu-kvm with two interfaces(fedora12 is the host and vm) and running into an issue. Given below is the command

Re: Build error with the io-thread option

2010-10-22 Thread Stefan Hajnoczi
2010/10/22 Jean-Philippe Menil jean-philippe.me...@univ-nantes.fr: i encounter the following problem, when i attempt to build qemu-kvm with the --enable-io-thread option: --enable-io-thread doesn't build in qemu-kvm.git. qemu-kvm.git has an equivalent implemented and used automatically so you

Re: CD-ROM size not updated when switching CD-ROM images.

2010-10-19 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 4:43 AM, Alex Davis alex14...@yahoo.com wrote: Steps to reproduce: ) Download the first two Slackware-13.1 32-bit CD-ROM ISO images. ) Start KVM with the following command   qemu-system-x86_64 -m 1024M \     -cdrom full path of 1st install disk \     -boot d ) Hit

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-19 Thread Stefan Hajnoczi
On Thu, Sep 30, 2010 at 03:01:52PM +0100, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On systems that support KVM, the ioeventfd mechanism

Re: [Qemu-devel] Re: KVM call agenda for Oct 19

2010-10-19 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 2:33 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 10/19/2010 08:27 AM, Avi Kivity wrote:  On 10/19/2010 03:22 PM, Anthony Liguori wrote: I had assumed that this would involve: qemu -hda windows.img (qemu) snapshot ide0-disk0 snap0.img 1) create snap0.img

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-19 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 2:35 PM, Michael S. Tsirkin m...@redhat.com wrote: On Tue, Oct 19, 2010 at 08:12:42AM -0500, Anthony Liguori wrote: On 10/19/2010 08:07 AM, Stefan Hajnoczi wrote: Is there anything stopping this patch from being merged? Michael, any objections?  If not, I'll merge

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

2010-10-13 Thread Stefan Hajnoczi
On Wed, Oct 13, 2010 at 12:18 AM, Christian Brunner c...@muc.de wrote: +static int rbd_set_snapc(rados_pool_t pool, const char *snap, RbdHeader1 *header) +{ +    uint32_t snap_count = header-snap_count; +    rados_snap_t *snaps = NULL; +    rados_snap_t seq; +    uint32_t i; +    uint64_t

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

2010-10-09 Thread Stefan Hajnoczi
On Fri, Oct 8, 2010 at 8:00 PM, Yehuda Sadeh yeh...@hq.newdream.net wrote: No flush operation is supported. Can the guest be sure written data is on stable storage when it receives completion? +/* + * This aio completion is being called from rbd_aio_event_reader() and + * runs in qemu

Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Stefan Hajnoczi
On Sun, Oct 3, 2010 at 12:01 PM, Avi Kivity a...@redhat.com wrote:  On 09/30/2010 04:01 PM, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify

Re: disk image snapshot functionality

2010-09-30 Thread Stefan Hajnoczi
Try this: http://wiki.qemu.org/download/qemu-doc.html#vm_005fsnapshots To list the snapshots in your QCOW2 image: qemu-img snapshot -l myimage.qcow2 To revert the disk to a saved state: qemu-img snapshot -a snapshot-name myimage.qcow2 Stefan -- To unsubscribe from this list: send the line

[PATCH] virtio: Use ioeventfd for virtqueue notify

2010-09-30 Thread Stefan Hajnoczi
/ioeventfd 1 99033459 3425 4096 71851931 1899 16384 61082102 1923 65536 31611610 1744 Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Small

Re: disk image snapshot functionality

2010-09-30 Thread Stefan Hajnoczi
On Thu, Sep 30, 2010 at 2:49 PM, Peter Doherty dohe...@hkl.hms.harvard.edu wrote: On Sep 30, 2010, at 04:31 , Stefan Hajnoczi wrote: Try this: http://wiki.qemu.org/download/qemu-doc.html#vm_005fsnapshots To list the snapshots in your QCOW2 image: qemu-img snapshot -l myimage.qcow2

Re: disk image snapshot functionality

2010-09-29 Thread Stefan Hajnoczi
On Tue, Sep 28, 2010 at 9:24 PM, Peter Doherty dohe...@hkl.hms.harvard.edu wrote: I thought I could do this with the qcow2 images. I've used: qemu-img snapshot -c snapname disk_image.qcow2 to create the snapshot. It doesn't work.  The snapshots claim to be created, but if I shut down the

Re: virtio-blk XFS corruption

2010-09-25 Thread Stefan Hajnoczi
On Sat, Sep 25, 2010 at 2:43 PM, Peter Lieven p...@dlh.net wrote: we experience filesystem corruption using virtio-blk on some guest systems togehter with XFS. We still use qemu-kvm 0.12.4. [...] It seems that 64-bit Ubuntu LTS 10.04.1 is affected as well as an older openSuse 11.1 system

Re: Growing qcow2 files during block migration ?

2010-09-23 Thread Stefan Hajnoczi
On Thu, Sep 23, 2010 at 3:40 PM, Christoph Adomeit christoph.adom...@gatworks.de wrote: Lets say my source machine has a qcow2 file with virtual size of 60 GB but only 2 GB are in use. So the qcow2 file only has a size of 2 GB. After block migration the resulting qcow2 file on the target

Re: Tracing KVM with Systemtap

2010-09-22 Thread Stefan Hajnoczi
On Wed, Sep 22, 2010 at 1:11 PM, Rayson Ho r...@redhat.com wrote: On Tue, 2010-09-21 at 14:33 +0100, Stefan Hajnoczi wrote: I will see what other probes are useful for the end users. Also, are there developer documentations for KVM? (I googled but found a lot of presentations about KVM

Re: Tracing KVM with Systemtap

2010-09-22 Thread Stefan Hajnoczi
On Wed, Sep 22, 2010 at 1:42 PM, Rayson Ho r...@redhat.com wrote: On Wed, 2010-09-22 at 13:33 +0100, Stefan Hajnoczi wrote: KVM does not generate code.  Almost all the emulation code in the source tree is part of the Tiny Code Generator (TCG) used when KVM is not enabled (e.g. to emulate

Re: Tracing KVM with Systemtap

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 1:58 PM, Rayson Ho r...@redhat.com wrote: On Mon, 2010-09-20 at 14:36 +0100, Stefan Hajnoczi wrote: Right now there are few pre-defined probes (trace events in QEMU tracing speak).  As I develop I try to be mindful of new ones I create and whether they would

Re: Tracing KVM with Systemtap

2010-09-20 Thread Stefan Hajnoczi
On Mon, Sep 20, 2010 at 2:19 PM, Rayson Ho r...@redhat.com wrote: On Wed, 2010-09-08 at 15:08 +0100, Stefan Hajnoczi wrote: Hi Rayson, For the KVM kernel module Linux trace events are already used.  For example, see arch/x86/kvm/trace.h and check out /sys/kernel/debug/tracing/events/kvm

Re: Virtio with Debian GNU/Linux Etch

2010-09-17 Thread Stefan Hajnoczi
On Fri, Sep 17, 2010 at 5:56 PM, Daniel Bareiro daniel-lis...@gmx.net wrote: I have some installations with Debian GNU/Linux Etch I'm migrating to KVM. I just installed a kernel 2.6.26 from backports to use Virtio. But when I try to boot the operating system, it can not find the vd* device to

Re: .img on nfs, relative on ram, consuming mass ram

2010-09-16 Thread Stefan Hajnoczi
2010/9/16 Andre Przywara andre.przyw...@amd.com: TOURNIER Frédéric wrote: Ok, thanks for taking time. I'll dig into your answers. So as i run relative.img on diskless systems with original.img on nfs, what are the best practice/tips i can use ? I thinks it is -snapshot you are looking

Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-11 Thread Stefan Hajnoczi
On Fri, Sep 10, 2010 at 10:47 PM, H. Peter Anvin h...@linux.intel.com wrote: diff --git a/hw/usb-audio.c b/hw/usb-audio.c new file mode 100644 index 000..d4cf488 --- /dev/null +++ b/hw/usb-audio.c @@ -0,0 +1,702 @@ +/* + * QEMU USB Net devices + * + * Copyright (c) 2006 Thomas Sailer

Re: Tracing KVM with Systemtap

2010-09-08 Thread Stefan Hajnoczi
On Wed, Sep 8, 2010 at 2:20 PM, Rayson Ho r...@redhat.com wrote: Hi all, I am a developer of Systemtap. I am looking into tracing KVM (the kernel part and QEMU) and also the KVM guests with Systemtap. I googled and found references to Xenprobes and xdt+dtrace, and I was wondering if someone

Re: [PATCH 5/5] virtio-net: Switch default to new bottom half TX handler for iothread

2010-09-01 Thread Stefan Hajnoczi
On Tue, Aug 31, 2010 at 11:32 PM, Alex Williamson alex.william...@redhat.com wrote: On Tue, 2010-08-31 at 23:25 +0300, Michael S. Tsirkin wrote: On Fri, Aug 27, 2010 at 04:37:45PM -0600, Alex Williamson wrote: The bottom half handler shows big improvements over the timer with few downsides,

Re: Tracing KVM with LTTng

2010-08-07 Thread Stefan Hajnoczi
On Fri, Aug 6, 2010 at 4:42 PM, Julien Desfossez j...@klipix.org wrote: On [2] you can see a closer look of the state of the kvm threads (blue means syscall, red means running in VM mode (vm_entry), dark yellow means waiting for CPU). This is a great visualization. It shows the state of the

<    3   4   5   6   7   8   9   >