[Qemu-devel] [PATCH V14 0/5] VMXNET3 paravirtual NIC device implementation

2013-03-09 Thread Dmitry Fleytman
This set of patches implements VMWare VMXNET3 paravirtual NIC device. The device supports of all the device features including offload capabilties, VLANs and etc. The device is tested on different OSes: Fedora 15 Ubuntu 10.4 Centos 6.2 Windows 2008R2 Windows 2008 64bit

[Qemu-devel] [PATCH V14 1/5] Checksum-related utility functions

2013-03-09 Thread Dmitry Fleytman
net_checksum_add_cont() checksum calculation for scattered data with odd chunk sizes net_raw_checksum() checksum calculation for a buffer Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com --- include/net/checksum.h | 14 +- net/checksum.c

[Qemu-devel] [PATCH V14 3/5] Common definitions for VMWARE devices

2013-03-09 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com --- hw/vmware_utils.h | 143 ++ hw/vmxnet_debug.h | 115 ++ include/net/eth.h | 347 ++ net/Makefile.objs | 1 +

[Qemu-devel] [PATCH V14 4/5] Packet abstraction for VMWARE network devices

2013-03-09 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com --- hw/Makefile.objs | 1 + hw/vmxnet_rx_pkt.c | 187 ++ hw/vmxnet_rx_pkt.h | 174 hw/vmxnet_tx_pkt.c | 567 +

[Qemu-devel] [PATCH V14 2/5] net: iovec checksum calculator

2013-03-09 Thread Dmitry Fleytman
Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com --- include/net/checksum.h | 12 net/checksum.c | 29 + 2 files changed, 41 insertions(+) diff --git a/include/net/checksum.h b/include/net/checksum.h

Re: [Qemu-devel] [PATCH 1/7] block: only force IO completion in .bdrv_truncate if we are shrinking

2013-03-09 Thread Peter Lieven
Am 08.03.2013 12:56, schrieb Kevin Wolf: Am 08.03.2013 um 12:46 hat Peter Lieven geschrieben: Am 08.03.2013 um 10:35 schrieb Kevin Wolf kw...@redhat.com: Am 08.03.2013 um 10:23 hat Paolo Bonzini geschrieben: Il 08/03/2013 08:53, Peter Lieven ha scritto: I think the fix is to only call it

Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions

2013-03-09 Thread Blue Swirl
On Thu, Mar 7, 2013 at 2:26 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 7 March 2013 10:00, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Not 100% accurate. My goal here it to control (or wrap) only guest accesses, in the first instance via the Memory API, but other forms of

Re: [Qemu-devel] [PATCHv3 2/2] bridge helper: support conf dirs

2013-03-09 Thread Blue Swirl
On Thu, Mar 7, 2013 at 6:32 AM, Doug Goldstein car...@cardoe.com wrote: Allow the bridge helper to take a config directory rather than having to specify every file in the directory manually via an include statement. Signed-off-by: Doug Goldstein car...@cardoe.com CC: Anthony Liguori

[Qemu-devel] [PATCH 1/2] baum: fix build

2013-03-09 Thread Blue Swirl
08744c98115cfa144ed3493556024e400b2e2573 removed hw/baum.h but did not adjust hw/baum.c, breaking build. Fix. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/baum.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/baum.c b/hw/baum.c index d75b150..d8919d5 100644

[Qemu-devel] [PATCH 2/2] qemu-char: fix win32 build

2013-03-09 Thread Blue Swirl
96c6384776d631839a9c8fe02bf135f9ba22586c did not adjust Win32 #ifdeffery properly, breaking build in later commits. Fix. Signed-off-by: Blue Swirl blauwir...@gmail.com --- qemu-char.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH] hw/baum.c: fix build error about baum.h

2013-03-09 Thread Hu Tao
commit 08744c98115cfa144ed3493556024e400b2e2573 removes baum.h, but baum.c still includes it. Remove it from baum.c. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/baum.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/baum.c b/hw/baum.c index d75b150..d8919d5

