[Qemu-devel] Re: [PATCH] Fix vhost_net compilation errors for i386-softmmu target

2010-09-21 Thread Michal Novotny
On 09/20/2010 07:53 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 11:36:58AM +0200, Michal Novotny wrote: Hi, there were compilation errors when I was trying to compile i386-softmmu target on i386 host (running on Fedora-13 with development version of qemu downloaded from git).

[Qemu-devel] Re: [PATCH] Make NIC model fallback to default when specified model is not supported

2010-09-21 Thread Michal Novotny
On 09/20/2010 07:58 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 11:47:59AM +0200, Michal Novotny wrote: Hi, this is the patch to introduce a NIC model fallback to default when model specified is not supported. It's been tested on i386-softmmu target on i386 host using the Windows

[Qemu-devel] Re: Win2k host problem with {get, free}{addr, name}info()

2010-09-21 Thread Paolo Bonzini
Does gnulib have a similar replacement function? Very similar, in fact that must be the source. The nice thing about gnulib is that in the long term, we could potentially use gnulib for compatibility and make sure to get updated code. One problem is that the current versions use GPLv3.

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Kevin Wolf
Am 21.09.2010 02:18, schrieb Anthony Liguori: On 09/20/2010 06:17 PM, Christoph Hellwig wrote: On Mon, Sep 20, 2010 at 03:11:31PM -0500, Anthony Liguori wrote: All read and write requests SHOULD avoid any type of caching in the host. Any write request MUST complete after the next level

[Qemu-devel] [PATCH 1/2] qemu-virto9p: Implement TLOCK

2010-09-21 Thread M. Mohan Kumar
Synopsis size[4] TLock tag[2] fid[4] flock[n] size[4] RLock tag[2] status[1] Description Tlock is used to acquire/release byte range posix locks on a file identified by given fid. The reply contains status of the lock request flock structure: type[1] - Type of lock:

[Qemu-devel] [PATCH 2/2] qemu-virtio9p: Implement TGETLOCK

2010-09-21 Thread M. Mohan Kumar
Synopsis size[4] TGetlock tag[2] fid[4] getlock[n] size[4] RGetlock tag[2] getlock[n] Description TGetlock is used to test for the existence of byte range posix locks on a file identified by given fid. The reply contains getlock structure. If the lock could be placed it returns F_UNLCK

Fwd: [Qemu-devel]ask for help-register allocation algorithms

2010-09-21 Thread ustc ustc
-- 已转发邮件 -- 发件人: ly ustcer...@gmail.com 日期: 2010年9月20日 上午10:22 主题: [Qemu-devel]ask for help 收件人: qemu-devel@nongnu.org i want to modify the register allocation algorithms in the qemu.(x86-mios) maybe i want to change the cpu register map on the host. for example, map the %eax to

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2010-09-21 Thread daniel pecka
http://patchwork.ozlabs.org/patch/65137/raw/ well, this *fixed a issue .. it's very good that we (sunos guys) can now use the best virt platform (kvm - IMO) .. regards and thanks folks ave, daniel -- emulated netcards don't work with recent sunos kernel https://bugs.launchpad.net/bugs/638955

Re: [Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Daniel P. Berrange
On Mon, Sep 20, 2010 at 09:37:16PM +0200, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 02:22:18PM -0500, Anthony Liguori wrote: On 09/20/2010 01:59 PM, Michael S. Tsirkin wrote: You can also initiate the unplug from the OS without the ACPI event ever happening. I suspect that in our

Re: [Qemu-devel] [RFC] block-queue: Delay and batch metadata writes

2010-09-21 Thread Kevin Wolf
Am 20.09.2010 17:51, schrieb Anthony Liguori: On 09/20/2010 10:08 AM, Kevin Wolf wrote: If you're comfortable with a writeback cache for metadata, then you should also be comfortable with a writeback cache for data in which case, cache=writeback is the answer. Well, there is a

[Bug 638955] Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes)

2010-09-21 Thread Stefan Hajnoczi
On Mon, Sep 20, 2010 at 9:31 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 09/20/2010 05:42 AM, Michael S. Tsirkin wrote: On Sun, Sep 19, 2010 at 07:36:51AM +0100, Stefan Hajnoczi wrote: On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias edgar.igles...@gmail.com  wrote: This

[Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Michael S. Tsirkin
On Mon, Sep 20, 2010 at 03:50:51PM -0500, Anthony Liguori wrote: On 09/20/2010 03:37 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 03:38:36PM -0500, Anthony Liguori wrote: On 09/20/2010 03:27 PM, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 03:20:59PM -0500, Anthony Liguori wrote:

Re: [Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 09:58:14AM +0100, Daniel P. Berrange wrote: On Mon, Sep 20, 2010 at 09:37:16PM +0200, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 02:22:18PM -0500, Anthony Liguori wrote: On 09/20/2010 01:59 PM, Michael S. Tsirkin wrote: You can also initiate the unplug from

Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes)

2010-09-21 Thread Edgar E. Iglesias
On Tue, Sep 21, 2010 at 11:17:07AM +0200, Michael S. Tsirkin wrote: On Mon, Sep 20, 2010 at 10:51:36PM +0200, Edgar E. Iglesias wrote: On Mon, Sep 20, 2010 at 03:31:32PM -0500, Anthony Liguori wrote: On 09/20/2010 05:42 AM, Michael S. Tsirkin wrote: On Sun, Sep 19, 2010 at 07:36:51AM

[Qemu-devel] Re: [PATCH] blkverify: Handle overlapping I/O vector buffers

2010-09-21 Thread Kevin Wolf
Am 20.09.2010 15:31, schrieb Stefan Hajnoczi: When blkverify clones an I/O vector in order to perform mirrored reads and then compare their contents, it does not take into account the layout of individual buffers. It turns out this is important because guests may issue requests with

[Qemu-devel] Reminder about your invitation from Georgios Portokalidis

2010-09-21 Thread Georgios Portokalidis (LinkedIn Invitations)
LinkedIn This is a reminder that on September 16, Georgios Portokalidis sent you an invitation to become part of his or her professional network at LinkedIn. Follow this link to accept Georgios Portokalidis's invitation.

Re: [Qemu-devel] Re: Win2k host problem with {get, free}{addr, name}info()

2010-09-21 Thread Bastien ROUCARIES
On Tue, Sep 21, 2010 at 10:09 AM, Paolo Bonzini pbonz...@redhat.com wrote: Does gnulib have a similar replacement function? Very similar, in fact that must be the source. The nice thing about gnulib is that in the long term, we could potentially use gnulib for compatibility and make sure to

Re: [Qemu-devel] Re: [PATCH] blkverify: Handle overlapping I/O vector buffers

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 11:06 AM, Kevin Wolf kw...@redhat.com wrote: Am 20.09.2010 15:31, schrieb Stefan Hajnoczi: When blkverify clones an I/O vector in order to perform mirrored reads and then compare their contents, it does not take into account the layout of individual buffers.  It turns

Re: [Qemu-devel] [PATCH 5/5] ide: propagate the required alignment

2010-09-21 Thread Kevin Wolf
Am 12.09.2010 23:44, schrieb Christoph Hellwig: IDE is a bit ugly in this respect. For one it doesn't really keep track of a sector size - most of the protocol is in units of 512 bytes, and we assume 2048 bytes for CDROMs which is correct most of the time. Second IDE allocates an I/O buffer

[Qemu-devel] [PATCH] qemu-io: New command map

2010-09-21 Thread Kevin Wolf
The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf kw...@redhat.com --- qemu-io.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index

Re: [Qemu-devel] [PATCH] qemu-io: New command map

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 12:01 PM, Kevin Wolf kw...@redhat.com wrote: The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf kw...@redhat.com ---  qemu-io.c |   38 ++  1 files changed, 38

[Qemu-devel] Re: KVM call agenda for Sept 21

2010-09-21 Thread Avi Kivity
On 09/21/2010 05:37 AM, Nakajima, Jun wrote: Avi Kivity wrote on Mon, 20 Sep 2010 at 09:50:55: On 09/20/2010 06:44 PM, Chris Wright wrote: Please send in any agenda items you are interested in covering. nested vmx: the resurrection. Nice to see it progressing again, but there's

[Qemu-devel] Re: [PATCH] scsi-generic: add missing reset handler

2010-09-21 Thread Kevin Wolf
Am 06.09.2010 16:07, schrieb Bernhard Kohl: Ensure that pending requests of a SCSI generic device are purged on system reset. This also avoids calling a NULL function in lsi53c895a. The lsi code was recently changed to call the .qdev.reset function. Signed-off-by: Bernhard Kohl

[Qemu-devel] [PATCH v2] qemu-io: New command map

2010-09-21 Thread Kevin Wolf
The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf kw...@redhat.com --- qemu-io.c | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index

[Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Anthony Liguori
On 09/21/2010 04:18 AM, Michael S. Tsirkin wrote: No, netdev_del should remove the VLANClientState from the non_vlan_clients list. It's no longer enumerable and it's no longer lookup-able. The only reason it stays around it so that the device doesn't have a reference to a free pointer. The

[Qemu-devel] [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is

Re: [Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Anthony Liguori
On 09/21/2010 04:20 AM, Michael S. Tsirkin wrote: OK, that's clear enough. One note though: you won't be able to create another backend with the same name until the frontend is gone. If you remove it from the linked list, you'll be able to create another backend just fine. Regards,

[Qemu-devel] Re: [PATCH v2] qemu-io: New command map

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 1:40 PM, Kevin Wolf kw...@redhat.com wrote: The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf kw...@redhat.com ---  qemu-io.c |   39 +++  1 files changed, 39

Re: [Qemu-devel] [PATCH 00/18] Monitor: split HMP and QMP dispatch tables

2010-09-21 Thread Anthony Liguori
On 09/16/2010 03:20 PM, Luiz Capitulino wrote: The subject says it all: with this series applied we'll get different dispatch tables for HMP and QMP, which has the side effect of making QMP commands (such as qmp_capabilities) disappear from HMP's scope. This is also the beginning of the

[Qemu-devel] Re: [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

2010-09-21 Thread Kevin Wolf
Am 06.09.2010 16:58, schrieb Bernhard Kohl: For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE. Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com Thanks, applied to the block branch. Kevin

[Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used

[Qemu-devel] NetBSD qemu block device support

2010-09-21 Thread haad
Hi, On Mar,Thursday 18 2010, at 9:32 PM, Blue Swirl wrote: On 3/17/10, haad h...@netbsd.org wrote: Hi folks, This patch at [1] add support for NetBSD block ioctl calls to qemu block-raw.c file. It was written for xen version of qemu but basically it will work with vanilla qemu, too. Would

[Qemu-devel] [PATCH] qemu-virtio-9p: Implement TREADLINK operation for 9p2000.L

2010-09-21 Thread M. Mohan Kumar
Synopsis size[4] TReadlink tag[2] fid[4] size[4] RReadlink tag[2] target[s] Description Readlink is used to return the contents of the symoblic link referred by fid. Contents of symboic link is returned as a response. target[s] - Contents of the

[Qemu-devel] Re: [PATCH] new parameter boot=on|off for -net nic and -device NIC devices

2010-09-21 Thread Bernhard Kohl
Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of virtio-net-pci and pci-assign NIC devices. The VMs boot

[Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Christoph Hellwig
On Mon, Sep 20, 2010 at 07:18:14PM -0500, Anthony Liguori wrote: O_DIRECT alone to a pre-allocated file on a normal file system should result in the data being visible without any additional metadata transactions. Anthony, for the third time: no. O_DIRECT is a non-portable extension in

Re: [Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 3:26 PM, Kevin Wolf kw...@redhat.com wrote: Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: The blkverify block driver makes investigating image format data corruption much easier.  A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be

[Qemu-devel] [PATCH v5] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is

[Qemu-devel] Re: [PATCH] new parameter boot=on|off for -net nic and -device NIC devices

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 04:18:56PM +0200, Bernhard Kohl wrote: Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for -net nic and -device NIC devices

2010-09-21 Thread Anthony Liguori
On 09/19/2010 11:07 AM, Michael S. Tsirkin wrote: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of virtio-net-pci and pci-assign NIC devices. The VMs boot via gPXE

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Anthony Liguori
On 09/21/2010 09:26 AM, Christoph Hellwig wrote: On Mon, Sep 20, 2010 at 07:18:14PM -0500, Anthony Liguori wrote: O_DIRECT alone to a pre-allocated file on a normal file system should result in the data being visible without any additional metadata transactions. Anthony, for the

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for -net nic and -device NIC devices

2010-09-21 Thread Anthony Liguori
On 09/21/2010 09:18 AM, Bernhard Kohl wrote: Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of virtio-net-pci

[Qemu-devel] [PATCH 01/20] vvfat: Fix segfault on write to read-only disk

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf m...@kevin-wolf.de vvfat tries to set the readonly flag in its open function, but nowadays this is overwritted with the readonly=... command line option. Check in bdrv_write if the vvfat was opened read-only and return an error in this case. Without this check, vvfat tries to

[Qemu-devel] [PATCH 05/20] raw-posix: handle 512 byte alignment correctly

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de Replace the hardcoded handling of 512 byte alignment with bs-buffer_alignment to handle larger sector size devices correctly. Note that we can not rely on it to be initialize in bdrv_open, so deal with the worst case there. Signed-off-by: Christoph Hellwig

[Qemu-devel] [PATCH 06/20] Improve qemu-nbd performance by 4400 %

2010-09-21 Thread Kevin Wolf
From: Laurent Vivier laur...@vivier.eu This patch allows to reduce the boot time from an NBD server from 225 seconds to 5 seconds (time between the boot cd:0 and the kernel init) for the following command lines: ./qemu-nbd -t ../ISO/debian-500-powerpc-netinst.iso and

[Qemu-devel] [PATCH 10/20] qcow2: Move sync out of qcow2_alloc_clusters

2010-09-21 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-cluster.c |3 +++ block/qcow2-refcount.c |4 ++-- block/qcow2-snapshot.c |2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index f562b16..818c0db 100644 ---

[Qemu-devel] [PATCH 02/20] vvfat: Fix double free for opening the image rw

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf m...@kevin-wolf.de Allocation and deallocation of bs-opaque is not in the control of a block driver. Therefore it should not set bs-opaque to a data structure used by another bs, or closing the image will lead to a double free. Signed-off-by: Kevin Wolf m...@kevin-wolf.de ---

[Qemu-devel] [PATCH 11/20] qcow2: Get rid of additional sync on COW

2010-09-21 Thread Kevin Wolf
We always have a sync for the refcount update when a new cluster is allocated. If we move this past the COW, we can save an additional sync. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-cluster.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 19/20] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

2010-09-21 Thread Kevin Wolf
From: Bernhard Kohl bernhard.k...@nsn.com For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE. Signed-off-by: Bernhard Kohl bernhard.k...@nsn.com Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/scsi-bus.c |3 ++- 1 files changed, 2

[Qemu-devel] [PATCH 04/20] use qemu_blockalign consistently

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de Use qemu_blockalign for all allocations in the block layer. This allows increasing the required alignment, which is need to support O_DIRECT on devices with large block sizes. Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Kevin Wolf

[Qemu-devel] [PATCH 07/20] nbd: correctly manage default port

2010-09-21 Thread Kevin Wolf
From: Laurent Vivier laur...@vivier.eu block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809 Signed-off-by: Laurent Vivier laur...@vivier.eu Signed-off-by: Kevin Wolf kw...@redhat.com --- block/nbd.c |2 -- qemu-nbd.c |6 +++--- 2

[Qemu-devel] [PATCH 13/20] scsi-disk: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/scsi-disk.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index ee20e8f..9628b39 100644 ---

[Qemu-devel] [PATCH 20/20] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used

[Qemu-devel] [PATCH 08/20] qcow2: Move sync out of write_refcount_block_entries

2010-09-21 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-refcount.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 4c19e7e..7dc75d1 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -444,7

[Qemu-devel] [PATCH 12/20] virtio-blk: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/virtio-blk.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index bd6bbe6..a1df26d 100644 ---

[Qemu-devel] [PATCH 14/20] ide: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de IDE is a bit ugly in this respect. For one it doesn't really keep track of a sector size - most of the protocol is in units of 512 bytes, and we assume 2048 bytes for CDROMs which is correct most of the time. Second IDE allocates an I/O buffer long before we

[Qemu-devel] [PATCH 15/20] cutils: qemu_iovec_copy and qemu_iovec_memset

2010-09-21 Thread Kevin Wolf
This adds two functions that work on QEMUIOVectors and will be used by the next qcow2 patches. Signed-off-by: Kevin Wolf kw...@redhat.com --- cutils.c | 50 +- qemu-common.h |3 +++ 2 files changed, 44 insertions(+), 9 deletions(-) diff

[Qemu-devel] [PATCH 09/20] qcow2: Move sync out of update_refcount

2010-09-21 Thread Kevin Wolf
Note that the flush is omitted intentionally in qcow2_free_clusters. If anything, we can leak clusters here if we lose the writes. Signed-off-by: Kevin Wolf kw...@redhat.com --- block/qcow2-refcount.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for -net nic and -device NIC devices

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 10:16:29AM -0500, Anthony Liguori wrote: On 09/19/2010 11:07 AM, Michael S. Tsirkin wrote: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of

[Qemu-devel] [PULL 00/20] Block patches

2010-09-21 Thread Kevin Wolf
The following changes since commit a287916c712b0c57a97cd35c663c5e7ba061bc7e: Merge remote branch 'mst/for_anthony' into staging (2010-09-20 13:22:20 -0500) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Bernhard Kohl (2): scsi-generic: add missing

[Qemu-devel] [PATCH 18/20] scsi-generic: add missing reset handler

2010-09-21 Thread Kevin Wolf
From: Bernhard Kohl bernhard.k...@nsn.com Ensure that pending requests of a SCSI generic device are purged on system reset. This also avoids calling a NULL function in lsi53c895a. The lsi code was recently changed to call the .qdev.reset function. Signed-off-by: Bernhard Kohl

[Qemu-devel] [PATCH 17/20] qcow2: Avoid bounce buffers for AIO write requests

2010-09-21 Thread Kevin Wolf
qcow2 used to use bounce buffers for any AIO requests. This does not only imply unnecessary copying, but also unbounded allocations which should be avoided. This patch removes bounce buffers from the normal AIO write path. Encrypted images continue to use a bounce buffer, however with constant

[Qemu-devel] [PATCH 03/20] vvfat: Use cache=unsafe

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf m...@kevin-wolf.de The qcow file used for write support in vvfat is a temporary file, so we can use cache=unsafe there. Without this, write support is just too slow to be of any use. Signed-off-by: Kevin Wolf m...@kevin-wolf.de --- block/vvfat.c | 14 ++ 1 files

[Qemu-devel] How to fix NEON of cortext-a9 on qemu

2010-09-21 Thread Pham Van Thiet
Hello everybody, Some days ago, I read a topic about QEMU state of ARM NEON support from address: http://comments.gmane.org/gmane.comp.emulators.qemu/65999 I dowloaded test file anh run it on QEMU for cortex-a8 because the reference test file is written for cortex-a8 and I also listed some

[Qemu-devel] [PATCH v6 00/10] initial spice support.

2010-09-21 Thread Gerd Hoffmann
Hi, Here comes v6 of the iniial spice support patch series which is largely a repost of v5. * Detect spice in configure, Makefile windup. * Support for keyboard, mouse and tablet. * Support for simple display output (works as DisplayChangeListener, plays with any gfx card, sends simple

[Qemu-devel] [PATCH v6 04/10] configure: add logging

2010-09-21 Thread Gerd Hoffmann
Write compile commands and messages to config.log. Useful for debugging configure. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 3bfc5e9..66b1d0b 100755 --- a/configure +++

[Qemu-devel] [PATCH v6 03/10] add pflib: PixelFormat conversion library.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile.objs |1 + pflib.c | 213 + pflib.h | 20 ++ 3 files changed, 234 insertions(+), 0 deletions(-) create mode 100644 pflib.c create mode 100644 pflib.h diff

[Qemu-devel] [PATCH v6 07/10] spice: add keyboard

2010-09-21 Thread Gerd Hoffmann
Open keyboard channel. Now you can type into the spice client and the keyboard events are sent to your guest. You'll need some other display like vnc to actually see the guest responding to them though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile.objs|2 +-

[Qemu-devel] [PATCH v6 06/10] spice: core bits

2010-09-21 Thread Gerd Hoffmann
Add -spice command line switch. Has support setting passwd and port for now. With this patch applied the spice client can successfully connect to qemu. You can't do anything useful yet though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile.objs |2 + qemu-config.c | 18

[Qemu-devel] [PATCH v6 05/10] add spice into the configure file

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 66b1d0b..695a632 100755 --- a/configure +++ b/configure @@ -325,6 +325,7 @@ user_pie=no

[Qemu-devel] [PATCH v6 10/10] spice: add tablet support

2010-09-21 Thread Gerd Hoffmann
Add support for the spice tablet interface. The tablet interface will be registered (and then used by the spice client) as soon as a absolute pointing device is available and used by the guest, i.e. you'll have to configure your guest with '-usbdevice tablet'. Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PATCH v6 02/10] Use machine_init() to register virtfs config options.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- fsdev/qemu-fsdev.c |9 + vl.c |5 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ad69b0e..280b8f5 100644 --- a/fsdev/qemu-fsdev.c +++

[Qemu-devel] [PATCH v6 01/10] Use display types for local display only.

2010-09-21 Thread Gerd Hoffmann
This patch drops DT_VNC. The display types are only used to select select the local display (i.e. curses, sdl, coca, ...). Remote displays (for now only vnc, spice will follow) can be enabled independently. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- sysemu.h |1 - vl.c | 24

[Qemu-devel] [PATCH v6 09/10] spice: simple display

2010-09-21 Thread Gerd Hoffmann
With that patch applied you'll actually see the guests screen in the spice client. This does *not* bring qxl and full spice support though. This is basically the qxl vga mode made more generic, so it plays together with any qemu-emulated gfx card. You can display stdvga or cirrus via spice

[Qemu-devel] [PATCH v6 08/10] spice: add mouse

2010-09-21 Thread Gerd Hoffmann
Open mouse channel. Now you can move the guests mouse pointer. No tablet / absolute positioning (yet) though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/spice-input.c | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff

[Qemu-devel] [VGABIOS PATCH 08/11] Add qemu stdvga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu standard vga (1234:). Name it vgabios-stdvga.bin. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index d440b93..58f064e 100644 --- a/Makefile +++

[Qemu-devel] [VGABIOS PATCH 02/11] - added support for a lot more non-standard VBE modes (e.g. widescreen modes) - requires latest Bochs VBE code (16 MB video memory, VBE_DISPI_ID5, VRAM size in 64k p

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert i...@vruppert.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- vbe.c | 31 ++-- vbe.h | 70 -- vbetables-gen.c | 43 + 3 files changed, 91

[Qemu-devel] [VGABIOS PATCH 04/11] - biosfn_write_teletype: fixed attribute when scrolling in text mode

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert i...@vruppert.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- vgabios.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vgabios.c b/vgabios.c index fbc3588..ea3aae8 100644 --- a/vgabios.c +++ b/vgabios.c @@ -2039,7 +2039,9 @@ Bit8u

[Qemu-devel] [VGABIOS PATCH 05/11] - updates for release 0.6c

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert i...@vruppert.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ChangeLog | 12 README|3 ++- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35bf00a..dbaed5d 100644 --- a/ChangeLog +++ b/ChangeLog @@

[Qemu-devel] [VGABIOS PATCH 06/11] Makefile cleanup

2010-09-21 Thread Gerd Hoffmann
Use a single rule for building bios binaries. Use target specific variables to set compile flags. This makes it more obvious what the differences between the versions are. It also makes it easier to add new bios binaries with slightly different settings. Signed-off-by: Gerd Hoffmann

[Qemu-devel] [VGABIOS PATCH 09/11] update pci_get_lfb_addr for vmware vga

2010-09-21 Thread Gerd Hoffmann
vmware vga has the framebuffer at pci region 1 not 0. This patch makes pci_get_lfb_addr check region 1 too. It also gives names to the numbered labels to make the code more readable. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- vgabios.c | 23 ++- 1 files changed,

[Qemu-devel] [VGABIOS PATCH 03/11] - preparing for release 0.6c

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert i...@vruppert.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ChangeLog | 35 +++ README|6 ++ 2 files changed, 41 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75be5bd..35bf00a 100644 ---

[Qemu-devel] [VGABIOS PATCH 00/11] vgabios update

2010-09-21 Thread Gerd Hoffmann
Hi, This patch series updates the vgabios. The first five patches are taken from the vgabios cvs and update the vgabios.git tree @ qemu.org to vgabios release 0.6c. As this update depends on a newer bochs API it fully works on qemu 0.13 and master only. When using this vgabios version on

[Qemu-devel] [VGABIOS PATCH 11/11] Add qemu qxl vga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu qxl vga (1b36:0100). Name it vgabios-qxl.bin. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 2a093e8..578721a 100644 --- a/Makefile +++ b/Makefile

[Qemu-devel] [VGABIOS PATCH 07/11] Add defines for PCI IDs.

2010-09-21 Thread Gerd Hoffmann
This patch allows to set PCI vendor and device IDs using defines (PCI_VID and PCI_DID). Use it for vgabios.bin. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile |4 ++-- vbe.c |6 +- vgabios.c |5 + 3 files changed, 12 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH REPOST 0/3] use new vgabios.

2010-09-21 Thread Gerd Hoffmann
Hi, This patch series will put the new vgabios (patches just re-posted) into use for stdvga and vmware_vga. For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git, subtree being updated and vgabios binaries being recompiled

[Qemu-devel] [PATCH REPOST 2/3] switch stdvga to pci vgabios

2010-09-21 Thread Gerd Hoffmann
Make stdvga provide the new vgabios binary (with pcibios support) using the PCI option rom bar. Seabios will happily load it from there. The new vga bios will also lookup the framebuffer address in pci config space, so the magic bochs lfb @ 0xe000 is not needed any more - zap it. Without

[Qemu-devel] [PATCH REPOST 3/3] switch vmware_vga to pci vgabios

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/vmware_vga.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 12bff48..682f287 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -114,14 +114,12 @@ struct

[Qemu-devel] [VGABIOS PATCH 01/11] - use VBE LFB address from PCI base address if present (rewrite of the cirrus specific function in main vgabios code) - removed unnecessary spaces

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert i...@vruppert.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- clext.c | 51 ++- vbe.c | 59 --- vgabios.c | 58

[Qemu-devel] [VGABIOS PATCH 10/11] Add qemu vmware vga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu vmeare vga (15ad:0405). Name it vgabios-vmware.bin. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 58f064e..2a093e8 100644 --- a/Makefile +++

[Qemu-devel] [PATCH REPOST 1/3] Add new vgabios binaries to blobs list.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f95cc2f..867e038 100644 --- a/Makefile +++ b/Makefile @@ -154,8 +154,9 @@ ar de en-us fi fr-be hr it lv nl

[Qemu-devel] Re: [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Stefan Weil
Please ignore this patch. It's wrong (= instead of ==). I'll send a fixed version. Sorry, Stefan Am 20.09.2010 23:05, schrieb Stefan Weil: By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which

[Qemu-devel] KVM call minutes for Sept 21

2010-09-21 Thread Chris Wright
Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small things at this point - need some correctness

[Qemu-devel] [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Stefan Weil
By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which add the gcc format attribute. Newer gcc versions support format gnu_printf which is better suited for use in QEMU than format printf (QEMU

[Qemu-devel] Re: [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Blue Swirl
On Tue, Sep 21, 2010 at 5:48 PM, Stefan Weil w...@mail.berlios.de wrote: By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which add the gcc format attribute. Newer gcc versions support format

[Qemu-devel] Re: KVM call minutes for Sept 21

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:05 PM, Chris Wright wrote: Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small

Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-21 Thread Blue Swirl
On Mon, Sep 20, 2010 at 8:21 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 09/20/2010 03:03 PM, Blue Swirl wrote: On Mon, Sep 20, 2010 at 6:41 PM, Blue Swirlblauwir...@gmail.com  wrote: On Mon, Sep 20, 2010 at 6:26 PM, Anthony Liguorianth...@codemonkey.ws  wrote: On 09/19/2010

[Qemu-devel] RFC: Monitor high-level design

2010-09-21 Thread Luiz Capitulino
Hi there, I was working on a detailed writeup about monitor's internals so that I could get some guidance regarding monitor's internal design, but after today's call I realized that we should discuss the general design first. I think we have two options: the first (and better known) is to make

Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:32 PM, Blue Swirl wrote: On Mon, Sep 20, 2010 at 8:21 PM, Anthony Liguorianth...@codemonkey.ws wrote: On 09/20/2010 03:03 PM, Blue Swirl wrote: On Mon, Sep 20, 2010 at 6:41 PM, Blue Swirlblauwir...@gmail.comwrote: On Mon, Sep 20, 2010 at 6:26 PM,

[Qemu-devel] Re: RFC: Monitor high-level design

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:46 PM, Luiz Capitulino wrote: Hi there, I was working on a detailed writeup about monitor's internals so that I could get some guidance regarding monitor's internal design, but after today's call I realized that we should discuss the general design first. I think we have two

  1   2   >