Re: [Qemu-devel] [PULL 16/16] target-i386: Move KVM default-vendor hack to instance_init

2014-02-09 Thread Eduardo Habkost
On Sun, Feb 09, 2014 at 12:10:20AM +, Peter Maydell wrote: On 8 February 2014 23:33, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/02/2014 18:28, Andreas Färber ha scritto: Since when is it OK to declare variables in the middle of the block? When the code looks better, it is OK since

[Qemu-devel] [PATCH] target-i386: Don't declare variables in the middle of blocks

2014-02-09 Thread Eduardo Habkost
Some of my recent changes introduced variable declarations in the middle of code blocks. Fix the code so that it compiles without warnings when using -Wdeclaration-after-statement. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 7 --- 1 file changed, 4

Re: [Qemu-devel] [PATCH v2 1/3] Rework --name to use QemuOpts

2014-02-09 Thread Laszlo Ersek
On 01/30/14 11:20, Dr. David Alan Gilbert (git) wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com Reviewed-by: Alex Bennée alex.ben...@linaro.org --- vl.c | 52 +++- 1 file

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

2014-02-09 Thread Kevin Wolf
The following changes since commit 1f6b12f75f2c22f861d0202374033a7594c91707: Merge remote-tracking branch 'remotes/mwalle/tags/lm32-fixes/20140204' into staging (2014-02-08 15:57:51 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-anthony for you to

[Qemu-devel] [PULL 09/18] qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()

2014-02-09 Thread Kevin Wolf
From: Hu Tao hu...@cn.fujitsu.com n_start can be actually calculated from offset. The number of sectors to be allocated(n_end - n_start) can be passed in in num. By removing n_start and n_end, we can save two parameters. The side effect is there is a bug in qcow2.c:preallocate() that passes

[Qemu-devel] [PULL 03/18] qemu-iotests: change _supported_proto to file for various tests

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de all these tests do anything of the following and thus fail with any protocol other than file: - the tests use rm, cp or mv shell commands which only work on file - the tests use qcow2.py - the images construct new filenames (e.g. backing file names) and the

[Qemu-devel] [PULL 02/18] block: add native support for NFS

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images can simply be specified by an url of the form: nfs://host/export/filename[?param=value[param2=value2[...]]]

[Qemu-devel] [PULL 06/18] qemu-iotests: enable support for NFS protocol

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de Signed-off-by: Peter Lieven p...@kamp.de Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/common| 22 +++--- tests/qemu-iotests/common.rc | 3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PULL 01/18] qemu-iotest: Make 077 raw-only

2014-02-09 Thread Kevin Wolf
The qemu-io command sequences make the assumption that an unaligned request on the format layer will be unaligned on the blkdebug layer as well. This doesn't necessarily hold true for drivers other than raw. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi

[Qemu-devel] [PULL 10/18] qcow2: fix offset overflow in qcow2_alloc_clusters_at()