[Qemu-devel] [with today's upstream git] Invoking QMP via telnet fails to start VNC

2013-03-09 Thread Kashyap Chamarthy
Heya, After building qemu, I tried to invoke QMP by via telnet: Build: == #./configure --target-list=x86_64-softmmu --disable-werror --enable-debug ; make -j5 == Invoke QMP: == kashyap@qemu$ ./x86_64-softmmu/qemu-system-x86_64 --enable-kvm -smp 2 -m 2048

Re: [Qemu-devel] [PULL 00/18] hw/ reorganization, part 1

2013-03-09 Thread Paolo Bonzini
Il 05/03/2013 18:17, Paolo Bonzini ha scritto: This includes the mechanical changes, as well as moving stuff out of hw/. Boards and devices referencing CPU are moved to per-arch subdirectories. This part was uncontroversial, and I have already posted it separately in this exact shape. The

Re: [Qemu-devel] [PATCH 0/7] linux-user updates

2013-03-09 Thread Peter Maydell
On 7 March 2013 18:21, riku.voi...@linaro.org wrote: From: Riku Voipio riku.voi...@linaro.org I did a dig through the archive for linux-user patches that have slipped through during my inactivity. The ones in this patchset appear good and pass smoketest. These are the linux-user patches I've

Re: [Qemu-devel] [PULL 00/66] ppc patch queue 2013-03-08

2013-03-09 Thread Blue Swirl
On Fri, Mar 8, 2013 at 8:06 PM, Alexander Graf ag...@suse.de wrote: Hi Blue / Aurelien, This is my current patch queue for ppc. Please pull. Thanks, pulled. Alex The following changes since commit 0bc472a9d6b80567c212023c5eae413f4dfb53ad: Kuo-Jung Su (1): hw/nand.c: correct

Re: [Qemu-devel] [PULL 0/5] s390 patch queue 2013-03-08

2013-03-09 Thread Blue Swirl
On Fri, Mar 8, 2013 at 8:17 PM, Alexander Graf ag...@suse.de wrote: Hi Blue / Aurelien, This is my current patch queue for s390. Please pull. Thanks, pulled. Alex The following changes since commit 0bc472a9d6b80567c212023c5eae413f4dfb53ad: Kuo-Jung Su (1): hw/nand.c: correct

Re: [Qemu-devel] [PATCH 0/3] make_device_config.sh fixes

2013-03-09 Thread Blue Swirl
Thanks, applied all. On Thu, Feb 21, 2013 at 3:26 PM, Andreas Färber afaer...@suse.de wrote: Hello, A long-standing patch of mine, applied for 1.4, attempted to fix dependency issues observed when adding MegaSAS emulation to pci.mak. As it turns out that patch was wrong. This mini-series

Re: [Qemu-devel] [PATCH V8 01/20] build: add block/snapshot.c

2013-03-09 Thread Eric Blake
On 03/08/2013 09:00 PM, Wenchao Xia wrote: On 03/06/2013 11:07 PM, Wenchao Xia wrote: This file will have internal snapshot related functions. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- --- /dev/null +++ b/include/block/snapshot.h @@ -0,0 +1,4 @@ +#ifndef SNAPSHOT_H

[Qemu-devel] [PATCH v9 0/4] Moxie CPU port

2013-03-09 Thread Anthony Green
This version of the patch implements 3 changes... 1. Blue's suggestion of lazy CC calculation, dramatically simplifying the branching code. 2. Blue's suggestion of turning brk instruction into an exception. 3. Richard's div helper cpu_restore_state suggestion. Please consider merging this

[Qemu-devel] [PATCH v9 2/4] Add moxie disassembler

2013-03-09 Thread Anthony Green
Signed-off-by: Anthony Green gr...@moxielogic.com --- disas.c | 6 + disas/Makefile.objs | 1 + disas/moxie.c | 360 include/disas/bfd.h | 2 + 4 files changed, 369 insertions(+) create mode 100644 disas/moxie.c diff

[Qemu-devel] [PATCH v9 1/4] Add moxie target code

2013-03-09 Thread Anthony Green
Signed-off-by: Anthony Green gr...@moxielogic.com --- target-moxie/Makefile.objs | 2 + target-moxie/cpu.c | 172 + target-moxie/cpu.h | 169 + target-moxie/helper.c | 171 + target-moxie/helper.h | 10 + target-moxie/machine.c | 28 ++

[Qemu-devel] [PATCH v9 3/4] Add sample moxie system

2013-03-09 Thread Anthony Green
Signed-off-by: Anthony Green gr...@moxielogic.com --- hw/moxie/Makefile.objs | 6 ++ hw/moxie/moxiesim.c| 174 + include/sysemu/arch_init.h | 1 + 3 files changed, 181 insertions(+) create mode 100644 hw/moxie/Makefile.objs create

[Qemu-devel] [PATCH v9 4/4] Add top level changes for moxie

2013-03-09 Thread Anthony Green
Signed-off-by: Anthony Green gr...@moxielogic.com --- MAINTAINERS | 5 + arch_init.c | 2 ++ configure | 9 - cpu-exec.c| 2 ++ default-configs/moxie-softmmu.mak | 2 ++ qapi-schema.json

Re: [Qemu-devel] [PATCH v4 3/6] add backup related monitor commands

2013-03-09 Thread Dietmar Maurer
For these reasons, I'm against putting backup archive code into QEMU. That is OK for me - I already maintain the code outside of qemu. Does this mean you will keep this patch series out-of-tree? You are 'against putting backup archive code into QEMU', so I need to maintain it

Re: [Qemu-devel] [PATCH] tcg: Don't make exitreq flag a local temporary

2013-03-09 Thread Aurelien Jarno
On Tue, Mar 05, 2013 at 08:54:41AM -0800, Richard Henderson wrote: The value is not actually live across basic blocks, so there's no need for the local property. This eliminates storing the temporary to its home location at the branch. Cc: Peter Maydell peter.mayd...@linaro.org

Re: [Qemu-devel] [PATCH v9 1/4] Add moxie target code

2013-03-09 Thread Blue Swirl
On Sat, Mar 9, 2013 at 1:34 PM, Anthony Green gr...@moxielogic.com wrote: Signed-off-by: Anthony Green gr...@moxielogic.com --- target-moxie/Makefile.objs | 2 + target-moxie/cpu.c | 172 + target-moxie/cpu.h | 169 + target-moxie/helper.c | 171

[Qemu-devel] [RFC 1/8] block: add virtual_size to query-block QMP output

2013-03-09 Thread Stefan Hajnoczi
There is currently no way to query the size of a drive. Add a 'virtual_size' field to the 'query-block' QMP output. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block.c | 1 + qapi-schema.json | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/block.c

[Qemu-devel] [RFC 0/8] block: Live backup prototype

2013-03-09 Thread Stefan Hajnoczi
Dietmar Maurer's recent Efficient VM backup for qemu patch series has spawned a lot of discussion. I'm afraid we are close to an impasse so I decided to prototype the approach that I'm advocating - just make sure it actually works :). This series implements vmstate and disk backup for running

[Qemu-devel] [RFC 7/8] Add vma-writer.py tool

2013-03-09 Thread Stefan Hajnoczi
The VMA writer bundles vmstate and disk backups into a backup archive file. It is normally invoked by a management tool like this: vma-writer.py --incoming /tmp/migrate.sock \ --nbd /tmp/nbd.sock \ --drive name=drive0,size=10737418240 \ --drive

[Qemu-devel] [RFC 3/8] backup: write to BlockDriverState instead of BackupDumpFunc

2013-03-09 Thread Stefan Hajnoczi
Remove the BackupDumpFunc function pointer and write directly to a BlockDriverState. This allows the 'backup' command to copy out into a fresh qcow2 or raw image. If no built-in image format is suitable, use NBD to export the data to an external process. A few other things in this commit: *

[Qemu-devel] [RFC 2/8] add basic backup support to block driver

2013-03-09 Thread Stefan Hajnoczi
From: Dietmar Maurer diet...@proxmox.com Function backup_job_create() creates a block job to backup a block device. The coroutine is started with backup_job_start(). We call backup_do_cow() for each write during backup. That function reads the original data and pass it to backup_dump_cb(). The

[Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-09 Thread Stefan Hajnoczi
@block-backup Start a point-in-time copy of a block device to a new destination. @device: the name of the device whose writes should be mirrored. @target: the target of the new image. If the file exists, or if it is a device, the existing file/device will be used as the new

[Qemu-devel] [RFC 5/8] Add nbd server Python module

2013-03-09 Thread Stefan Hajnoczi
The nbd module works like this: server = nbd.Server(sock) server.add_export('drive0', handler0) server.add_export('drive1', handler1) server.run() The user must provide a handler object which defines the behavior of an export: class MyNBDHandler(nbd.ExportHandler): def

[Qemu-devel] [RFC 6/8] Add VMA backup archive writer Python module

2013-03-09 Thread Stefan Hajnoczi
The vma module provides an interface for writing VMA backup archives: writer = vma.Writer(open('test.vma', 'wb)) writer.add_config('guest.xml', 'guest/guest') stream_id = writer.add_stream('foo', # name 65536) # size writer.write(stream_id, 0, '\0' *

[Qemu-devel] [RFC 8/8] Add backup.py tool

2013-03-09 Thread Stefan Hajnoczi
The backup.py tool connects to a running guest's QMP monitor and orchestrates a live backup. To invoke a backup: qemu -qmp unix:/tmp/monitor.sock,server,nowait ... backup.py /tmp/monitor.sock backup-20130301.vma The script uses vma-writer.py to bundle vmstate and disk backups into a single

[Qemu-devel] [Bug 583296] Re: I/O errors with qemu-nbd/qcow2

2013-03-09 Thread Shehbaz Jaffer
Hi, I tried this with qemu-img version 1.0, Ubuntu 12.04 host and gentoo guest, with qcow2 disk image. This seems to work fine. Perhaps it was fixed in the new qemu-img versions. shehbaz@BLAckArrOw:~$sudo dd if=/dev/nbd0 of=/dev/null bs=1M 8192+0 records in 8192+0 records out 8589934592 bytes

Re: [Qemu-devel] [PATCH v4 3/6] add backup related monitor commands

2013-03-09 Thread Stefan Hajnoczi
On Fri, Mar 8, 2013 at 6:44 PM, Dietmar Maurer diet...@proxmox.com wrote: This is a strong indicator that the backup archive code should live outside QEMU. I doesn't make sense for proxmox, oVirt, OpenStack, and others to each maintain their backup archive code inside qemu.git,