[Qemu-devel] [PATCH 2/9] memory: add support getting and using a dirty bitmap copy.

2017-04-21 Thread Gerd Hoffmann
This patch adds support for getting and using a local copy of the dirty bitmap. memory_region_snapshot_and_clear_dirty() will create a snapshot of the dirty bitmap for the specified range, clear the dirty bitmap and return the copy. The returned bitmap can be a bit larger than requested, the

[Qemu-devel] [PATCH 7/9] g364fb: make display updates thread safe

2017-04-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/display/g364fb.c | 28 +--- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c index 8cdc205dd9..86557d14a9 100644 --- a/hw/display/g364fb.c +++

[Qemu-devel] [PATCH V2] qemu-img: simplify img_convert

2017-04-21 Thread Peter Lieven
img_convert has been around before there was an ImgConvertState or a block backend, but it has never been modified to directly use these structs. Change this by parsing parameters directly into the ImgConvertState and directly use BlockBackend where possible. Furthermore variable initialization

Re: [Qemu-devel] [PATCH] Drop QEMU_GNUC_PREREQ() checks for gcc older than 4.1

2017-04-21 Thread Peter Maydell
On 31 January 2017 at 16:14, Peter Maydell wrote: > We already require gcc 4.1 or newer (for the atomic > support), so the fallback codepaths for older gcc > versions than that are now dead code and we can > just delete them. > > NB: clang reports itself as gcc 4.2

Re: [Qemu-devel] [PATCH] qemu-img: simplify img_convert

2017-04-21 Thread Peter Lieven
Am 20.04.2017 um 21:51 schrieb Kevin Wolf: > Am 20.04.2017 um 16:08 hat Peter Lieven geschrieben: >> Am 20.04.2017 um 16:05 schrieb Fam Zheng: >>> On Tue, 02/28 14:35, Peter Lieven wrote: img_convert has been around before there was an ImgConvertState or a block backend, but it has never

Re: [Qemu-devel] [PATCH] sheepdog: Set error when connection fails

2017-04-21 Thread Fam Zheng
On Fri, 04/21 09:31, Daniel P. Berrange wrote: > On Fri, Apr 21, 2017 at 07:43:36AM +0200, Markus Armbruster wrote: > > Kevin Wolf writes: > > > > > Am 20.04.2017 um 17:30 hat Daniel P. Berrange geschrieben: > > >> On Thu, Apr 20, 2017 at 12:00:03PM +0800, Fam Zheng wrote: > >

[Qemu-devel] [PATCH v2 12/13] tcx: use tcx_set_dirty() for accelerated ops

2017-04-21 Thread Mark Cave-Ayland
Rather than calling memory_region_set_dirty() directly, make sure that we call tcx_set_dirty() instead. This ensures that the 24-bit plane and cplane are also invalidated correctly. Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann ---

Re: [Qemu-devel] [PATCH v14 02/20] qapi: Add 'force-shared-write' to blockdev-add arguments

2017-04-21 Thread Fam Zheng
On Fri, 04/21 10:35, Kevin Wolf wrote: > Am 21.04.2017 um 05:55 hat Fam Zheng geschrieben: > > Signed-off-by: Fam Zheng > > Reviewed-by: Kevin Wolf > > As far as I am concerned, this could be squashed into patch 1, though. > Adding a new field to the schema

[Qemu-devel] [PATCH v2 10/13] tcx: remove TARGET_PAGE_SIZE from tcx24_update_display()

2017-04-21 Thread Mark Cave-Ayland
Now that page alignment is handled by the memory API, there is no need to duplicate the code 4 times (4 * 1024 == 4096 == TARGET_PAGE_SIZE). Finally we have now removed all traces of TARGET_PAGE_SIZE. Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann

Re: [Qemu-devel] [PATCH] sheepdog: Set error when connection fails