2014-02-09 Thread Kevin Wolf
From: Hu Tao hu...@cn.fujitsu.com When cluster size is big enough it can lead to an offset overflow in qcow2_alloc_clusters_at(). This patch fixes it. The allocation is stopped each time at L2 table boundary (see handle_alloc()), so the possible maximum bytes could be 2^(cluster_bits - 3 +

[Qemu-devel] [PULL 04/18] qemu-iotests: blacklist test 020 for NFS protocol

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de reopening is currently not supported. Signed-off-by: Peter Lieven p...@kamp.de Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/020 | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index

[Qemu-devel] [PULL 07/18] block: Fail gracefully with missing filename

2014-02-09 Thread Kevin Wolf
This fixes a regression introduced in commit 2a05cbe42 ('block: Allow block devices without files'): $ qemu-system-x86_64 -drive driver=file qemu-system-x86_64: block.c:892: bdrv_open_common: Assertion `!drv-bdrv_needs_filename || filename != ((void *)0)' failed. Now the respective check must be

[Qemu-devel] [PULL 16/18] block: Don't call ROUND_UP with negative values

2014-02-09 Thread Kevin Wolf
The behaviour of the ROUND_UP macro with negative numbers isn't obvious. It happens to do the right thing in this please, but better avoid it. Suggested-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Laszlo

[Qemu-devel] [PULL 15/18] block: bdrv_aligned_pwritev: Assert overlap range

2014-02-09 Thread Kevin Wolf
This adds assertions that the request that we actually end up passing to the block driver (which includes RMW data and has therefore potentially been rounded to alignment boundaries) is fully covered by the overlap_{offset,size} fields of the associated BdrvTrackedRequest. Suggested-by: Laszlo

[Qemu-devel] [PATCH] blockdev: Remove 'type' parameter from blockdev_init()

2014-02-09 Thread Kevin Wolf
blockdev-add doesn't know about the device that the backend will be attached to, this is a legacy -drive concept. Move the remaining checks that use it to drive_init(). Signed-off-by: Kevin Wolf kw...@redhat.com --- blockdev.c | 45 +++-- 1 file changed,

[Qemu-devel] [PULL 17/18] blkdebug: Don't leak bs-file on failure

2014-02-09 Thread Kevin Wolf
Reported-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Laszlo Ersek ler...@redhat.com --- block/blkdebug.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index 56c4cd0..8eb0db0

[Qemu-devel] [PULL 18/18] block: Fix 32 bit truncation in mark_request_serialising()

2014-02-09 Thread Kevin Wolf
On 32 bit hosts, size_t is too small for align as the bitmask ~(align - 1) will zero out the higher 32 bits of the offset. While at it, change the local overlap_bytes variable to unsigned to match the field in BdrvTrackedRequest. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Laszlo

[Qemu-devel] [PULL 14/18] block: Fix memory leaks in bdrv_co_do_pwritev()

2014-02-09 Thread Kevin Wolf
The error path for a failure in one of the two bdrv_aligned_preadv() calls leaked head_buf or tail_buf, respectively. This fixes the memory leak. Reported-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Laszlo

[Qemu-devel] [PATCH] sdhci: Drop unnecessary #include

2014-02-09 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/sd/sdhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 0906a1d..a0b90ba 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -26,7 +26,6 @@ #include sysemu/blockdev.h #include sysemu/dma.h #include

[Qemu-devel] [PULL 12/18] qemu-iotests: add test for qcow2 preallocation with different cluster sizes

2014-02-09 Thread Kevin Wolf
From: Hu Tao hu...@cn.fujitsu.com Reviewed-by: Max Reitz mre...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/079 | 63 ++ tests/qemu-iotests/079.out | 32

[Qemu-devel] [PULL 11/18] qcow2: check for NULL l2meta

2014-02-09 Thread Kevin Wolf
From: Hu Tao hu...@cn.fujitsu.com In the case of a metadata preallocation with a large cluster size, qcow2_alloc_cluster_offset() can allocate nothing and returns a NULL l2meta. This patch checks for it and link2 l2 with only valid l2meta. Replace 9 and 512 with BDRV_SECTOR_BITS,

Re: [Qemu-devel] [libvirt] Looking for project ideas and mentors for Google Summer of Code 2014

2014-02-09 Thread Stefan Hajnoczi
On Thu, Feb 06, 2014 at 01:45:07PM +0100, Giorgio Zoppi wrote: i offer part of my free time as mentor. From my original email: In order to mentor you must be an established contributor (regularly contribute patches). I couldn't find any commits from you in QEMU, libvirt, or Linux. Did I miss

Re: [Qemu-devel] [PATCH v2 2/3] Add 'debug-threads' suboption to --name

2014-02-09 Thread Laszlo Ersek
a few irrelevant comments below: On 01/30/14 11:20, Dr. David Alan Gilbert (git) wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com Add flag storage to qemu-thread-* to store the namethreads flag Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com --- include/qemu/thread.h

[Qemu-devel] [PULL 13/18] raw: Fix BlockLimits passthrough

2014-02-09 Thread Kevin Wolf
raw copies over the BlockLimits of bs-file during bdrv_open(). However, since commit d34682cd it is immediately overwritten during bdrv_refresh_limits(). This caused all fields except for opt_transfer_length and opt_mem_alignment (which happen to be correctly inherited in generic code) to be

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-09 Thread Fam Zheng
On Sun, Feb 9, 2014 at 2:46 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 09/02/2014 01:18, Peter Maydell ha scritto: Haven't checked it yet. I just don't really see what the point is in having a huge amount of OS specific code to do something which we already do in a portable way. It might

Re: [Qemu-devel] MSI interrupt support with vioscsi.c miniport driver

2014-02-09 Thread Yan Vugenfirer
Hi Nicholas, Adding Vadim Rozenfeld who wrote the virtio-scsi driver. Best regards, Yan. On Feb 7, 2014, at 10:14 PM, Nicholas A. Bellinger n...@linux-iscsi.org wrote: Hi Yan, So recently I've been doing some KVM guest performance comparisons between the scsi-mq prototype using

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-09 Thread Fam Zheng
On Sun, Feb 9, 2014 at 7:36 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/02/2014 18:46, Peter Maydell ha scritto: This adds parameter argv0 in calling path from main() to module_call_init(). So that module loader knows the location of executable. This patch looks kind of odd to me.

[Qemu-devel] [PULL 08/18] block/iscsi: always fill bs-bl.opt_transfer_length

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de the opt_transfer_length has nothing to do with logical block provisioning stuff so always copy it from the block limits VPD page. Reported-By: Benoit Canet ben...@irqsave.net Signed-off-by: Peter Lieven p...@kamp.de Reviewed-by: Benoit Canet ben...@irqsave.net

[Qemu-devel] [PULL 05/18] qemu-iotests: enable test 016 and 025 to work with NFS protocol

2014-02-09 Thread Kevin Wolf
From: Peter Lieven p...@kamp.de Signed-off-by: Peter Lieven p...@kamp.de Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/016 | 2 +- tests/qemu-iotests/025 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/016 b/tests/qemu-iotests/016

Re: [Qemu-devel] [PATCH v2 3/3] Add a 'name' parameter to qemu_thread_create

2014-02-09 Thread Laszlo Ersek
comments below On 01/30/14 11:20, Dr. David Alan Gilbert (git) wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com If enabled, set the thread name at creation (on GNU systems with pthread_set_np) Fix up all the callers with a thread name Signed-off-by: Dr. David Alan Gilbert

[Qemu-devel] [PATCH] CODING_STYLE: Section about mixed declarations

2014-02-09 Thread Eduardo Habkost
We had an unwritten rule about declarations having to be at beginning of blocks. Make it a written rule. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- CODING_STYLE | 7 +++ 1 file changed, 7 insertions(+) diff --git a/CODING_STYLE b/CODING_STYLE index dcbce28..f6eb319 100644 ---

[Qemu-devel] [PATCH 02/20] nbd: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Before: $ ./qemu-io-old qemu-io-old open -r -o file.driver=nbd one of path and host must be specified. qemu-io-old: can't open device (null): Could not open image: Invalid argument $ ./qemu-io-old qemu-io-old open -r -o file.driver=nbd,file.host=foo,file.path=bar path

[Qemu-devel] [PATCH 01/20] nbd: produce a better error if neither host nor port is passed

2014-02-09 Thread Paolo Bonzini
Before: $ qemu-io-old qemu-io-old open -r -o file.driver=nbd qemu-io-old: can't open device (null): Could not open image: Invalid argument $ ./qemu-io-old qemu-io-old open -r -o file.driver=nbd,file.host=foo,file.path=bar path and host may not be used at the same time.

[Qemu-devel] [PATCH 00/20] Improve bdrv_open error messages

2014-02-09 Thread Paolo Bonzini
Most of the block drivers are not using the Error** argument to bdrv_open, and instead just printing errors to stderr. This series improves that, using Error** instead of abusing errno numbers too. The only hurdle (caught by qemu-iotests, too) is VMDK, where we currently parse a file first as

[Qemu-devel] [PATCH 09/20] cow: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/cow.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/block/cow.c b/block/cow.c index 7fc0b12..43a2150 100644 --- a/block/cow.c +++ b/block/cow.c @@ -82,7 +82,7 @@ static int cow_open(BlockDriverState *bs,

[Qemu-devel] [PATCH 03/20] nbd: inline tcp_socket_incoming_spec into sole caller

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/block/nbd.h | 1 - nbd.c | 8 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/block/nbd.h b/include/block/nbd.h index e10ab82..1b39c06 100644 --- a/include/block/nbd.h +++

[Qemu-devel] [PATCH 04/20] nbd: move socket wrappers to qemu-nbd

2014-02-09 Thread Paolo Bonzini
qemu-nbd is one of the few valid users of qerror_report_err. Move the error-reporting socket wrappers there. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/block/nbd.h | 4 nbd.c | 50 -- qemu-nbd.c | 52

[Qemu-devel] [PATCH 07/20] gluster: default scheme to gluster:// and host to localhost.

2014-02-09 Thread Paolo Bonzini
Currently, gluster:///volname/img and (using file. options) file.driver=gluster,file.filename=foo will segfault. Also, //host/volname/img will be rejected, but it is a valid URL that should be accepted just fine with file.driver=gluster. Accept all of these, by inferring missing transport and

[Qemu-devel] [PATCH 16/20] vmdk: push vmdk_read_desc up to caller

2014-02-09 Thread Paolo Bonzini
Currently, we just try reading a VMDK file as both image and descriptor. This makes it hard to choose which of the two attempts gave the best error. We'll decide in advance if the file looks like an image or a descriptor, and this patch is the first step to that end. Signed-off-by: Paolo Bonzini

[Qemu-devel] [PATCH 06/20] iscsi: correctly propagate errors in iscsi_open

2014-02-09 Thread Paolo Bonzini
Before: $ ./qemu-io-old qemu-io-old open -r -o file.driver=iscsi,file.filename=foo Failed to parse URL : foo qemu-io-old: can't open device (null): Could not open 'foo': Invalid argument After: $ ./qemu-io qemu-io open -r -o file.driver=iscsi,file.filename=foo

[Qemu-devel] [PATCH 11/20] qcow: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/qcow.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 948b0c5..23bc691 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -119,17 +119,19 @@ static int

[Qemu-devel] [PATCH 08/20] gluster: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/gluster.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index f9dd37f..bc9c59f 100644 --- a/block/gluster.c +++ b/block/gluster.c @@ -175,7 +175,8 @@ out:

[Qemu-devel] [PATCH 15/20] vmdk: extract vmdk_read_desc

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/vmdk.c | 40 +--- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 99ca60f..58f4c34 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -529,6 +529,31 @@

[Qemu-devel] [PATCH 10/20] curl: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/curl.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/block/curl.c b/block/curl.c index a807584..353bab1 100644 --- a/block/curl.c +++ b/block/curl.c @@ -456,30 +456,27 @@ static int

[Qemu-devel] [PATCH 17/20] vmdk: do not try opening a file as both image and descriptor

2014-02-09 Thread Paolo Bonzini
This prepares for propagating errors from vmdk_open_sparse and vmdk_open_desc_file up to the caller of vmdk_open. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/vmdk.c | 22 +++--- tests/qemu-iotests/059.out | 4 ++-- 2 files changed, 17 insertions(+),

[Qemu-devel] [PATCH 12/20] qed: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/qed.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/block/qed.c b/block/qed.c index 694e6e2..59bdd58 100644 --- a/block/qed.c +++ b/block/qed.c @@ -398,7 +398,7 @@ static int

[Qemu-devel] [PATCH 13/20] vhdx: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/vhdx.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/block/vhdx.c b/block/vhdx.c index 9ee0a61..de1a80a 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -402,9 +402,10 @@ int

[Qemu-devel] [PATCH 14/20] vvfat: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Before: $ ./qemu-io-old qemu-io-old open -r -o driver=vvfat,fat-type=24,dir=i386-softmmu Valid FAT types are only 12, 16 and 32 qemu-io-old: can't open device (null): Could not open image: Invalid argument After: $ ./qemu-io qemu-io open -r -o

[Qemu-devel] [PATCH 19/20] block: do not abuse EMEDIUMTYPE

2014-02-09 Thread Paolo Bonzini
Returning Wrong medium type for an image that does not have a valid header is a bit weird. Improve the error by mentioning what format was trying to open it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/bochs.c | 3 ++- block/cow.c | 3 ++- block/parallels.c | 3 ++-

[Qemu-devel] [PATCH 20/20] vdi: say why an image is bad

2014-02-09 Thread Paolo Bonzini
Instead of just putting it in debugging output, we can now put the value in an Error. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/vdi.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index 68e152c..3859e49

[Qemu-devel] [PATCH 18/20] vmdk: correctly propagate errors

2014-02-09 Thread Paolo Bonzini
Now that we can return the right errors, use the Error** parameter to pass them back instead of just printing them. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/vmdk.c | 11 ++- tests/qemu-iotests/059.out | 6 ++ 2 files changed, 8 insertions(+), 9

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-09 Thread Paolo Bonzini
Il 09/02/2014 10:26, Fam Zheng ha scritto: The executable directory is not found once and for all, it's recomputed on any call to module_load or os_find_datadir. How about compute it for once in main() and load in module_call_init()? Sure, that's what Peter's suggesting. Paolo

Re: [Qemu-devel] [PULL 16/16] target-i386: Move KVM default-vendor hack to instance_init

2014-02-09 Thread Andreas Färber
Am 09.02.2014 09:06, schrieb Eduardo Habkost: On Sun, Feb 09, 2014 at 12:10:20AM +, Peter Maydell wrote: On 8 February 2014 23:33, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/02/2014 18:28, Andreas Färber ha scritto: Since when is it OK to declare variables in the middle of the block?

[Qemu-devel] [PATCH 05/20] iscsi: fix indentation

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- block/iscsi.c | 45 +++-- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index 6f4af72..e654a57 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1065,35

Re: [Qemu-devel] [PULL 00/14] Cleanup qdev legacy properties

2014-02-09 Thread Igor Mammedov
On Sat, 08 Feb 2014 15:24:05 +0100 Andreas Färber afaer...@suse.de wrote: Paolo, Am 08.02.2014 11:01, schrieb Paolo Bonzini: Anthony, Peter, The following changes since commit 0169c511554cb0014a00290b0d3d26c31a49818f: Merge remote-tracking branch 'qemu-kvm/uq/master' into

[Qemu-devel] [PULL 0/1 v2] libcacard glusterfs fix

2014-02-09 Thread Alon Levy
changes from v1: Added Signed-of by me. The following changes since commit 1f6b12f75f2c22f861d0202374033a7594c91707: Merge remote-tracking branch 'remotes/mwalle/tags/lm32-fixes/20140204' into staging (2014-02-08 15:57:51 +) are available in the git repository at:

[Qemu-devel] [PULL 1/1] libcacard: Don't link with all libraries QEMU links to

2014-02-09 Thread Alon Levy
From: Christophe Fergeau cferg...@redhat.com As described in https://bugzilla.redhat.com/show_bug.cgi?id=987441 , libcacard currently links to all the libraries QEMU is linking to, including glusterfs libraries, libiscsi, ... libcacard does not need all of these. This patch ensures it's only

[Qemu-devel] [PATCH] qtest: Unlink pid file before reading from QMP

2014-02-09 Thread Andreas Färber
Despite 1ad3c6abc0d67e00b84abaa5527bc64b70ca2205, supplying invalid arguments to the QEMU process still leaked a /tmp/qtest-*.pid file. Fix this by reordering the reading and unlinking to before reading from QMP socket, which relies on a running process. Cc: Stefan Hajnoczi stefa...@redhat.com

Re: [Qemu-devel] MSI interrupt support with vioscsi.c miniport driver

2014-02-09 Thread Vadim Rozenfeld
On Sun, 2014-02-09 at 11:24 +0200, Yan Vugenfirer wrote: Hi Nicholas, Adding Vadim Rozenfeld who wrote the virtio-scsi driver. Best regards, Yan. On Feb 7, 2014, at 10:14 PM, Nicholas A. Bellinger n...@linux-iscsi.org wrote: Hi Yan, So recently I've been doing some KVM guest

Re: [Qemu-devel] [PULL 0/2] qtest: don't leak pid files and UNIX domain sockets

2014-02-09 Thread Andreas Färber
Am 07.02.2014 17:41, schrieb Peter Maydell: On 4 February 2014 08:31, Stefan Hajnoczi stefa...@redhat.com wrote: On Mon, Feb 03, 2014 at 04:01:00PM +, Peter Maydell wrote: On 3 February 2014 15:20, Stefan Hajnoczi stefa...@redhat.com wrote: This pull request has been rebased onto

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-09 Thread Peter Maydell
On 9 February 2014 06:46, Paolo Bonzini pbonz...@redhat.com wrote: Il 09/02/2014 01:18, Peter Maydell ha scritto: Haven't checked it yet. I just don't really see what the point is in having a huge amount of OS specific code to do something which we already do in a portable way. It might be

Re: [Qemu-devel] [PATCH v2 19/35] target-arm: A64: Make cache ID registers visible to AArch64

2014-02-09 Thread Peter Maydell
On 9 February 2014 02:15, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell peter.mayd...@linaro.org wrote: -{ .name = CCSIDR, .cp = 15, .crn = 0, .crm = 0, .opc1 = 1, .opc2 = 0, +{ .name = CCSIDR, .state = ARM_CP_STATE_BOTH, +

[Qemu-devel] [PATCH qom-next v2 09/12] tests: Add virtio-blk qtest

2014-02-09 Thread Andreas Färber
Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 3 +++ tests/virtio-blk-test.c | 34 ++ 2 files changed, 37 insertions(+) create mode 100644

[Qemu-devel] [PATCH qom-next v2 01/12] tests: Add e1000 qtest

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi stefa...@redhat.com Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 7 +++ tests/e1000-test.c | 33 + 2 files changed, 40 insertions(+) create mode 100644 tests/e1000-test.c

[Qemu-devel] [PATCH qom-next v2 00/12] qtest: Prepare PCI NIC, virtio, IndustryPack tests

2014-02-09 Thread Andreas Färber
Hello Stefan and Michael, This series starts preparing tests to cover optional PCI devices. They don't do any functional tests but assure that QOM/PCI/VMState refactorings don't break the basic usage of devices not covered by qom-test. pcnet-test.c is intended to handle sparc's lance as well.

[Qemu-devel] [PATCH qom-next v2 04/12] tests: Add pcnet qtest

2014-02-09 Thread Andreas Färber
Test PCI only for now. Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 4 tests/pcnet-test.c | 33 + 2 files changed, 37 insertions(+) create mode 100644 tests/pcnet-test.c diff --git

[Qemu-devel] [PATCH qom-next v2 02/12] tests: Add vmxnet3 qtest

2014-02-09 Thread Andreas Färber
Note that this will emit a warning: [vmxnet3][WR][vmxnet3_peer_has_vnet_hdr]: Peer has no virtio extension. Task offloads will be emulated. Cc: Dmitry Fleytman dmi...@daynix.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 5

[Qemu-devel] [PATCH qom-next v2 06/12] tests: Add tpci200 qtest

2014-02-09 Thread Andreas Färber
Cc: Alberto Garcia agar...@igalia.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 3 +++ tests/tpci200-test.c | 33 + 2 files changed, 36 insertions(+) create mode 100644 tests/tpci200-test.c diff --git a/tests/Makefile

[Qemu-devel] [PATCH qom-next v2 03/12] tests: Add rtl8139 qtest

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 3 +++ tests/rtl8139-test.c | 33 + 2 files changed, 36 insertions(+) create mode 100644 tests/rtl8139-test.c diff --git a/tests/Makefile

[Qemu-devel] [PATCH qom-next v2 12/12] tests: Add ipoctal232 qtest

2014-02-09 Thread Andreas Färber
Cc: Alberto Garcia agar...@igalia.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 7 +++ tests/ipoctal232-test.c | 33 + 2 files changed, 40 insertions(+) create mode 100644 tests/ipoctal232-test.c diff --git a/tests/Makefile

[Qemu-devel] [PATCH qom-next v2 11/12] tests: Add virtio-rng qtest

2014-02-09 Thread Andreas Färber
Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 3 +++ tests/virtio-rng-test.c | 33 + 2 files changed, 36 insertions(+) create mode 100644 tests/virtio-rng-test.c diff --git a/tests/Makefile

Re: [Qemu-devel] 9pfs troubles (was Re: [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion())

2014-02-09 Thread Michael S. Tsirkin
On Fri, Feb 07, 2014 at 10:02:52AM +0100, Greg Kurz wrote: On Wed, 5 Feb 2014 23:31:11 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Feb 04, 2014 at 12:51:25PM +0530, Aneesh Kumar K.V wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, Feb 03, 2014 at 03:05:10PM

[Qemu-devel] [PATCH qom-next v2 05/12] tests: Add eepro100 qtest

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile| 3 +++ tests/eepro100-test.c | 63 +++ 2 files changed, 66 insertions(+) create mode 100644 tests/eepro100-test.c diff --git

[Qemu-devel] [PATCH qom-next v2 07/12] tests: Add ne2000 qtest

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 1 + tests/ne2000-test.c | 33 + 2 files changed, 34 insertions(+) create mode 100644 tests/ne2000-test.c diff --git a/tests/Makefile

Re: [Qemu-devel] [PATCH v2 11/35] target-arm: Split cpreg access checks out from read/write functions

2014-02-09 Thread Peter Maydell
On 9 February 2014 02:50, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell peter.mayd...@linaro.org wrote: +typedef enum CPAccessResult { +/* Access is permitted */ +CP_ACCESS_OK = 0, +/* Access fails due to a configurable trap

Re: [Qemu-devel] [PATCH v2 12/35] target-arm: Convert performance monitor reginfo to accesfn

2014-02-09 Thread Peter Maydell
On 9 February 2014 02:59, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Agreed. With diff-correction based on this scheme: Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com But the nice thing about having named fields is it doesn't actually matter what order things go in.

[Qemu-devel] [PATCH qom-next v2 08/12] tests: Add virtio-net qtest

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi stefa...@redhat.com Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 7 +++ tests/virtio-net-test.c | 33 + 2 files changed, 40 insertions(+) create mode 100644

[Qemu-devel] [PATCH qom-next v2 10/12] tests: Add virtio-balloon qtest

2014-02-09 Thread Andreas Färber
Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Andreas Färber afaer...@suse.de --- tests/Makefile | 3 +++ tests/virtio-balloon-test.c | 33 + 2 files changed, 36 insertions(+) create mode 100644 tests/virtio-balloon-test.c diff --git

Re: [Qemu-devel] [PATCH v2 14/35] target-arm: Convert miscellaneous reginfo structs to accessfn

2014-02-09 Thread Peter Maydell
On 9 February 2014 03:09, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell peter.mayd...@linaro.org wrote: +static CPAccessResult ats_access(CPUARMState *env, const ARMCPRegInfo *ri) +{ +if (ri-opc2 4) { +/* Other states are

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-09 Thread Fam Zheng
On Sun, Feb 9, 2014 at 7:48 PM, Peter Maydell peter.mayd...@linaro.org wrote: Ah, sorry, I hadn't spotted that. OK, then I think we should use that code (and I'll test the MacOS X version), but it should go in a called-once-from main init function that stashes the answer in a static variable,

Re: [Qemu-devel] [PATCH v2 15/35] target-arm: Drop success/fail return from cpreg read and write functions

2014-02-09 Thread Peter Maydell
On 9 February 2014 03:27, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell peter.mayd...@linaro.org wrote: -/* Access functions for coprocessor registers. These should always succeed. */ -typedef int CPReadFn(CPUARMState *env, const

Re: [Qemu-devel] [PATCH 02/11] pxa2xx: QOM'ify I2C slave

2014-02-09 Thread Andreas Färber
Am 09.02.2014 02:35, schrieb Peter Crosthwaite: On Sat, Feb 1, 2014 at 12:34 AM, Andreas Färber afaer...@suse.de wrote: Replace usages of FROM_I2C_SLAVE() with QOM cast macro and rename parent field to assure we caught all. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx.c

Re: [Qemu-devel] [PATCH 02/11] pxa2xx: QOM'ify I2C slave

2014-02-09 Thread Peter Maydell
On 9 February 2014 12:24, Andreas Färber afaer...@suse.de wrote: Am 09.02.2014 02:35, schrieb Peter Crosthwaite: On Sat, Feb 1, 2014 at 12:34 AM, Andreas Färber afaer...@suse.de wrote: @@ -1292,10 +1298,12 @@ static void pxa2xx_i2c_event(I2CSlave *i2c, enum i2c_event event) static int

Re: [Qemu-devel] [PATCH 11/11] i2c: Drop FROM_I2C_SLAVE() macro

2014-02-09 Thread Andreas Färber
Am 09.02.2014 02:53, schrieb Peter Crosthwaite: On Sat, Feb 1, 2014 at 12:34 AM, Andreas Färber afaer...@suse.de wrote: Use type-specific QOM cast macros instead. Should be past tense - We now use type-specific The imperative form of use suggests you are making the change in this patch

Re: [Qemu-devel] [PATCH 02/11] pxa2xx: QOM'ify I2C slave

2014-02-09 Thread Andreas Färber
Am 31.01.2014 15:34, schrieb Andreas Färber: Replace usages of FROM_I2C_SLAVE() with QOM cast macro and rename parent field to assure we caught all. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx.c | 38 +- 1 file changed, 25

Re: [Qemu-devel] [PATCH 04/11] z2: QOM'ify AER915

2014-02-09 Thread Andreas Färber
Am 09.02.2014 02:38, schrieb Peter Crosthwaite: On Sat, Feb 1, 2014 at 12:34 AM, Andreas Färber afaer...@suse.de wrote: Replace usages of FROM_I2C_SLAVE() with QOM cast macro. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Thanks,

Re: [Qemu-devel] [PULL 16/16] target-i386: Move KVM default-vendor hack to instance_init

2014-02-09 Thread Peter Maydell
On 9 February 2014 08:06, Eduardo Habkost ehabk...@redhat.com wrote: Sorry for my confusion, but I was not aware of that rule, and I don't know what I should use as a guide, if checkpatch.pl and CODING_STYLE are not enough. Is there additional coding style documentation or scripts I should

Re: [Qemu-devel] [PATCH 05/11] wm8750: QOM'ify

2014-02-09 Thread Andreas Färber
Am 31.01.2014 15:34, schrieb Andreas Färber: Replace usages of FROM_I2C_SLAVE() with QOM cast macro. Rename parent field. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/wm8750.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-)

Re: [Qemu-devel] [PATCH v4 00/22] Steps towards per CPU address-spaces

2014-02-09 Thread Andreas Färber
Paolo, Am 03.02.2014 10:44, schrieb Edgar E. Iglesias: Edgar E. Iglesias (22): exec: Make tb_invalidate_phys_addr input an AS exec: Make iotlb_to_region input an AS exec: Always initialize MemorySection address spaces exec: Make memory_region_section_get_iotlb use section AS

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Mark Cave-Ayland
On 09/02/14 04:14, Peter Crosthwaite wrote: Hi Peter, Thanks for the review! (cut) +/* #define DEBUG_CG3 */ + +#define CG3_ROM_FILE QEMU,cgthree.bin +#define FCODE_MAX_ROM_SIZE 0x1 + +#define CG3_REG_SIZE 0x20 +#define CG3_VRAM_SIZE 0x10 +#define CG3_VRAM_OFFSET 0x80 + +#ifdef

Re: [Qemu-devel] [PULL 00/14] Cleanup qdev legacy properties

2014-02-09 Thread Paolo Bonzini
Il 08/02/2014 15:24, Andreas Färber ha scritto: I had specifically requested to review and take these through qom-next, like most qdev changes have gone lately. Why are you sending a pull nontheless? In particular Luiz has not yet replied to the QERR issue I pointed out. Because that's not

Re: [Qemu-devel] [PATCH v4 00/22] Steps towards per CPU address-spaces

2014-02-09 Thread Peter Maydell
On 9 February 2014 13:31, Andreas Färber afaer...@suse.de wrote: Paolo, Am 03.02.2014 10:44, schrieb Edgar E. Iglesias: Edgar E. Iglesias (22): exec: Make tb_invalidate_phys_addr input an AS exec: Make iotlb_to_region input an AS exec: Always initialize MemorySection address spaces

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Peter Maydell
On 8 February 2014 16:38, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: The CG3 framebuffer is a simple 8-bit framebuffer for use with operating systems such as early Solaris that do not have drivers for TCX. +static void cg3_reg_write(void *opaque, hwaddr addr, uint64_t val, +

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Andreas Färber
Hi, Am 08.02.2014 17:38, schrieb Mark Cave-Ayland: +static Property cg3_properties[] = { +DEFINE_PROP_HEX32(vram_size, CG3State, vram_size, -1), Paolo is about to drop hex32 ... +DEFINE_PROP_UINT16(width,CG3State, width, -1), +DEFINE_PROP_UINT16(height,

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Mark Cave-Ayland
On 09/02/14 14:41, Peter Maydell wrote: On 8 February 2014 16:38, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: The CG3 framebuffer is a simple 8-bit framebuffer for use with operating systems such as early Solaris that do not have drivers for TCX. +static void cg3_reg_write(void

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Mark Cave-Ayland
On 09/02/14 15:10, Andreas Färber wrote: Hi Andreas, Hi, Am 08.02.2014 17:38, schrieb Mark Cave-Ayland: +static Property cg3_properties[] = { +DEFINE_PROP_HEX32(vram_size, CG3State, vram_size, -1), Paolo is about to drop hex32 ... H okay... +DEFINE_PROP_UINT16(width,

Re: [Qemu-devel] [PATCHv2 2/2] sun4m: Add Sun CG3 framebuffer initialisation function

2014-02-09 Thread Andreas Färber
Am 08.02.2014 17:38, schrieb Mark Cave-Ayland: In order to allow the user to choose the framebuffer for sparc-softmmu, add -vga tcx and -vga cg3 options to the QEMU command line. If no option is specified, the default TCX framebuffer is used. Signed-off-by: Mark Cave-Ayland

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Peter Maydell
On 9 February 2014 15:19, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: On 09/02/14 14:41, Peter Maydell wrote: On 8 February 2014 16:38, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: +case 4: +/* This register can be written to as either a long word or a byte.

Re: [Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-09 Thread Andreas Färber
Am 09.02.2014 16:24, schrieb Mark Cave-Ayland: One thing I'm not sure about is how the QOM stuff interacts with sysbus - can you quickly point me towards an existing device that does this so I can understand how this works? The ARM MPCore devices come to mind. But really all you've been asked

Re: [Qemu-devel] [PATCH qom-next for-next 0/6] QOM realize for IndustryPack

2014-02-09 Thread Alberto Garcia
On Sat, Feb 08, 2014 at 08:58:35PM +0100, Andreas Färber wrote: ipack: Move IndustryPack out of hw/char/ There were unresolved IRC discussions with Paolo where exactly to place which IndustryPack files, so that this series has been lying around. As I had explained some time ago I was

  1   2   >