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 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 always: ch

[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 --- target-i386/cpu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

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" > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by: Alex Bennée > --- > vl.c | 52 +++- > 1 file changed, 39 insertions(+), 13 deletions(-) > > diff --g

[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 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 incorrect n_start to qcow

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

2014-02-09 Thread Kevin Wolf
From: Peter Lieven 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 logic is broke

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

2014-02-09 Thread Kevin Wolf
From: Peter Lieven 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:[?param=value[¶m2=value2[&...]]] For example: qemu-img create -f qco

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

2014-02-09 Thread Kevin Wolf
From: Peter Lieven Signed-off-by: Peter Lieven Signed-off-by: Kevin Wolf --- tests/qemu-iotests/common| 22 +++--- tests/qemu-iotests/common.rc | 3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common in

[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 Reviewed-by: Stefan Hajnoczi Reviewed-by: Benoît Canet --- t

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

2014-02-09 Thread Kevin Wolf
From: Hu Tao 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 + cluster_bits) cluster_

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

2014-02-09 Thread Kevin Wolf
From: Peter Lieven reopening is currently not supported. Signed-off-by: Peter Lieven Signed-off-by: Kevin Wolf --- tests/qemu-iotests/020 | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index 73a0429..2f258dc 100755 --- a/tests/qemu-iot

[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 Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Laszlo Ersek --- block.c | 4 ++-- 1 file changed, 2 inserti

[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 Ers

[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 --- blockdev.c | 45 +++-- 1 file changed, 31 insertions(+),

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

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

[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 Reviewed-by: Laszlo Ersek --- block.c

[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 Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Laszlo Ersek --- block.c | 4 ++-- 1 file changed, 2 inser

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

2014-02-09 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- 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/timer.h" -#in

[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 Reviewed-by: Max Reitz Signed-off-by: Hu Tao Signed-off-by: Kevin Wolf --- tests/qemu-iotests/079 | 63 ++ tests/qemu-iotests/079.out | 32 +++ tests/qemu-iotests/group | 1 + 3 files changed, 96 insertions(+)

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

2014-02-09 Thread Kevin Wolf
From: Hu Tao 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, BDRV_SECTOR_SIZE respectively while

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 mis

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" > > Add flag storage to qemu-thread-* to store the namethreads flag > > Signed-off-by: Dr. David Alan Gilbert > --- > include/qemu/thread.h| 1 + > qemu-options.hx

[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 zeroe

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 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 nice to

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 wrote: > Hi Yan, > > So recently I've been doing some KVM guest performance comparisons > between the scsi-mq prototype using virtio-scsi + vhost-scsi, a

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 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. W

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

2014-02-09 Thread Kevin Wolf
From: Peter Lieven 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 Signed-off-by: Peter Lieven Reviewed-by: Benoit Canet Signed-off-by: Kevin Wolf --- block/iscsi.c | 5 ++--- 1 file

[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 Signed-off-by: Peter Lieven Signed-off-by: Kevin Wolf --- 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 index b87a32b..7ea9e94 100755 --- a/tests/qe

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" > > 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 > --- > cpus.c

[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 --- CODING_STYLE | 7 +++ 1 file changed, 7 insertions(+) diff --git a/CODING_STYLE b/CODING_STYLE index dcbce28..f6eb319 100644 --- a/CODING_STYLE +++ b/C

[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 ima

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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, QDict *options, int

[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 --- 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 +++ b/include/block/nbd.h @@ -63,7 +63,6 @

[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 --- 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

[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-i

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 qcow_open(BlockDriverState *bs, QDic

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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: return ret; }

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 @@ static int vmdk_open_vm

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 curl_open(BlockDriverState *bs, QDict *

[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 --- block/vmdk.c | 22 +++--- tests/qemu-iotests/059.out | 4 ++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 bdrv_qed_open(BlockDriverState *bs, QDict

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 vhdx_update_headers(BlockDriverState *b

[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 driver=vvfat,fat-type=24,di

[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 --- block/bochs.c | 3 ++- block/cow.c | 3 ++- block/parallels.c | 3 ++- block/qcow.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 --- block/vdi.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index 68e152c..3859e49 100644 --- a/block/vd

[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 --- block/vmdk.c | 11 ++- tests/qemu-iotests/059.out | 6 ++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git

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 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

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

2014-02-09 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 +1065,36 @@ static Qem

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 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 staging >

[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: git://people.freedes

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

2014-02-09 Thread Alon Levy
From: Christophe Fergeau 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 linked with the librarie

[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 Signed-off-by: Andrea

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 > wrote: > > > Hi Yan, > > > > So recently I've been doing some KVM guest perfo

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 wrote: >> On Mon, Feb 03, 2014 at 04:01:00PM +, Peter Maydell wrote: >>> On 3 February 2014 15:20, Stefan Hajnoczi wrote: This pull request has been rebased onto qemu.git/master and retested. >>>

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 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 nice to abstra

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 wrote: > On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell > wrote: >> -{ .name = "CCSIDR", .cp = 15, .crn = 0, .crm = 0, .opc1 = 1, .opc2 = 0, >> +{ .name = "CCSIDR", .state = ARM_CP_STATE_BOTH, >> + .opc0 = 3, .crn = 0, .crm = 0, .opc1 = 1,

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

2014-02-09 Thread Andreas Färber
Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber --- tests/Makefile | 3 +++ tests/virtio-blk-test.c | 34 ++ 2 files changed, 37 insertions(+) create mode 100644 tests/virtio-blk-test.c diff --git a/tests/Makefile b/tests/Makefile ind

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

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi Cc: Michael S. Tsirkin Signed-off-by: Andreas Färber --- tests/Makefile | 7 +++ tests/e1000-test.c | 33 + 2 files changed, 40 insertions(+) create mode 100644 tests/e1000-test.c diff --git a/tests/Makefile b/tests/Makefile index 4

[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. v2

[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 Signed-off-by: Andreas Färber --- tests/Makefile | 4 tests/pcnet-test.c | 33 + 2 files changed, 37 insertions(+) create mode 100644 tests/pcnet-test.c diff --git a/tests/Makefile b/tests/Makefile index eabd

[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 Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber --- tests/Makefile | 5 + tests/vmxnet3-test.c | 33 +

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

2014-02-09 Thread Andreas Färber
Cc: Alberto Garcia Signed-off-by: Andreas Färber --- 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 b/tests/Makefile index 4f9dd6d..407b883 100644

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

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber --- 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 b/tests/Makefile index 323c600..eabdf98 100644

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

2014-02-09 Thread Andreas Färber
Cc: Alberto Garcia Signed-off-by: Andreas Färber --- 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 b/tests/Makefile index 2a7e104..89

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

2014-02-09 Thread Andreas Färber
Cc: Michael S. Tsirkin Signed-off-by: Andreas Färber --- 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 b/tests/Makefile index 8a35c3c..2a

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" wrote: > > On Tue, Feb 04, 2014 at 12:51:25PM +0530, Aneesh Kumar K.V wrote: > > > "Michael S. Tsirkin" writes: > > > > > > > On Mon, Feb 03, 2014 at 03:05:10PM +0530, Aneesh Kum

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

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber --- tests/Makefile| 3 +++ tests/eepro100-test.c | 63 +++ 2 files changed, 66 insertions(+) create mode 100644 tests/eepro100-test.c diff --git a/tests/Makefile b/tests/Makefile index 86

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

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber --- 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 b/tests/Makefile index 407b883..2bb484f 100644 ---

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 wrote: > On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell > wrote: >> +typedef enum CPAccessResult { >> +/* Access is permitted */ >> +CP_ACCESS_OK = 0, >> +/* Access fails due to a configurable trap or enable which would >> + * result in

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 wrote: > Agreed. With diff-correction based on this scheme: > > Reviewed-by: Peter Crosthwaite > > But the nice thing about having named fields is it >> doesn't actually matter what order things go in. >> > > But for similar entries its much more read

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

2014-02-09 Thread Andreas Färber
Cc: Stefan Hajnoczi Cc: Michael S. Tsirkin Signed-off-by: Andreas Färber --- tests/Makefile | 7 +++ tests/virtio-net-test.c | 33 + 2 files changed, 40 insertions(+) create mode 100644 tests/virtio-net-test.c diff --git a/tests/Makefile b/tests/M

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

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

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 wrote: > On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell > wrote: >> >> +static CPAccessResult ats_access(CPUARMState *env, const ARMCPRegInfo *ri) >> +{ >> +if (ri->opc2 & 4) { >> +/* Other states are only available with TrustZone; in > > A

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 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, and then the 'get the

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 wrote: > On Sat, Feb 1, 2014 at 1:45 AM, Peter Maydell > wrote: >> -/* Access functions for coprocessor registers. These should always succeed. >> */ >> -typedef int CPReadFn(CPUARMState *env, const ARMCPRegInfo *opaque, >> - uint6

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 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 >> --- >> hw/arm/pxa2xx.c | 38 ++

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 wrote: > Am 09.02.2014 02:35, schrieb Peter Crosthwaite: >> On Sat, Feb 1, 2014 at 12:34 AM, Andreas Färber wrote: >>> @@ -1292,10 +1298,12 @@ static void pxa2xx_i2c_event(I2CSlave *i2c, enum >>> i2c_event event) >>> >>> static int pxa2xx_i2c_rx(I2CSlave

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 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 but

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 > --- > hw/arm/pxa2xx.c | 38 +- > 1 file changed, 25 insertions(+), 13 d

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 wrote: >> Replace usages of FROM_I2C_SLAVE() with QOM cast macro. >> >> Signed-off-by: Andreas Färber > > Reviewed-by: Peter Crosthwaite Thanks, adding and mentioning the following on top: diff -

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 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 look at? Unfortuna

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 > --- > hw/audio/wm8750.c | 33 - > 1 file changed, 20 insertions(+), 13 deletions(-) Follow-up TODO: M

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 what

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 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 >> exe

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 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, > + unsign

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 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 va

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 > CC: Blue S

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 wrote: > On 09/02/14 14:41, Peter Maydell wrote: > >> On 8 February 2014 16:38, Mark Cave-Ayland >> wrote: >>> +case 4: >>> +/* This register can be written to as either a long word or a >>> byte. >>> + * According to the SBus specif

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 aske

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

  1   2   >