2017-04-21 Thread Daniel P. Berrange
On Fri, Apr 21, 2017 at 07:43:36AM +0200, Markus Armbruster wrote: > Kevin Wolf writes: > > > Am 20.04.2017 um 17:30 hat Daniel P. Berrange geschrieben: > >> On Thu, Apr 20, 2017 at 12:00:03PM +0800, Fam Zheng wrote: > >> > Signed-off-by: Fam Zheng > >> > ---

Re: [Qemu-devel] [PATCH v14 03/20] block: Respect "force-shared-write" in perm propagating

2017-04-21 Thread Kevin Wolf
Am 21.04.2017 um 05:55 hat Fam Zheng geschrieben: > Signed-off-by: Fam Zheng > --- > block.c | 31 +++ > 1 file changed, 23 insertions(+), 8 deletions(-) > > diff --git a/block.c b/block.c > index f5c4e97..6acf618 100644 > --- a/block.c > +++

[Qemu-devel] [PATCH v2 06/13] tcx: alter tcx24_check_dirty() to accept address and length parameters

2017-04-21 Thread Mark Cave-Ayland
This can now be used by both the 8-bit and 24-bit display code, so rename to tcx_check_dirty(). Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c | 25 ++--- 1 file changed, 14 insertions(+),

Re: [Qemu-devel] [PATCH v14 02/20] qapi: Add 'force-shared-write' to blockdev-add arguments

2017-04-21 Thread Kevin Wolf
Am 21.04.2017 um 05:55 hat Fam Zheng geschrieben: > Signed-off-by: Fam Zheng Reviewed-by: Kevin Wolf As far as I am concerned, this could be squashed into patch 1, though. Adding a new field to the schema is an integral part of adding a new option, I think.

[Qemu-devel] [PATCH v2 11/13] tcx: remove primitives for non-32-bit surfaces

2017-04-21 Thread Mark Cave-Ayland
As all surfaces in QEMU are now either shared or 32-bit ARGB regardless of the guest depth, remove all non-32-bit primitives from tcx_update_display() and consequence their implementation which are no longer required. Signed-off-by: Mark Cave-Ayland Reviewed-by:

[Qemu-devel] [PATCH v2 03/13] cg3: switch to load_image_mr() and remove prom-addr hack

2017-04-21 Thread Mark Cave-Ayland
Previous to the existence of load_image_mr(), the only way to load in the FCode ROM image was to pass in its physical address via qdev properties and use load_image_targphys(). Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann

Re: [Qemu-devel] [PATCH v14 01/20] block: Add, parse and store "force-shared-write" option

2017-04-21 Thread Kevin Wolf
Am 21.04.2017 um 05:55 hat Fam Zheng geschrieben: > Signed-off-by: Fam Zheng Reviewed-by: Kevin Wolf

[Qemu-devel] [PATCH v2 13/13] tcx: switch to load_image_mr() and remove prom_addr hack

2017-04-21 Thread Mark Cave-Ayland
Previous to the existence of load_image_mr(), the only way to load in the FCode ROM image was to pass in its physical address via qdev properties and use load_image_targphys(). Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann ---

[Qemu-devel] [PATCH v2 02/13] cg3: fix up size parameter for memory_region_get_dirty()

2017-04-21 Thread Mark Cave-Ayland
The code was incorrectly calculating the end address rather than the size of the required region. Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/cg3.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v2 04/13] tcx: alter tcx_set_dirty() to accept address and length parameters

2017-04-21 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/display/tcx.c b/hw/display/tcx.c index 8e26aae..d24466f 100644 ---

[Qemu-devel] [PATCH v2 00/13] TCX/CG3 adapter cleanups

2017-04-21 Thread Mark Cave-Ayland
This started as part of the work on Gerd's thread-safe display patches but ended up turning into something a lot more comprehensive. It contains lots of cleanup and fixes for display invalidation (particularly on 24-bit TCX) exposed by testing the thread-safe patchset. Signed-off-by: Mark

[Qemu-devel] [PATCH v2 08/13] tcx: remove page24 and cpage from tcx24_update_display()

