Re: [Qemu-devel] KVM call agenda for July 26

2011-07-26 Thread Stefan Hajnoczi
On Tue, Jul 26, 2011 at 12:30 AM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. 0.15.0 release candidate testing * http://wiki.qemu.org/Planning/0.15/Testing * Please test hosts, targets, subsystems, or features you care about! * May

Re: [Qemu-devel] [PATCH] Introduce QEMU_NEW()

2011-07-25 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 9:51 AM, Avi Kivity a...@redhat.com wrote: qemu_malloc() is type-unsafe as it returns a void pointer.  Introduce QEMU_NEW() (and QEMU_NEWZ()), which return the correct type. Signed-off-by: Avi Kivity a...@redhat.com --- This is part of my memory API patchset, but

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-25 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 8:08 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +    elapsed_time  = (real_time - bs-slice_start[is_write

Re: virtagent for qemu-kvm ?

2011-07-25 Thread Stefan Hajnoczi
On Tue, Jul 26, 2011 at 6:05 AM, Prateek Sharma prate...@cse.iitb.ac.in wrote: Hi all,    Is there any equivalent of qemu's virtagent in qemu-kvm? [http://lists.gnu.org/archive/html/qemu-devel/2011-01/msg02149.html]  . In particular , i want to share pages between KVM guests and the host . Is

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-24 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 5:25 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Fri, Jul 22, 2011 at 6:54 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque

Re: [PATCH v1 1/1] Submit the codes for QEMU disk I/O limits.

2011-07-22 Thread Stefan Hajnoczi
On Fri, Jul 22, 2011 at 10:20 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +static void bdrv_block_timer(void *opaque) +{ +    BlockDriverState *bs = opaque; +    BlockQueue *queue = bs-block_queue; +    uint64_t intval = 1; + +    while (!QTAILQ_EMPTY(queue-requests)) { +        

[RFC 1/2] KVM: Record instruction set in all vmexit tracepoints

2011-07-22 Thread Stefan Hajnoczi
so these tracepoints can also be self-describing. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- arch/x86/kvm/svm.c |6 -- arch/x86/kvm/trace.h | 12 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c

[RFC 0/2] KVM: Fix kvm_exit trace event format

2011-07-22 Thread Stefan Hajnoczi
=0xc01151a8 isa=1 info1=4272 info2=0 I'd really like to make perf and trace-cmd just work with kvm:kvm_exit. Any suggestions other than improving the parsers in the respective tools? Stefan Hajnoczi (2): KVM: Record instruction set in all vmexit tracepoints KVM: Use __print_symbolic

[RFC 2/2] KVM: Use __print_symbolic() for vmexit tracepoints

2011-07-22 Thread Stefan Hajnoczi
table with __print_symbolic() depending on the instruction set. Note that __print_symbolic() is designed for exporting the formatting table to userspace and allows trace-cmd and perf to work. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- arch/x86/include/asm/kvm_host.h |2

Re: [Qemu-devel] [RFC] New thread for the VM migration

2011-07-14 Thread Stefan Hajnoczi
On Thu, Jul 14, 2011 at 9:36 AM, Avi Kivity a...@redhat.com wrote: On 07/14/2011 10:14 AM, Umesh Deshpande wrote: @@ -260,10 +260,15 @@ int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque)          return 0;      } +    if (stage != 3) +        qemu_mutex_lock_iothread();

Re: [PATCH 0/4] scsi fixes

2011-07-11 Thread Stefan Hajnoczi
On Mon, Jul 11, 2011 at 2:02 PM, Hannes Reinecke h...@suse.de wrote: Hi all, these are some fixes I found during debugging my megasas HBA emulation. This time I've sent them as a separate patchset for inclusion. All of them have been acked, so please apply. Are SCSI patches going through

Re: [Qemu-devel] KVM call agenda for June 28

2011-07-07 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 7:18 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 05, 2011 at 04:37:08PM +0100, Stefan Hajnoczi wrote: On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote: On 07/05/2011 03:58

Re: Resize Hard Disk of VM

2011-07-06 Thread Stefan Hajnoczi
On Wed, Jul 6, 2011 at 10:15 AM, Kaushal Shriyan kaushalshri...@gmail.com wrote: Is there a way to resize the Hard Disk of VM ? You can use qemu-img resize on a disk image that is currently not in use: qemu-img resize filename +10G Or you can use libguestfs to get a parted-style resize:

Re: KVM autotest tip of the week

2011-07-06 Thread Stefan Hajnoczi
On Wed, Jul 6, 2011 at 5:28 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On an effort to make KVM autotest better and more useful for our target users (KVM developers), we are expanding documentation and writing articles on how to get some commonly asked test jobs running (I plan on

Re: [Qemu-devel] [PATCH 2/3] Add fno-strict-overflow

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 6:41 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Jul 4, 2011 at 11:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 4 July 2011 23:00, Raghavendra D Prabhu raghu.prabh...@gmail.com wrote: This is to avoid gcc optimizating out the comparison in assert

Re: [Qemu-devel] KVM call agenda for June 28

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor dl...@redhat.com wrote: I tried to re-arrange all of the requirements and use cases using this wiki page: http://wiki.qemu.org/Features/LiveBlockMigration It would be the best to agree upon the most interesting use cases (while we make sure we cover

Re: [Qemu-devel] [PATCH 5/5] megasas: LSI Megaraid SAS emulation

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 12:03 PM, Hannes Reinecke h...@suse.de wrote: +static void megasas_unmap_sgl(struct megasas_cmd_t *cmd) +{ +    uint16_t flags = le16_to_cpu(cmd-frame-header.flags); +    int i, is_write = (flags MFI_FRAME_DIR_WRITE) ? 1 : 0; + +    for (i = 0; i

Re: [Qemu-devel] KVM call agenda for June 28

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote: On 07/05/2011 03:58 PM, Marcelo Tosatti wrote: On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote: On Tue, Jul 5, 2011 at 9:01 AM, Dor Laordl

Re: [Qemu-devel] [PATCH 2/3] Add fno-strict-overflow

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 4:36 PM, Raghavendra D Prabhu raghu.prabh...@gmail.com wrote: * On Mon, Jul 04, 2011 at 11:38:30PM +0100, Peter Maydell peter.mayd...@linaro.org wrote: On 4 July 2011 23:00, Raghavendra D Prabhu raghu.prabh...@gmail.com wrote: This is to avoid gcc optimizating out the

Re: virtio scsi host draft specification, v3

2011-07-04 Thread Stefan Hajnoczi
On Mon, Jul 4, 2011 at 2:38 PM, Hai Dong,Li haido...@linux.vnet.ibm.com wrote: So if I understand correctly, virtio-scsi looks like an SCSI tranport protocol, such as iSCSI, FCP and SRP which use tcp/ip, FC and Infiniband RDMA respectively as the transfer media while virtio-scsi uses virtio,

Re: [Qemu-devel] [PATCH 2/3] Add fno-strict-overflow

2011-07-04 Thread Stefan Hajnoczi
On Mon, Jul 4, 2011 at 11:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 4 July 2011 23:00, Raghavendra D Prabhu raghu.prabh...@gmail.com wrote: This is to avoid gcc optimizating out the comparison in assert, due to assumption of signed overflow being undefined by default

Re: [Qemu-devel] [PATCH 3/3] megasas: LSI Megaraid SAS emulation

2011-07-02 Thread Stefan Hajnoczi
On Fri, Jul 1, 2011 at 4:35 PM, Hannes Reinecke h...@suse.de wrote: +static void megasas_mmio_writel(void *opaque, target_phys_addr_t addr, +                                uint32_t val) +{ +    MPTState *s = opaque; +    target_phys_addr_t frame_addr; +    uint32_t frame_count; +    int i;

Re: [PATCH v2 00/31] Implement user mode network for kvm tools

2011-07-01 Thread Stefan Hajnoczi
On Fri, Jul 1, 2011 at 12:38 AM, Asias He asias.he...@gmail.com wrote: On 06/30/2011 04:56 PM, Stefan Hajnoczi wrote: On Thu, Jun 30, 2011 at 9:40 AM, Asias He asias.he...@gmail.com wrote: uip stands for user mode {TCP,UDP}/IP. Currently, uip supports ARP, ICMP, IPV4, UDP, TCP. So any network

Re: [PATCH v2 00/31] Implement user mode network for kvm tools

2011-06-30 Thread Stefan Hajnoczi
On Thu, Jun 30, 2011 at 9:40 AM, Asias He asias.he...@gmail.com wrote: uip stands for user mode {TCP,UDP}/IP. Currently, uip supports ARP, ICMP, IPV4, UDP, TCP. So any network protocols above UDP/TCP should work as well, e.g., HTTP, FTP, SSH, DNS. There is an existing uIP which might cause

Re: KVM call agenda for June 28

2011-06-30 Thread Stefan Hajnoczi
On Wed, Jun 29, 2011 at 4:41 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Wed, Jun 29, 2011 at 11:08:23AM +0100, Stefan Hajnoczi wrote: In the future we could add a 'base' argument to block_stream.  If base is specified then data contained in the base image will not be copied

Re: KVM call agenda for June 28

2011-06-30 Thread Stefan Hajnoczi
On Wed, Jun 29, 2011 at 4:41 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Wed, Jun 29, 2011 at 11:08:23AM +0100, Stefan Hajnoczi wrote:  This can be used to merge data from an intermediate image without merging the base image.  When streaming completes the backing file will be set

Re: virtio scsi host draft specification, v3

2011-06-29 Thread Stefan Hajnoczi
On Wed, Jun 29, 2011 at 9:33 AM, Paolo Bonzini pbonz...@redhat.com wrote: On 06/14/2011 10:39 AM, Hannes Reinecke wrote: If, however, we decide to expose some details about the backend, we could be using the values from the backend directly. EG we could be forwarding the SCSI target port

Re: KVM call agenda for June 28

2011-06-29 Thread Stefan Hajnoczi
On Wed, Jun 29, 2011 at 8:57 AM, Kevin Wolf kw...@redhat.com wrote: Am 28.06.2011 21:41, schrieb Marcelo Tosatti: stream -- 1) base - remote 2) base - remote - local 3) base - local local image is always valid. Requires backing file support. With the above, this restriction wouldn't

Re: KVM call agenda for June 28

2011-06-28 Thread Stefan Hajnoczi
On Mon, Jun 27, 2011 at 3:32 PM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. Live block copy and image streaming: * The differences between Marcelo and Kevin's approaches * Which approach to choose and who can help implement it -- To

Re: KVM call agenda for June 28

2011-06-28 Thread Stefan Hajnoczi
On Tue, Jun 28, 2011 at 8:41 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jun 28, 2011 at 02:38:15PM +0100, Stefan Hajnoczi wrote: On Mon, Jun 27, 2011 at 3:32 PM, Juan Quintela quint...@redhat.com wrote: Please send in any agenda items you are interested in covering. Live block

Re: [PATCH 09/10] exec: remove unused variable

2011-06-26 Thread Stefan Hajnoczi
On Sun, Jun 26, 2011 at 12:08 PM, Michael S. Tsirkin m...@redhat.com wrote: On Tue, Jun 14, 2011 at 08:36:26PM +0300, Michael S. Tsirkin wrote: Signed-off-by: Michael S. Tsirkin m...@redhat.com Any comments on this one? Juan Quintela's exec: last_first_tb was only used in !ONLY_USER case

Re: [RFC] virtio: Support releasing lock during kick

2011-06-24 Thread Stefan Hajnoczi
On Mon, Jun 20, 2011 at 4:27 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Jun 19, 2011 at 8:14 AM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 23, 2010 at 10:24:02PM +0100, Stefan Hajnoczi wrote: The virtio block device holds a lock during I/O request processing. Kicking

Re: [RFC] virtio: Support releasing lock during kick

2011-06-20 Thread Stefan Hajnoczi
On Sun, Jun 19, 2011 at 8:14 AM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 23, 2010 at 10:24:02PM +0100, Stefan Hajnoczi wrote: The virtio block device holds a lock during I/O request processing. Kicking the virtqueue while the lock is held results in long lock hold times

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-16 Thread Stefan Hajnoczi
On Thu, Jun 16, 2011 at 8:24 AM, Ingo Molnar mi...@elte.hu wrote:  - executing AIO in the vcpu thread eats up precious vcpu execution   time: combined QCOW2 throughput would be limited by a single   core's performance, and any time spent on QCOW2 processing would   not be spent running the

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-16 Thread Stefan Hajnoczi
On Fri, Jun 17, 2011 at 2:03 AM, Sasha Levin levinsasha...@gmail.com wrote: On Thu, 2011-06-16 at 17:50 -0500, Anthony Liguori wrote: On 06/16/2011 09:48 AM, Pekka Enberg wrote: On Wed, Jun 15, 2011 at 6:53 PM, Pekka Enbergpenb...@kernel.org  wrote: - Fast QCOW2 image read-write support

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-16 Thread Stefan Hajnoczi
On Thu, Jun 16, 2011 at 3:48 PM, Pekka Enberg penb...@kernel.org wrote: On Wed, Jun 15, 2011 at 6:53 PM, Pekka Enberg penb...@kernel.org wrote: - Fast QCOW2 image read-write support beating Qemu in fio benchmarks. See the  following URL for test result details: https://gist.github.com/1026888

Re: [PATCH 04/10] lsi53c895a: remove unused variables

2011-06-15 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 08:35:44PM +0300, Michael S. Tsirkin wrote: Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/lsi53c895a.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) This one is already in the trivial-patches tree. Stefan -- To unsubscribe from this list:

Re: [ANNOUNCE] Native Linux KVM tool v2

2011-06-15 Thread Stefan Hajnoczi
On Wed, Jun 15, 2011 at 11:04 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 06/15/2011 03:13 PM, Prasad Joshi wrote: On Wed, Jun 15, 2011 at 6:10 PM, Pekka Enbergpenb...@kernel.org  wrote: On Wed, Jun 15, 2011 at 7:30 PM, Avi Kivitya...@redhat.com  wrote: On 06/15/2011 06:53 PM, Pekka

Re: virtio scsi host draft specification, v3

2011-06-14 Thread Stefan Hajnoczi
On Tue, Jun 14, 2011 at 9:39 AM, Hannes Reinecke h...@suse.de wrote: On 06/10/2011 04:35 PM, Paolo Bonzini wrote: If requests are placed on arbitrary queues you'll inevitably run on locking issues to ensure strict request ordering. I would add here: If a device uses more than one queue it

Re: virtio scsi host draft specification, v3

2011-06-10 Thread Stefan Hajnoczi
On Fri, Jun 10, 2011 at 12:33 PM, Rusty Russell ru...@rustcorp.com.au wrote: On Thu, 09 Jun 2011 08:59:27 +0200, Paolo Bonzini pbonz...@redhat.com wrote: On 06/09/2011 01:28 AM, Rusty Russell wrote:  after some preliminary discussion on the QEMU mailing list, I present a  draft

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 2:20 PM, Vivek Goyal vgo...@redhat.com wrote: On Tue, May 31, 2011 at 06:30:09PM -0500, Anthony Liguori wrote: [..] The level of consistency will then depend on whether you overcommit your hardware and how you have it configured. Agreed. Consistency is very hard

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-01 Thread Stefan Hajnoczi
On Wed, Jun 1, 2011 at 10:42 PM, Vivek Goyal vgo...@redhat.com wrote: On Wed, Jun 01, 2011 at 10:15:30PM +0100, Stefan Hajnoczi wrote: One issue that concerns me is how effective iops and throughput are as capping mechanisms.  If you cap throughput then you're likely to affect sequential I/O

Re: [PATCH 1/4] kvm tools: Add ioeventfd support

2011-05-27 Thread Stefan Hajnoczi
On Fri, May 27, 2011 at 11:36 AM, Sasha Levin levinsasha...@gmail.com wrote: ioeventfd is way provided by KVM to receive notifications about reads and writes to PIO and MMIO areas within the guest. Such notifications are usefull if all we need to know is that a specific area of the memory has

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-20 Thread Stefan Hajnoczi
On Fri, May 20, 2011 at 12:47 PM, Steve Kemp st...@bytemark.co.uk wrote: On Fri May 20, 2011 at 12:01:58 +0100, Stefan Hajnoczi wrote:  wget http://mirror.bytemark.co.uk/misc/test-files/500M  while true; do cp 500M foo.img; rm foo.img; sleep 2; done  top shows the virt memory growing

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-20 Thread Stefan Hajnoczi
On Fri, May 20, 2011 at 2:47 PM, Steve Kemp st...@bytemark.co.uk wrote: On Fri May 20, 2011 at 14:16:05 +0100, Stefan Hajnoczi wrote:  I've had a quick read of hw/virtio-blk.c but didn't see anything  glaringly obvious.  I'll need to trace through the code, drink more  coffee, or get lucky

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Stefan Hajnoczi
On Wed, May 18, 2011 at 5:44 PM, Steve Kemp st...@bytemark.co.uk wrote:  I'm running the most recent release of KVM, version 0.14.0  on a host kernel 2.6.32.15, and seem to be able to trigger  a leak of memory pretty easily.  Inside a guest the following one-liner will cause the KVM  

Re: How to diagnose memory leak in kvm-qemu-0.14.0?

2011-05-19 Thread Stefan Hajnoczi
On Thu, May 19, 2011 at 9:40 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, May 18, 2011 at 5:44 PM, Steve Kemp st...@bytemark.co.uk wrote: If you have SystemTap installed you may wish to use the dtrace backend instead of simple.  You can then use SystemTap scripts on the probes

Re: [RFC v1] Add declarations for hierarchical memory region API

2011-05-19 Thread Stefan Hajnoczi
On Thu, May 19, 2011 at 3:12 PM, Avi Kivity a...@redhat.com wrote: +struct MemoryRegion { +    /* All fields are private - violators will be prosecuted */ +    const MemoryRegionOps *ops; +    MemoryRegion *parent; In the case where a region is aliased (mapped twice into the address space at

Re: snapmirror functionality using qcow2 and rsync?

2011-05-15 Thread Stefan Hajnoczi
On Sun, May 15, 2011 at 1:16 PM, Fred van Zwieten fvzwie...@gmail.com wrote: Background: NetApp Snashot functionality gives you application consistent snapshots of data. Just inform the app a snapshot is about to be made, depending on the app, it needs to go in to some sort of backup mode, of

Re: Trouble adding kvm clock trace to qemu-kvm

2011-05-09 Thread Stefan Hajnoczi
On Sat, Apr 30, 2011 at 6:00 PM, Chris Thompson cth...@cs.umn.edu wrote: I'm trying to add a trace to qemu-kvm that will log the value of the vcpu's clock when a specific interrupt gets pushed. I'm working with qemu-kvm-0.14.0 on the 2.6.32-31 kernel. I've added the following to

Re: [PATCH 07/18] virtio ring: inline function to check for events

2011-05-05 Thread Stefan Hajnoczi
On Wed, May 4, 2011 at 9:51 PM, Michael S. Tsirkin m...@redhat.com wrote: With the new used_event and avail_event and features, both host and guest need similar logic to check whether events are enabled, so it helps to put the common code in the header. Note that Xen has similar logic for

Re: A Live Backup feature for KVM

2011-04-25 Thread Stefan Hajnoczi
On Mon, Apr 25, 2011 at 9:16 AM, Jagane Sundar jag...@sundar.org wrote: The direction that I chose to go is slightly different. In both of the proposals you pointed me at, the original virtual disk is made read-only and the VM writes to a different COW file. After backup of the original

Re: [Qemu-devel] What's the difference between commands qemu, kvm, and qemu-kvm?

2011-04-24 Thread Stefan Hajnoczi
On Sun, Apr 24, 2011 at 12:38 AM, Ryan Wang openspace.w...@gmail.com wrote: I read some writings on the qemu, and found some demo examples use the command qemu, some use kvm, and some mention the qemu-kvm? I wonder are there any difference between these commands? Or they just point to the

Re: A Live Backup feature for KVM

2011-04-24 Thread Stefan Hajnoczi
On Sun, Apr 24, 2011 at 12:17 AM, Jagane Sundar jag...@sundar.org wrote: I would like to get your input on a KVM feature that I am currently developing. What it does is this - it can perform full and incremental disk backups of running KVM VMs, where a backup is defined as a snapshot of the

Re: [Qemu-devel] Is there any qemu-monitor commands like virsh list ?

2011-04-23 Thread Stefan Hajnoczi
On Sat, Apr 23, 2011 at 1:08 PM, Ryan Wang openspace.w...@gmail.com wrote: I'm a newbie to qemu/kvm and reading some docs on them. I've learned some 'virsh' commands. Now I want to know is there any qemu-monitor commands like 'virsh list'? Or if I want to list current VMs on my host, I have

Re: performance of virtual functions compared to virtio

2011-04-21 Thread Stefan Hajnoczi
On Thu, Apr 21, 2011 at 9:07 AM, Avi Kivity a...@redhat.com wrote: Note I think in both cases we can make significant improvements: - for VFs, steer device interrupts to the cpus which run the vcpus that will receive the interrupts eventually (ISTR some work about this, but not sure) - for

Enhancing qemu-img convert format compatibility

2011-04-18 Thread Stefan Hajnoczi
qemu-img is a pretty good Rosetta stone for image formats but it is missing support some format versions. In order to bring qemu-img up-to-date with the latest disk image formats we will need to find specific image files and/or software versions that produce image files that qemu-img cannot

Re: [Qemu-devel] Enhancing qemu-img convert format compatibility

2011-04-18 Thread Stefan Hajnoczi
On Mon, Apr 18, 2011 at 12:03 PM, Richard W.M. Jones rjo...@redhat.com wrote: On Mon, Apr 18, 2011 at 11:18:42AM +0100, Stefan Hajnoczi wrote: qemu-img is a pretty good Rosetta stone for image formats but it is missing support some format versions.  In order to bring qemu-img up-to-date

Re: Why QCOW1? (was: [PATCH v2] kvm tool: add QCOW verions 1 read/write support)

2011-04-15 Thread Stefan Hajnoczi
On Fri, Apr 15, 2011 at 7:45 AM, Pekka Enberg penb...@kernel.org wrote: On Fri, Apr 15, 2011 at 9:41 AM, Markus Armbruster arm...@redhat.com wrote: What hasn't been discussed much is the other half of Kevin's remark: why QCOW1? QCOW1 was simpler to implement as the first non-raw image format.

Re: Why QCOW1? (was: [PATCH v2] kvm tool: add QCOW verions 1 read/write support)

2011-04-15 Thread Stefan Hajnoczi
On Fri, Apr 15, 2011 at 12:17 PM, Pekka Enberg penb...@kernel.org wrote: On Fri, Apr 15, 2011 at 1:14 PM, Stefan Hajnoczi stefa...@gmail.com wrote: Why even use a non-raw image format?  The current implementation only does sparse files, but POSIX sparse raw files gives you the same feature

Re: [PATCH v2] kvm tool: add QCOW verions 1 read/write support

2011-04-14 Thread Stefan Hajnoczi
On Thu, Apr 14, 2011 at 11:26:07AM +0200, Markus Armbruster wrote: Kevin Wolf kw...@redhat.com writes: Am 14.04.2011 10:32, schrieb Pekka Enberg: Hi Kevin! Am 14.04.2011 10:21, schrieb Pekka Enberg: On Thu, Apr 14, 2011 at 11:02 AM, Kevin Wolf kw...@redhat.com wrote: Have you

Re: Asynchronous interruption of a compute-intensive guest

2011-04-13 Thread Stefan Hajnoczi
On Wed, Apr 13, 2011 at 1:09 AM, Tommaso Cucinotta tommaso.cucino...@sssup.it wrote: I'd like to intercept from the host the exact times at which an incoming network packet directed to a guest VM: a) is delivered from the host OS to the KVM process; b) is delivered to the CPU thread of the KVM

Re: [transparent networking] Re: [PATCH] kvm tools: Implement virtio network device

2011-04-13 Thread Stefan Hajnoczi
On Wed, Apr 13, 2011 at 2:02 PM, Ingo Molnar mi...@elte.hu wrote: Strictly talking the guest does not need ICMP packets to have working Internet connectivity - only passing/tunneling through TCP sockets would be enough. Don't forget UDP for DNS. Stefan -- To unsubscribe from this list: send

Re: [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-12 Thread Stefan Hajnoczi
On Tue, Apr 12, 2011 at 1:18 AM, Josh Durgin josh.dur...@dreamhost.com wrote: On 04/08/2011 01:43 AM, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh Durgin wrote: librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code

Re: qemu-kvm monitor

2011-04-12 Thread Stefan Hajnoczi
On Tue, Apr 12, 2011 at 12:26 PM, Onkar Mahajan kern.de...@gmail.com wrote: Hi All, I have following command line options to qemu-kvm ( apart from others - irrelevant here !! ) -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm00-SMP.monitor,server,nowait -mon

Re: [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-12 Thread Stefan Hajnoczi
On Tue, Apr 12, 2011 at 4:38 PM, Sage Weil s...@newdream.net wrote: On Tue, 12 Apr 2011, Stefan Hajnoczi wrote: On Tue, Apr 12, 2011 at 1:18 AM, Josh Durgin josh.dur...@dreamhost.com wrote: On 04/08/2011 01:43 AM, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh

Re: EuroSec'11 Presentation

2011-04-11 Thread Stefan Hajnoczi
On Sun, Apr 10, 2011 at 4:19 PM, Kuniyasu Suzaki k.suz...@aist.go.jp wrote: From: Avi Kivity a...@redhat.com Subject: Re: EuroSec'11 Presentation Date: Sun, 10 Apr 2011 17:49:52 +0300 On 04/10/2011 05:23 PM, Kuniyasu Suzaki wrote: Dear, I made a presentation about memory disclosure

Re: EuroSec'11 Presentation

2011-04-11 Thread Stefan Hajnoczi
On Mon, Apr 11, 2011 at 4:27 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 04/11/2011 03:51 AM, Stefan Hajnoczi wrote: I'm happy to hear your comments. The referee's comment was severe. It said there was not brand-new point, but there are real attack experiences.  My paper was just

Re: Slow PXE boot in qemu.git (fast in qemu-kvm.git)

2011-04-09 Thread Stefan Hajnoczi
On Sat, Apr 9, 2011 at 1:50 AM, Anthony Liguori anth...@codemonkey.ws wrote: On 04/08/2011 06:25 PM, Luiz Capitulino wrote: Hi there, Summary:  - PXE boot in qemu.git (HEAD f124a41) is quite slow, more than 5 minutes. Got    the problem with e1000, virtio and rtl8139. However, pcnet

Re: [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-08 Thread Stefan Hajnoczi
On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh Durgin wrote: librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Signed-off-by: Josh Durgin

Re: [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-08 Thread Stefan Hajnoczi
On Fri, Apr 8, 2011 at 9:43 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh Durgin wrote: librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd

Re: [Qemu-devel] KVM call minutes for Apr 5

2011-04-08 Thread Stefan Hajnoczi
On Fri, Apr 08, 2011 at 09:58:22AM -0300, Lucas Meneghel Rodrigues wrote: On Thu, 2011-04-07 at 11:03 +0100, Stefan Hajnoczi wrote: On Tue, Apr 5, 2011 at 6:37 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: Perhaps kvm-autotest is a good platform for the automated testing of ARM

Re: trace-cmd errors on kvm events

2011-04-08 Thread Stefan Hajnoczi
On Fri, Apr 8, 2011 at 7:53 PM, David Ahern dsah...@gmail.com wrote: 2.6.38.2 kernel with trace-cmd git pulled this morning: trace-cmd record -e kvm trace-cmd report 21 | less trace-cmd: No such file or directory  function ftrace_print_symbols_seq not defined  failed to read event print

Re: [PATCH v2 2/2] rbd: allow configuration of rados from the rbd filename

2011-04-07 Thread Stefan Hajnoczi
On Thu, Apr 07, 2011 at 10:14:03AM +0900, Yoshiaki Tamura wrote: 2011/3/29 Josh Durgin josh.dur...@dreamhost.com: The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or conf. The conf

Re: [Qemu-devel] KVM call minutes for Apr 5

2011-04-07 Thread Stefan Hajnoczi
On Tue, Apr 5, 2011 at 6:37 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: Thanks for your detailed response! On Tue, 2011-04-05 at 16:29 +0100, Stefan Hajnoczi wrote: * Public notifications of breakage, qemu.git/master failures to qemu-devel mailing list. ^ The challenge is to get

Re: [Qemu-devel] KVM call minutes for Apr 5

2011-04-05 Thread Stefan Hajnoczi
On Tue, Apr 5, 2011 at 4:07 PM, Chris Wright chr...@redhat.com wrote: kvm-autotest - roadmap...refactor to centralize testing (handle the xen-autotest split off) - internally at RH, lmr and cleber maintain autotest server to test  branches (testing qemu.git daily)  - have good automation for

Re: 2.6.32.x guest dies when trying to run tcpdump

2011-04-02 Thread Stefan Hajnoczi
On Sat, Apr 2, 2011 at 4:23 PM, Nikola Ciprich extmaill...@linuxbox.cz wrote: I'm using virtio network channel, and on one of the guests (the one with aborted ext4) I use it also for one of virtual disks. One more interesting thing, I can't reproduce this immediately after guest boot, but

Re: [PATCH] KVM: Automatic user feedback

2011-04-01 Thread Stefan Hajnoczi
On Fri, Apr 1, 2011 at 9:33 AM, Alexander Graf ag...@suse.de wrote: We're constantly developing and improving KVM, implementing new awesome features or simply fixing bugs in the existing code. But do people actually use that new code? Are we maybe writing it all in vain? Wouldn't it be nice

Re: virtio-blk.c handling of i/o which is not a 512 multiple

2011-03-30 Thread Stefan Hajnoczi
On Wed, Mar 30, 2011 at 9:15 AM, Conor Murphy conor_murphy_v...@hotmail.com wrote: I'm trying to write a virtio-blk driver for Solaris. I've gotten it to the point where Solaris can see the device and create a ZFS file system on it. However when I try and create a UFS filesystem on the

Re: [PATCH 1/2] rbd: use the higher level librbd instead of just librados

2011-03-28 Thread Stefan Hajnoczi
On Thu, Mar 24, 2011 at 03:51:36PM -0700, Josh Durgin wrote: You have sent a malformed patch. Please send patches that follow the guidelines at http://wiki.qemu.org/Contribute/SubmitAPatch and test that your mail client is not line wrapping or mangling whitespace. Stefan -- To unsubscribe from

Re: qemu-kvm crash with

2011-03-25 Thread Stefan Hajnoczi
On Thu, Mar 24, 2011 at 1:38 PM, Conor Murphy conor_murphy_v...@hotmail.com wrote: #4  _int_free (av=value optimized out, p=0x7fa24c0009f0, have_lock=0) at malloc.c:4795 #5  0x004a18fe in qemu_vfree (ptr=0x7fa24c000a00) at oslib-posix.c:76 #6  0x0045af3d in handle_aiocb_rw

Re: KVM lock contention on 48 core AMD machine

2011-03-18 Thread Stefan Hajnoczi
On Fri, Mar 18, 2011 at 12:02 PM, Ben Nagy b...@iagu.net wrote: KVM commandline (using libvirt): LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/local/bin/kvm-snapshot -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name

Re: Virtual SCSI disks hangs on heavy IO

2011-03-18 Thread Stefan Hajnoczi
On Fri, Mar 18, 2011 at 4:06 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Wednesday 16 March 2011 schrieb Stefan Hajnoczi: On Tue, Mar 15, 2011 at 1:20 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Tuesday 15 March 2011 schrieben Sie: On Mon, Mar 14, 2011 at 10

Re: Virtual SCSI disks hangs on heavy IO

2011-03-15 Thread Stefan Hajnoczi
On Mon, Mar 14, 2011 at 10:57 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: On Monday 14 March 2011 20:32:23 Stefan Hajnoczi wrote: On Mon, Mar 14, 2011 at 6:05 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Does anybody have an idea what might cause this or what might

Re: Virtual SCSI disks hangs on heavy IO

2011-03-15 Thread Stefan Hajnoczi
On Tue, Mar 15, 2011 at 7:47 AM, Alexander Graf ag...@suse.de wrote: On 15.03.2011, at 08:09, Stefan Hajnoczi wrote: On Mon, Mar 14, 2011 at 10:57 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: On Monday 14 March 2011 20:32:23 Stefan Hajnoczi wrote: On Mon, Mar 14, 2011 at 6:05 PM

Re: Virtual SCSI disks hangs on heavy IO

2011-03-15 Thread Stefan Hajnoczi
On Tue, Mar 15, 2011 at 9:16 AM, Alexander Graf ag...@suse.de wrote: On 15.03.2011, at 10:03, Stefan Hajnoczi wrote: On Tue, Mar 15, 2011 at 7:47 AM, Alexander Graf ag...@suse.de wrote: On 15.03.2011, at 08:09, Stefan Hajnoczi wrote: On Mon, Mar 14, 2011 at 10:57 PM, Guido Winkelmann

Re: Virtual SCSI disks hangs on heavy IO

2011-03-14 Thread Stefan Hajnoczi
On Mon, Mar 14, 2011 at 6:05 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Does anybody have an idea what might cause this or what might be done about it? The lsi_scsi emulation code is incomplete. It does not handle some situations like the ORDERED commands or message 0x0c. There

Re: [PATCH] kvm: ppc: Fix breakage of kvm_arch_pre_run/process_irqchip_events

2011-03-10 Thread Stefan Hajnoczi
On Fri, Mar 11, 2011 at 5:55 AM, Alexander Graf ag...@suse.de wrote: On 17.02.2011, at 22:01, Jan Kiszka wrote: On 2011-02-07 12:19, Jan Kiszka wrote: We do not check them, and the only arch with non-empty implementations always returns 0 (this is also true for qemu-kvm). Signed-off-by:

Re: [PATCH] vnc: threaded server depends on io-thread

2011-03-09 Thread Stefan Hajnoczi
On Wed, Mar 9, 2011 at 10:57 AM, Corentin Chary corentin.ch...@gmail.com wrote: The threaded VNC servers messed up with QEMU fd handlers without any kind of locking, and that can cause some nasty race conditions. The IO-Thread provides appropriate locking primitives to avoid that. This patch

Re: default elevator=noop for virtio block devices?

2011-03-09 Thread Stefan Hajnoczi
On Wed, Mar 9, 2011 at 10:01 AM, Avi Kivity a...@redhat.com wrote: On 03/09/2011 11:42 AM, Harald Dunkel wrote: Hi folks, would it make sense to make elevator=noop the default for virtio block devices? Or would you recommend to set this on the kvm server instead? I think leaving the

Re: [Qemu-devel] KVM call minutes for Mar 8

2011-03-08 Thread Stefan Hajnoczi
On Tue, Mar 8, 2011 at 4:00 PM, Anthony Liguori anth...@codemonkey.ws wrote: http://wiki.qemu.org/Features/QAPI/VirtAgent That page does not exist. I think you meant this one: http://wiki.qemu.org/Features/QAPI/GuestAgent Stefan -- To unsubscribe from this list: send the line unsubscribe kvm

Re: Degraded performance with Windows 2008 R2 with applications

2011-03-07 Thread Stefan Hajnoczi
On Sun, Mar 6, 2011 at 10:25 PM, Mathias Klette mkle...@gmail.com wrote: I've tested with iozone to compare IO with a linux guest and also to verify changes made to improve situation - but nothing really helped. TESTS with iozone -s 4G -r 256k -c -e: Please use the -I option to bypass the

Re: problem about blocked monitor when disk image on NFS can not be reached.

2011-03-02 Thread Stefan Hajnoczi
On Wed, Mar 2, 2011 at 10:39 AM, ya su suya94...@gmail.com wrote: io_thread bt as the following: #0  0x7f3086eaa034 in __lll_lock_wait () from /lib64/libpthread.so.0 #1  0x7f3086ea5345 in _L_lock_870 () from /lib64/libpthread.so.0 #2  0x7f3086ea5217 in pthread_mutex_lock () from

Re: Poor disk IO performance from Windows 2003 guest

2011-03-02 Thread Stefan Hajnoczi
On Wed, Mar 2, 2011 at 10:30 AM, Kevin Clark kevin.cl...@csoft.co.uk wrote: The results are much better, with 64MB writes on the system drive coming in at 39MB/s and reads 310MB/s.  The second drive gives me 94MB/s for writes and 777MB/s for reads for a 64MB file.  Again, that's wildy

Re: problem about blocked monitor when disk image on NFS can not be reached.

2011-03-01 Thread Stefan Hajnoczi
On Tue, Mar 1, 2011 at 5:01 AM, ya su suya94...@gmail.com wrote:   kvm start with disk image on nfs server, when nfs server can not be reached, monitor will be blocked. I change io_thread to SCHED_RR policy, it will work unfluently waiting for disk read/write timeout. There are some

Re: Poor disk IO performance from Windows 2003 guest

2011-03-01 Thread Stefan Hajnoczi
On Tue, Mar 1, 2011 at 10:23 AM, Kevin Clark kevin.cl...@csoft.co.uk wrote: Any thoughts/ideas? There are a lot of variables here. Are you using virtio-blk devices and Windows guest drivers? Are you using hardware RAID5 on the NFS server? Could it be a network issue (contention during

Re: problem about blocked monitor when disk image on NFS can not be reached.

2011-03-01 Thread Stefan Hajnoczi
On Tue, Mar 1, 2011 at 12:39 PM, ya su suya94...@gmail.com wrote:    how about to remove kvm_handle_io/handle_mmio in kvm_run function into kvm_main_loop, as these operation belong to io operation, this will remove the qemu_mutux between the 2 threads. is this an reasonable thought?    In

Re: [PATCH v3 uq/master 05/22] add win32 qemu-thread implementation

2011-02-28 Thread Stefan Hajnoczi
On Mon, Feb 28, 2011 at 9:10 AM, Paolo Bonzini pbonz...@redhat.com wrote: +static unsigned __stdcall win32_start_routine(void *arg) +{ +    struct QemuThreadData data = *(struct QemuThreadData *) arg; +    QemuThread *thread = data.thread; + +    free(arg); qemu_free(arg); Stefan -- To

Re: RFH: Windos 7 64 + VirtIO stalls during installation / crashed with qcow2

2011-02-17 Thread Stefan Hajnoczi
On Thu, Feb 17, 2011 at 10:44 AM, Philipp Hahn h...@univention.de wrote: Hello, I tried to install Windows 7 Professional 64 Bit with VirtIO 1.16 on an Debian based system using AMD64 CPUs. During the install, the system froze (progress bar didn't advance) and kvm was slowly eating CPU cycles

Re: RFH: Windos 7 64 + VirtIO stalls during installation / crashed with qcow2

2011-02-17 Thread Stefan Hajnoczi
On Thu, Feb 17, 2011 at 12:45 PM, Vadim Rozenfeld vroze...@redhat.com wrote: On Thu, 2011-02-17 at 13:41 +0200, Gleb Natapov wrote: On Thu, Feb 17, 2011 at 11:30:25AM +, Stefan Hajnoczi wrote: On Thu, Feb 17, 2011 at 10:44 AM, Philipp Hahn h...@univention.de wrote: Hello, I tried

<    2   3   4   5   6   7   8   9   >