2017-04-21 Thread Mark Cave-Ayland
Since all of the tcx_*_dirty() functions now calculate the 24-bit and cplane offsets themselves from the base address, these variables are no longer needed. Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c |7

[Qemu-devel] [PATCH v2 09/13] tcx: remove TARGET_PAGE_SIZE from tcx_update_display()

2017-04-21 Thread Mark Cave-Ayland
Now that page alignment is handled by the memory API, there is no need to duplicate the code 4 times (4 * 1024 == 4096 == TARGET_PAGE_SIZE). Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c | 36

[Qemu-devel] [PATCH v2 01/13] cg3: remove TARGET_PAGE_SIZE rounding on dirty page detection

2017-04-21 Thread Mark Cave-Ayland
This was an artifact from very early versions of the code from before the memory API and is no longer needed. Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/cg3.c |6 ++ 1 file changed, 2 insertions(+), 4

[Qemu-devel] [PATCH v2 07/13] tcx: alter tcx24_reset_dirty() to accept address and length parameters

2017-04-21 Thread Mark Cave-Ayland
This can now be used by both the 8-bit and 24-bit display code, so rename to tcx_check_dirty(). Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c | 31 +++ 1 file changed, 11

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-21 Thread Paul Durrant
> -Original Message- [snip] > > > > I think xencall should be part of the base xen_stable_libs anyway. > > Yes, you are right. However I noticed that -lxencall needs to come after > -lxendevicemodel. So, I'll have to move -lxendevicemodel before > $xen_stable_libs, see below. I'll merge

[Qemu-devel] [PATCH v2 05/13] tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane

2017-04-21 Thread Mark Cave-Ayland
Signed-off-by: Mark Cave-Ayland Reviewed-by: Gerd Hoffmann --- hw/display/tcx.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/display/tcx.c b/hw/display/tcx.c index d24466f..6817bd2 100644 --- a/hw/display/tcx.c +++

Re: [Qemu-devel] [PATCH V2 1/2] COLO-compare: Optimize tcp compare for option field

2017-04-21 Thread Zhang Chen
On 04/21/2017 12:10 PM, Jason Wang wrote: On 2017年04月21日 11:48, Zhang Chen wrote: On 04/20/2017 02:43 PM, Jason Wang wrote: On 2017年04月18日 10:20, Zhang Chen wrote: In this patch we support packet that have tcp options field. Add tcp options field check, If the packet have options

Re: [Qemu-devel] [PATCH] qemu_iotests: Remove _readlink()

2017-04-21 Thread Fam Zheng
On Fri, 04/21 10:01, Kevin Wolf wrote: > It is unused. > > Suggestetd-by: Fam Zheng > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/common.config | 18 -- > 1 file changed, 18 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH v3 6/6] vmdk: Update metadata for multiple clusters

2017-04-21 Thread Fam Zheng
On Sat, 04/01 20:14, Ashijeet Acharya wrote: > Include a next pointer in VmdkMetaData struct to point to the previous > allocated L2 table. Modify vmdk_L2update to start updating metadata for > allocation of multiple clusters at once. > > Signed-off-by: Ashijeet Acharya

Re: [Qemu-devel] [PATCH 02/15] colo-compare: implement the process of checkpoint

2017-04-21 Thread Hailiang Zhang
On 2017/4/20 13:15, Jason Wang wrote: On 2017年04月18日 14:58, Hailiang Zhang wrote: On 2017/4/18 11:55, Jason Wang wrote: On 2017年04月17日 19:04, Hailiang Zhang wrote: Hi Jason, On 2017/4/14 14:38, Jason Wang wrote: On 2017年04月14日 14:22, Hailiang Zhang wrote: Hi Jason, On 2017/4/14 13:57,

Re: [Qemu-devel] CUSE-TPM : Win 10 reports TPM device doesn't have sufficient resources

2017-04-21 Thread Anshul Makkar
Yes, v2.8.0+tpm branch worked. Thanks Stefan. Anshul From: Stefan Berger [mailto:stef...@us.ibm.com] Sent: 18 April 2017 19:47 To: Anshul Makkar Cc: qemu-devel@nongnu.org Subject: Re: CUSE-TPM : Win 10 reports TPM device doesn't have sufficient resources You may want

[Qemu-devel] [PATCH] qemu_iotests: Remove _readlink()

2017-04-21 Thread Kevin Wolf
It is unused. Suggestetd-by: Fam Zheng Signed-off-by: Kevin Wolf --- tests/qemu-iotests/common.config | 18 -- 1 file changed, 18 deletions(-) diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config index

[Qemu-devel] [PULL 11/11] s390x: Drop useless casts

2017-04-21 Thread Cornelia Huck
From: Eric Blake An upcoming Coccinelle cleanup script wanted to reformat the casts present in this file - but on closer look, we don't need the casts at all because C automatically converts void* to any other pointer. Signed-off-by: Eric Blake Message-Id:

[Qemu-devel] [PULL 06/11] s390x/css: consolidate the devno property for ccw devices

2017-04-21 Thread Cornelia Huck
From: Dong Jia Shi 'devno' should rather be a property of the ccw device, instead of a property of a specific virtio-ccw device. Let's consolidate it. While we are at here, also rename CcwDevice.bus_id to CcwDevice.devno to make things clearer. Signed-off-by: Dong

[Qemu-devel] [PULL 05/11] s390x/css: provide introspection for virtual subchannel and device busid

2017-04-21 Thread Cornelia Huck
From: Dong Jia Shi Expose the busids of the virtual I/O subchannel and the virtual CCW device to ease debugging. This is needed because: 1. subchannel id are assigned dynamically, and cannot be set from outside. 2. device busid could possibly be auto generated.

[Qemu-devel] [PULL 10/11] s390x: register I/O adapters per ISC during init

2017-04-21 Thread Cornelia Huck
From: Fei Li The I/O adapters should exist as soon as the bus/infrastructure exists, and not only when the guest is actually trying to do something with them. While the lazy allocation was not wrong, allocating at init time is cleaner, both for the architecture and

[Qemu-devel] [PULL 04/11] s390x/css: introduce read-only property type for device ids

2017-04-21 Thread Cornelia Huck
From: Dong Jia Shi Let's introduce a read-only property type that handles device ids of the CssDevId type used for channel devices for future use. e.g. exposing the busid of an I/O subchannel that is assigned to a ccw device. Signed-off-by: Dong Jia Shi

[Qemu-devel] [PULL 07/11] s390x: use enum for adapter type and standardize its naming

2017-04-21 Thread Cornelia Huck
From: Fei Li Let's use an enum for io adapter type, and standardize its naming to CSS_IO_ADAPTER_* by changing S390_PCIPT_ADAPTER to CSS_IO_ADAPTER_PCI. Signed-off-by: Fei Li Reviewed-by: Cornelia Huck

[Qemu-devel] [PULL 08/11] s390x: initialize flic before I/O subsystems

2017-04-21 Thread Cornelia Huck
From: Fei Li Let's have a flic before we move on to initialize more specific subsystems that make use of it. Signed-off-by: Fei Li Reviewed-by: Cornelia Huck Signed-off-by: Cornelia Huck

[Qemu-devel] [PULL 02/11] s390x/kvm: make printf always compile in debug output

2017-04-21 Thread Cornelia Huck
From: Danil Antonov Wrapped printf calls inside debug macros (DPRINTF) in `if` statement. This will ensure that printf function will always compile even if debug output is turned off and, in turn, will prevent bitrot of the format strings. Signed-off-by: Danil Antonov

[Qemu-devel] [PULL 09/11] s390x/flic: cache flic in s390_get_flic

2017-04-21 Thread Cornelia Huck
From: Fei Li s390_get_flic() is called many times to obtain the flic. This wastes a lot of time as it calls object_resolve_path() every time. Let's cache S390FLICState by defining it as static. Signed-off-by: Fei Li Signed-off-by:

[Qemu-devel] [PULL 03/11] s390x/pci: make printf always compile in debug output

2017-04-21 Thread Cornelia Huck
From: Danil Antonov Wrapped printf calls inside debug macros (DPRINTF) in `if` statement. This will ensure that printf function will always compile even if debug output is turned off and, in turn, will prevent bitrot of the format strings. Signed-off-by: Danil Antonov

[Qemu-devel] [PULL 00/11] s390x patches for 2.10

2017-04-21 Thread Cornelia Huck
The following changes since commit da92ada855036c55bd08b0b0c64c7551d56f3586: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20170420' into staging (2017-04-20 17:41:34 +0100) are available in the git repository at: git://github.com/cohuck/qemu tags/s390x-20170421

[Qemu-devel] [PULL 01/11] s390x: introduce 2.10 compat machine

2017-04-21 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- hw/s390x/s390-virtio-ccw.c | 17 - include/hw/compat.h| 3 +++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 40914fde6f..5ac315ac78

[Qemu-devel] [PATCH v7] Allow setting NUMA distance for different NUMA nodes

2017-04-21 Thread He Chen
This patch is going to add SLIT table support in QEMU, and provides additional option `dist` for command `-numa` to allow user set vNUMA distance by QEMU command. With this patch, when a user wants to create a guest that contains several vNUMA nodes and also wants to set distance among those

[Qemu-devel] [PATCH] MAINTAINERS: update my email address

2017-04-21 Thread Xie Changlong
From: Zhang Chen I'm leaving my job at Fujitsu, this email address will stop working this week. Update it to one that I will have access to later. Signed-off-by: Xie Changlong --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Qemu-devel] Jailhouse on Ultrascale+ (ZCU102)

2017-04-21 Thread Constantin Petra
OK, Changed configs for inmate to UART0, and the messages appeared on the console (on the ZCU102 board, not QEMU), so it is indeed functional. root@plnx_aarch64:~# jailhouse/usr/local/sbin/jailhouse cell start ZynqMP-linux-demo Started cell "ZynqMP-linux-demo" Hello 1 from cell! Hello 2 from

Re: [Qemu-devel] [PATCH 03/14] cg3: remove unused width and height variables

2017-04-21 Thread Mark Cave-Ayland
On 18/04/17 15:55, Richard Henderson wrote: > On 04/18/2017 07:38 AM, Mark Cave-Ayland wrote: >> On 15/04/17 11:54, Richard Henderson wrote: >> >>> On 04/05/2017 01:35 AM, Mark Cave-Ayland wrote: These aren't required since we can use the display width and height directly.

Re: [Qemu-devel] [PATCH 12/15] savevm: split the process of different stages for loadvm/savevm

2017-04-21 Thread Hailiang Zhang
On 2017/4/20 17:09, Dr. David Alan Gilbert wrote: * Hailiang Zhang (zhang.zhanghaili...@huawei.com) wrote: On 2017/4/8 1:18, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: There are several stages during loadvm/savevm process. In different stage,

[Qemu-devel] [PATCH] Block layer core: Fix qemu-img 'amend' subcommand failure of adjusting backing file in different path

2017-04-21 Thread Ping Li
Currently, qemu-img 'amend' subcommand would fail to adjust image's backing file which was moved into different path. For example, parent.qcow2, the backing file of leaf.qcow2, first is at /home/a/, then moved into /home/b/. Originally this command, "qemu-img amend -f qcow2 -o

[Qemu-devel] Require for English style review (was RE: [PATCH v17 0/2] virtio-crypto: virtio crypto device specification)

2017-04-21 Thread Gonglei (Arei)
Hi all, As a non-native English speaker, I sincerely hope you give me more suggestions about English style and/or grammar for the spec. Thanks in advance! -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Thursday, April 13, 2017 5:11 PM > To: qemu-devel@nongnu.org;

<    1   2   3   4