[Qemu-devel] [PATCH] qemu-img: supplement the omitted 'disk size' bytes info

2017-06-06 Thread sochin.jiang
From: "sochin.jiang" Supplement the omitted 'disk size' bytes information when using 'qemu-img info',it is useful in some occasion. Anyhow, it looks strange that 'virtual size' has bytes while actual 'disk size' does not. Signed-off-by: sochin.jiang --- block/qapi.c | 5 +++-- 1 file ch

Re: [Qemu-devel] [PATCH v3] ivshmem-server: ivshmem-client: Build when eventfd() is available

2017-06-06 Thread Michael Tokarev
06.06.2017 09:54, Markus Armbruster wrote: [ ./configure --disable-linux-user --disable-system --static ] > I haven't, but here's a quick guess on what we need to squash into the > patch: > > diff --git a/Makefile b/Makefile > index c830d7a..2ef5a78 100644 > --- a/Makefile > +++ b/Makefile > @@

Re: [Qemu-devel] [PATCH 3/4] ram: Print block stats also in the complete case

2017-06-06 Thread Peter Xu
On Fri, Jun 02, 2017 at 06:55:30PM +0100, Dr. David Alan Gilbert wrote: > * Juan Quintela (quint...@redhat.com) wrote: > > To make things easier, I just moved it to populate_ram_info(). > > Blk is not RAM; better to create a separate function. Agree... Maybe rename populate_ram_info() into more

Re: [Qemu-devel] qdev properties vs qom object properties

2017-06-06 Thread Markus Armbruster
Paolo Bonzini writes: > On 05/06/2017 15:10, Peter Maydell wrote: >> I perpetually get confused about qdev properties vs QOM object >> properties. >> >> Why do we have both of these APIs? >> How do they interact? > > qdev properties are just a wrapper around QOM object properties, taking > care

[Qemu-devel] [PATCH v2 0/4] nvdimm: fixes for (non-)dax backends

2017-06-06 Thread Haozhong Zhang
This is v2 of patch series https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg05919.html. Changes in v2: * Patch 2: use major/minor numbers of device and sysfs to check whether a backend file refers to DAX device. (Dan & Stefan) * Patch 3: set ACPI_NFIT_MEM_NOT_ARMED bit of state flags in

[Qemu-devel] [PATCH v2 3/4] nvdimm: add a boolean option "restrict"

2017-06-06 Thread Haozhong Zhang
If a vNVDIMM device is not backed by a DAX device and its "restrict" option is enabled, bit 3 of state flags in its region mapping structure will be set, in order to notify the guest of the lack of write persistence guarantee. Once this bit is set, the guest OS may mark the vNVDIMM device as read-o

[Qemu-devel] [PATCH v2 2/4] nvdimm: warn if the backend is not a DAX device

2017-06-06 Thread Haozhong Zhang
Applications in Linux guest that use device-dax never trigger flush that can be trapped by KVM/QEMU. Meanwhile, if the host backend is not device-dax, QEMU cannot guarantee the persistence of guest writes. Before solving this flushing problem, QEMU should warn users if the host backend is not devic

[Qemu-devel] [PATCH v2 4/4] util/mmap-alloc: account for DAX device in qemu_fd_getpagesize

2017-06-06 Thread Haozhong Zhang
A DAX device may require a page size different than getpagesize(). Signed-off-by: Haozhong Zhang --- include/qemu/osdep.h | 10 ++ util/mmap-alloc.c| 6 ++ util/osdep.c | 23 +++ 3 files changed, 39 insertions(+) diff --git a/include/qemu/osdep.h b/i

[Qemu-devel] [PATCH v2 1/4] nvdimm: add a macro for property "label-size"

2017-06-06 Thread Haozhong Zhang
Signed-off-by: Haozhong Zhang --- hw/mem/nvdimm.c | 2 +- include/hw/mem/nvdimm.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index db896b0bb6..a9b0863f20 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -66,7 +66,7 @@ out:

Re: [Qemu-devel] [Qemu devel v5 PATCH 5/5] msf2: Add Emcraft's Smartfusion2 SOM kit.

2017-06-06 Thread sundeep subbaraya
Hi Philippe, On Wed, May 31, 2017 at 11:34 AM, Philippe Mathieu-Daudé wrote: > Hi Subbaraya, > > > On 05/16/2017 12:38 PM, Subbaraya Sundeep wrote: > >> Emulated Emcraft's Smartfusion2 System On Module starter >> kit. >> >> Signed-off-by: Subbaraya Sundeep >> --- >> hw/arm/Makefile.objs | 1 +

Re: [Qemu-devel] [PATCH v5 1/2] tests: check-qom-proplist: add checks for cmdline-created objects

2017-06-06 Thread Markus Armbruster
Michael Roth writes: > check-qom-proplist originally added tests for verifying that > object-creation helpers object_new_with_{props,propv} behaved in > similar fashion to the "traditional" method involving setting each > individual property separately after object creation rather than > via a si

[Qemu-devel] [PULL 0/4] Miscellaneous patches for 2017-06-06

2017-06-06 Thread Markus Armbruster
The following changes since commit 199e19ee538eb61fd08b1c1ee5aa838ebdcc968e: Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into staging (2017-06-05 15:28:12 +0100) are available in the git repository at: git://repo.or.cz/qemu/armbru.git tags/pull-misc-2017-06-06 for

[Qemu-devel] [PULL 3/4] tests: check-qom-proplist: add checks for cmdline-created objects

2017-06-06 Thread Markus Armbruster
From: Michael Roth check-qom-proplist originally added tests for verifying that object-creation helpers object_new_with_{props,propv} behaved in similar fashion to the "traditional" method involving setting each individual property separately after object creation rather than via a single call.

Re: [Qemu-devel] [Qemu devel v5 PATCH 4/5] msf2: Add Smartfusion2 SoC.

2017-06-06 Thread sundeep subbaraya
Hi Alistair, On Wed, May 31, 2017 at 4:03 AM, Alistair Francis wrote: > On Sun, May 28, 2017 at 10:17 PM, sundeep subbaraya > wrote: > > Hi Alistair, > > > > On Sat, May 27, 2017 at 5:18 AM, Alistair Francis > > wrote: > >> > >> On Tue, May 16, 2017 at 8:38 AM, Subbaraya Sundeep > >> wrote: >

[Qemu-devel] [PULL 2/4] virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk

2017-06-06 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <1494327362-30727-3-git-send-email-arm...@redhat.com> Acked-by: Paolo Bonzini --- tests/virtio-scsi-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/virtio-scsi-test.c b/tests/virtio-scsi-test.c index 8b0f77a..eff71df 1

[Qemu-devel] [PULL 4/4] monitor: fix object_del for command-line-created objects

2017-06-06 Thread Markus Armbruster
From: Michael Roth Currently objects specified on the command-line are only partially cleaned up when 'object_del' is issued in either HMP or QMP: the object itself is fully finalized, but the QemuOpts are not removed. This results in the following behavior: x86_64-softmmu/qemu-system-x86_64 -

[Qemu-devel] [PULL 1/4] block: Clarify documentation of BlockInfo member io-status

2017-06-06 Thread Markus Armbruster
Say "SCSI except scsi-generic" instead of "scsi-disk", because scsi-disk could mean either scsi-disk.c (which is correct) or device model scsi-disk (which would be incorrect). Signed-off-by: Markus Armbruster Message-Id: <1494327362-30727-2-git-send-email-arm...@redhat.com> Acked-by: Paolo Bonzin

[Qemu-devel] [PATCH 1/2] nvme: Update header to include SGL related macros and members

2017-06-06 Thread Qu Wenruo
Update nvme header to catch up with kernel. Most of the newly added members are from 1.2 and 1.3 spec, while the status code is only kept the same with kernel (around 1.1 spec). The major update is to add Scatter Gather List related macros and members, for later SGL support implementation. Signed

Re: [Qemu-devel] [Qemu devel v5 PATCH 4/5] msf2: Add Smartfusion2 SoC.

2017-06-06 Thread sundeep subbaraya
Hi Philippe, On Wed, May 31, 2017 at 11:13 AM, Philippe Mathieu-Daudé wrote: > Hi Subbaraya, > > So far so good! > > > On 05/16/2017 12:38 PM, Subbaraya Sundeep wrote: > >> Smartfusion2 SoC has hardened Microcontroller subsystem >> and flash based FPGA fabric. This patch adds support for >> Micr

[Qemu-devel] [PATCH 2/2] nvme: Check PSDT flag for admin and rw command

2017-06-06 Thread Qu Wenruo
Check PRP or SGL for Data Transfer(PSDT) flag for admin and read/write commands. For NVMe-over-PCIE, admin sq entry should not set SGL bits. and rw sq entry PSDT flag should not be set beyond controller support. Although currently either linux kernel NVMe-over-PCIE host driver uses SGL nor qemu n

Re: [Qemu-devel] [PATCH 1/5] ram: Call migration_page_queue_free() at ram_migration_cleanup()

2017-06-06 Thread Peter Xu
On Fri, Jun 02, 2017 at 12:08:09AM +0200, Juan Quintela wrote: > We shouldn't be using memory later than that. > > Signed-off-by: Juan Quintela Reviewed-by: Peter Xu > --- > migration/migration.c | 2 -- > migration/ram.c | 5 +++-- > migration/ram.h | 1 - > 3 files changed, 3 in

Re: [Qemu-devel] [PATCH 2/5] ram: Move ZERO_TARGET_PAGE inside XBZRLE

2017-06-06 Thread Peter Xu
On Fri, Jun 02, 2017 at 12:08:10AM +0200, Juan Quintela wrote: > It was only used by XBZRLE anyways. > > Signed-off-by: Juan Quintela Reviewed-by: Peter Xu > --- > migration/ram.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/migration/ram.c b/migration

Re: [Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-06 Thread Peter Xu
On Mon, Jun 05, 2017 at 01:34:45PM +0100, Dr. David Alan Gilbert wrote: > * Juan Quintela (quint...@redhat.com) wrote: > > RAM Statistics need to survive migration to make info migrate work, so we > > need to store them outside of RAMState. As we already have an struct > > with those fields, just

[Qemu-devel] [PATCH V3 3/3] COLO-compare: Add remote initialization and checkpoint notification

2017-06-06 Thread Zhang Chen
Initialize remote communication socket and make a handshack with remote colo-frame. Then use this way to notify remote colo-frame do checkpoint. Signed-off-by: Zhang Chen --- net/colo-compare.c | 32 1 file changed, 32 insertions(+) diff --git a/net/colo-compar

[Qemu-devel] [PATCH V3 2/3] COLO-compare: Add remote checkpoint notify chardev socket handler frame

2017-06-06 Thread Zhang Chen
Add chardev handler to get remote colo-frame's notify, Xen colo is the first user. Signed-off-by: Zhang Chen --- net/colo-compare.c | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/net/colo-compare.c b/net/colo-compare.c index 6f8c439.

[Qemu-devel] [PATCH V3 0/3] COLO-compare: Make COLO-compare support remote COLO-frame

2017-06-06 Thread Zhang Chen
This series focus on COLO-proxy remote colo-frame support. Xen COLO-frame is the first user. We add a new chardev socket in colo-compare as the way of communicate with remote COLO-frame. And remote COLO-frame notify colo-proxy part depend on this serise: https://lists.nongnu.org/archive/html/qemu-d

[Qemu-devel] [PATCH V3 1/3] COLO-compare: Add new parameter for communicate with remote colo-frame

2017-06-06 Thread Zhang Chen
We add the "notify_dev=chardevID" parameter. colo-compare can connect with remote colo-frame through chardev socket, Xen colo-frame is the first user. We can notify colo-frame do checkpoint events. Signed-off-by: Zhang Chen --- net/colo-compare.c | 20 qemu-options.hx| 4

Re: [Qemu-devel] [PATCH 5/5] ram: Make RAMState dynamic

2017-06-06 Thread Peter Xu
On Fri, Jun 02, 2017 at 12:08:13AM +0200, Juan Quintela wrote: > We create the variable while we are at migration and we remove it > after migration. > > Signed-off-by: Juan Quintela > --- > migration/ram.c | 52 > 1 file changed, 32 insertion

Re: [Qemu-devel] [PATCH v2 1/3] compiler: define QEMU_CACHELINE_SIZE

2017-06-06 Thread Richard Henderson
On 06/05/2017 10:39 PM, Pranith Kumar wrote: Is there any reason not to use sysconf(_SC_LEVEL1_DCACHE_LINESIZE)? That's an excellent idea. In fact... see reply to 3/3. r~

Re: [Qemu-devel] [PATCH v2 1/1] s390x: vmstatify config migration for virtio-ccw

2017-06-06 Thread Christian Borntraeger
On 06/02/2017 04:05 PM, Halil Pasic wrote: > Let's vmstatify virtio_ccw_save_config and virtio_ccw_load_config for > flexibility (extending using subsections) and for fun. > > To achieve this we need to hack the config_vector, which is VirtIODevice > (that is common virtio) state, in the middle of

Re: [Qemu-devel] [PATCH v2 3/3] tcg: allocate TB structs before the corresponding translated code

2017-06-06 Thread Richard Henderson
On 06/05/2017 03:49 PM, Emilio G. Cota wrote: +TranslationBlock *tcg_tb_alloc(TCGContext *s) +{ +void *aligned; + +aligned = (void *)ROUND_UP((uintptr_t)s->code_gen_ptr, QEMU_CACHELINE_SIZE); +if (unlikely(aligned + sizeof(TranslationBlock) > s->code_gen_highwater)) { +return

Re: [Qemu-devel] [PATCH v1 1/2] s390x/cpumodel: take care of the cpuid format bit for KVM

2017-06-06 Thread Christian Borntraeger
On 05/31/2017 09:34 PM, David Hildenbrand wrote: > Let's also properly forward that bit. It should always be set. I > verified it under z/VM, it seems to be always set there. For now, > zKVM guests never get that bit set when the CPU model is active. > > The PoP mentiones, that z800 + z900 (HW gen

[Qemu-devel] [PATCH 0/7] spapr: DRC cleanups (part III)

2017-06-06 Thread David Gibson
A third batch of cleanups to the DRC code. This continues to clear away relatively simple cruft, to get a clearer look at the fundamental state handling. David Gibson (7): spapr: Clean up DR entity sense handling spapr: Abolish DRC get_name method spapr: Assign DRC names from owners spapr

[Qemu-devel] [PATCH 1/7] spapr: Clean up DR entity sense handling

2017-06-06 Thread David Gibson
DRC classes have an entity_sense method to determine (in a specific PAPR sense) the presence or absence of a device plugged into a DRC. However, we only have one implementation of the method, which explicitly tests for different DRC types. This changes it to instead have different method implemen

[Qemu-devel] [PATCH 5/7] spapr: Clean up RTAS set-indicator

2017-06-06 Thread David Gibson
In theory the RTAS set-indicator call can be used for a number of "indicators" defined by PAPR. In practice the only ones we're ever likely to implement are those used for Dynamic Reconfiguration (i.e. hotplug). Because of this, the current implementation determines the associated DRC object, befo

[Qemu-devel] [PATCH 6/7] spapr: Clean up handling of DR-indicator

2017-06-06 Thread David Gibson
There are 3 types of "indicator" associated with hotplug in the PAPR spec the "allocation state", "isolation state" and "DR-indicator". The first two are intimately tied to the various state transitions associated with hotplug. The DR-indicator, however, is different and simpler. It's basically

[Qemu-devel] [PATCH 2/7] spapr: Abolish DRC get_name method

2017-06-06 Thread David Gibson
DRConnectorClass has a get_name method, however: * There's only one implementation, and only ever likely to be one * There's exactly one caller, which is (now) local * The implementation is trivial So just open-code what we need. Signed-off-by: David Gibson --- hw/ppc/spapr_drc.c

[Qemu-devel] [PATCH 4/7] spapr: Don't misuse DR-indicator in spapr_recover_pending_dimm_state()

2017-06-06 Thread David Gibson
With some combinations of migration and hotplug we can lost temporary state indicating how many DRCs (guest side hotplug handles) are still connected to a DIMM object in the process of removal. When we hit that situation spapr_recover_pending_dimm_state() is used to scan more extensively and work

[Qemu-devel] [PATCH 3/7] spapr: Assign DRC names from owners

2017-06-06 Thread David Gibson
At present, spapr_dr_connector_new assigns a name to the drc based on its type and ID. The few places the DRC name are used, however, are supposed to give some sort of human-useful information to correlate guest-side problems with host-side resources (for PCI devices it's supposed to be a physical

[Qemu-devel] [PATCH 7/7] spapr: Change DRC attach & detach methods to functions

2017-06-06 Thread David Gibson
DRC objects have attach & detach methods, but there's only one implementation. Although there are some differences in its behaviour for different DRC types, the overall structure is the same, so while we might want different method implementations for some parts, we're unlikely to want them for th

Re: [Qemu-devel] [PATCH v1 2/2] s390x/cpumodel: improve defintion search without an IBC

2017-06-06 Thread Christian Borntraeger
On 06/02/2017 07:28 PM, Halil Pasic wrote: [...] > Maybe integrating some of the discussion from above into the commit > message would be helpful. applied with the following patch description Currently, under z/VM on a 0x2827, QEMU will detect a 0x2828 if no IBC value is provided. QEMU will simp

Re: [Qemu-devel] [PATCH v1 2/2] s390x/cpumodel: improve defintion search without an IBC

2017-06-06 Thread David Hildenbrand
On 06.06.2017 10:39, Christian Borntraeger wrote: > On 06/02/2017 07:28 PM, Halil Pasic wrote: > [...] >> Maybe integrating some of the discussion from above into the commit >> message would be helpful. > > applied with the following patch description Just wanted to ask you to do that :) Thanks!

Re: [Qemu-devel] qdev properties vs qom object properties

2017-06-06 Thread Gerd Hoffmann
Hi, > Any plan to replace properties defined as data by properties defined > in > code will be a hard sell with me.  I think we should go back to data > unless the problem at hand *requires* code. There *are* some cases which require code, specifically QOM properties which are writable after re

[Qemu-devel] [PATCH v2 2/2] aspeed: add a temp sensor device on I2C bus 3

2017-06-06 Thread Cédric Le Goater
Temperatures can be changed from the monitor with : (qemu) qom-set /machine/unattached/device[2] temperature0 12000 Signed-off-by: Cédric Le Goater --- hw/arm/aspeed.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index e824ea87a9af..155e

[Qemu-devel] [PATCH v2 1/2] hw/misc: add a TMP42{1, 2, 3} device model

2017-06-06 Thread Cédric Le Goater
Largely inspired by the TMP105 temperature sensor, here is a model for the TMP42{1,2,3} temperature sensors. Specs can be found here : http://www.ti.com/lit/gpn/tmp421 Signed-off-by: Cédric Le Goater --- Changes since v1: - made tmp421_info an abstract class. - added a class size

[Qemu-devel] [PATCH v2 0/2] aspeed: add a TMP421 device to the palmetto machine

2017-06-06 Thread Cédric Le Goater
Hello, This series fixes issues in the TMP421 model previously sent and adds such a device to the palmetto machine. Thanks, C. Cédric Le Goater (2): hw/misc: add a TMP42{1,2,3} device model aspeed: add a temp sensor device on I2C bus 3 default-configs/arm-softmmu.mak | 1 + hw/arm/aspee

[Qemu-devel] [PATCH] timer/aspeed: fix timer enablement when a reload is not set

2017-06-06 Thread Cédric Le Goater
When a timer is enabled before a reload value is set, the controller waits for a reload value to be set before starting decrementing. This fix tries to cover that case by changing the timer expiry only when a reload value is valid. Signed-off-by: Cédric Le Goater --- hw/timer/aspeed_timer.c | 37

Re: [Qemu-devel] [PULL 00/26] tcg queued patches

2017-06-06 Thread Peter Maydell
On 5 June 2017 at 17:52, Richard Henderson wrote: > This contains several patches to fix compilation on ilp32 abis on > 64-bit hosts, such as sparcv8plus and x32. It also contains the > goto_ptr feature proposed by Emilio Cota. > > > r~ > > > The following changes since commit 199e19ee538eb61fd08

Re: [Qemu-devel] [PATCH v1 2/2] s390x/cpumodel: improve defintion search without an IBC

2017-06-06 Thread David Hildenbrand
> Your change makes a lot of sense, but ain't easy to understand IMHO. > > Maybe integrating some of the discussion from above into the commit > message would be helpful. Especially this assumption that the client code > is fine with getting a more recent GA version (and anything influenced by > i

Re: [Qemu-devel] [PULL 0/4] target/xtensa fixes

2017-06-06 Thread Peter Maydell
On 5 June 2017 at 18:01, Max Filippov wrote: > Hi Peter, > > please pull my current target/xtensa queue: > > The following changes since commit c6e84fbd447a51e1161d74d71566a5f67b47eac5: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2017-06-02 17:46:22 +0100) >

Re: [Qemu-devel] [PATCH 18/19] nbd/client: refactor TRACE of NBD_MAGIC

2017-06-06 Thread Vladimir Sementsov-Ogievskiy
05.06.2017 18:06, Eric Blake wrote: On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- nbd/client.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/nbd/client.c b/nbd/client.c index 3d155

Re: [Qemu-devel] [PATCH 19/19] nbd: use generic trace subsystem instead of TRACE macro

2017-06-06 Thread Vladimir Sementsov-Ogievskiy
05.06.2017 18:23, Eric Blake wrote: [adding Stefan as trace maintainer] On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- Makefile.objs | 1 + nbd/client.c | 77 nbd/n

Re: [Qemu-devel] [PATCH 19/19] nbd: use generic trace subsystem instead of TRACE macro

2017-06-06 Thread Vladimir Sementsov-Ogievskiy
I'll update this (with removed 11-13) after "nbd refactoring part 1" pushed (actually, the first part of these series). 05.06.2017 18:23, Eric Blake wrote: [adding Stefan as trace maintainer] On 05/30/2017 09:30 AM, Vladimir Sementsov-Ogievskiy wrote: [...] -- Best regards, Vladimir

Re: [Qemu-devel] [PATCH] split c and cxx extra flags

2017-06-06 Thread Bruno Dominguez
Adding Peter Maydell in the cc and removing Claudio Fontana (It fails sending to that address) Bruno. 2017-06-02 14:07 GMT+01:00 Bruno Dominguez : > There was no possibility to add specific cxx flags using the configure > file. So A new entrance has been created to support it. > > Duplication of

Re: [Qemu-devel] [PATCH] split c and cxx extra flags

2017-06-06 Thread Stefan Hajnoczi
On Fri, Jun 02, 2017 at 02:07:26PM +0100, Bruno Dominguez wrote: > There was no possibility to add specific cxx flags using the configure > file. So A new entrance has been created to support it. > > Duplication of information in configure and rules.mak. Taking > QEMU_CFLAGS and add them to QEMU_C

Re: [Qemu-devel] [RFC PATCH v1 0/9] BQL and Replay Lock changes

2017-06-06 Thread Alex Bennée
Pavel Dovgalyuk writes: > Alex, > > Do you have newer fixed version of these patches? I was waiting to see if there where any other review comments for the rest of the RFC series before re-spinning. > > Pavel Dovgalyuk > > >> -Original Message- >> From: Alex Bennée [mailto:alex.ben...@

Re: [Qemu-devel] [PATCH] split c and cxx extra flags

2017-06-06 Thread Bruno Dominguez
2017-06-06 10:28 GMT+01:00 Stefan Hajnoczi : > On Fri, Jun 02, 2017 at 02:07:26PM +0100, Bruno Dominguez wrote: >> There was no possibility to add specific cxx flags using the configure >> file. So A new entrance has been created to support it. >> >> Duplication of information in configure and rule

Re: [Qemu-devel] [RISU PATCH v4 01/10] .gitignore: ignore build directories

2017-06-06 Thread Peter Maydell
On 2 June 2017 at 17:08, Alex Bennée wrote: > These are generated by the build-all-arches script. > > Signed-off-by: Alex Bennée > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index fc84419..fca9128 100644 > --- a/.gitignore > +++ b/.gitigno

Re: [Qemu-devel] [PATCH v7 0/7] trace: [tcg] Optimize per-vCPU tracing states with separate TB caches

2017-06-06 Thread Stefan Hajnoczi
On Thu, Jun 01, 2017 at 03:55:44PM -0400, Emilio G. Cota wrote: > On Fri, Jan 13, 2017 at 21:48:09 +0100, Lluís Vilanova wrote: > (snip) > > To handle both issues, this series integrates the dynamic tracing event > > state > > into the TB hashing function, so that vCPUs tracing different events wi

Re: [Qemu-devel] [RISU PATCH v4 04/10] risu: a bit more verbosity when running

2017-06-06 Thread Peter Maydell
On 2 June 2017 at 17:08, Alex Bennée wrote: > Before this is could seem a little quite when running as you had no > indication stuff was happening (or how fast). I only dump on the master > side as I want to minimise the amount of qemu logs to sift through. > > Signed-off-by: Alex Bennée > > -- >

Re: [Qemu-devel] [RISU PATCH v4 05/10] risu: paramterise send/receive functions

2017-06-06 Thread Peter Maydell
On 2 June 2017 at 17:08, Alex Bennée wrote: > This is a precursor to record/playback support. Instead of passing the > socket fd we now pass helper functions for reading/writing and > responding. This will allow us to do the rest of the record/playback > cleanly outside of the main worker function

Re: [Qemu-devel] [RISU PATCH v4 05/10] risu: paramterise send/receive functions

2017-06-06 Thread Alex Bennée
Peter Maydell writes: > On 2 June 2017 at 17:08, Alex Bennée wrote: >> This is a precursor to record/playback support. Instead of passing the >> socket fd we now pass helper functions for reading/writing and >> responding. This will allow us to do the rest of the record/playback >> cleanly outs

[Qemu-devel] [PATCH 1/6] migration: let MigrationState be a qdev

2017-06-06 Thread Peter Xu
Let the old man "MigrationState" join the object family. Direct benefit is that we can start to use all the property features derived from current QDev, like: HW_COMPAT_* bits, command line setup for migration parameters (so will never need to set them up each time using HMP/QMP, this is really, re

[Qemu-devel] [PATCH 3/6] migration: use compat bit for global_state

2017-06-06 Thread Peter Xu
Removing two callers of global_state_set_optional() since now we can use HW_COMPAT_2_3. However there is still one more caller (xen_init), so we still need to keep the function until it disappears. Signed-off-by: Peter Xu --- hw/i386/pc_piix.c | 1 - hw/ppc/spapr.c | 1 - include/hw/compa

[Qemu-devel] [PATCH 6/6] migration: move skip_section_footers

2017-06-06 Thread Peter Xu
Move it into MigrationState, with a property binded to it. Same trick played with HW_COMPAT_2_3. Signed-off-by: Peter Xu --- hw/i386/pc_piix.c | 1 - hw/ppc/spapr.c| 1 - include/hw/compat.h | 4 include/migration/migration.h | 2 ++ migration/migratio

[Qemu-devel] [PATCH 0/6] migration: objectify MigrationState

2017-06-06 Thread Peter Xu
I picked this topic out as suggested by Juan. Also I did what Juan has suggested in previous discussions that I moved lots of global parameters into MigrationState, and let them be properties. Then we can use HW_COMPAT_* and "-global migration.xxx=xxx" formular. If without xen_init(), we can remov

[Qemu-devel] [PATCH 4/6] migration: move only_migratable to MigrationState

2017-06-06 Thread Peter Xu
One less global variable, and it does only matter with migration. We keep the old "--only-migratable" option, but also now we support: -global migration.only-migratable=true Currently still keep the old interface. Signed-off-by: Peter Xu --- include/migration/migration.h | 3 +++ include/sy

[Qemu-devel] [PATCH 2/6] migration: move global_state.optional out

2017-06-06 Thread Peter Xu
Put it into MigrationState then we can use the properties to specify whether to enable storing global state. Signed-off-by: Peter Xu --- include/migration/migration.h | 6 ++ migration/migration.c | 21 + 2 files changed, 23 insertions(+), 4 deletions(-) diff --

Re: [Qemu-devel] [PATCH v3 0/5] Fix handling of IPv4/IPv6 dual stack

2017-06-06 Thread Gerd Hoffmann
On Thu, 2017-06-01 at 09:29 +0100, Daniel P. Berrange wrote: > This series aims to fix a lot of bugs related to handling of IPv4 / > IPv6 > dual stack. > >  - The VNC server mistakenly listened on two separate ports 5900+5901 >    when the to= parameter was given >  - IPv6 sockets are accepting IP

[Qemu-devel] [PATCH 5/6] migration: move skip_configuration out

2017-06-06 Thread Peter Xu
It was in SaveState but now moved to MigrationState altogether. Again, using HW_COMPAT_2_3 for old PC/SPAPR machines but still we'll have to keep savevm_skip_configuration() since used by xen_init(). Signed-off-by: Peter Xu --- hw/i386/pc_piix.c | 1 - hw/ppc/spapr.c

Re: [Qemu-devel] [PATCH] split c and cxx extra flags

2017-06-06 Thread Stefan Hajnoczi
On Tue, Jun 6, 2017 at 10:45 AM, Bruno Dominguez wrote: > 2017-06-06 10:28 GMT+01:00 Stefan Hajnoczi : >> On Fri, Jun 02, 2017 at 02:07:26PM +0100, Bruno Dominguez wrote: >>> @@ -1489,37 +1498,6 @@ if test "$bogus_os" = "yes"; then >>> error_exit "Unrecognized host OS $targetos" >>> fi >>> >

[Qemu-devel] [PATCH v2] target/xtensa: support output to chardev console

2017-06-06 Thread Max Filippov
In semihosting mode QEMU allows guest to read and write host file descriptors directly, including descriptors 0..2, a.k.a. stdin, stdout and stderr. Sometimes it's desirable to have semihosting console controlled by -serial option, e.g. to connect it to network. Add semihosting console to xtensa-s

[Qemu-devel] [PULL v2 0/4] target/xtensa fixes

2017-06-06 Thread Max Filippov
rth/tags/pull-tcg-20170605' into staging (2017-06-05 18:03:43 +0100) are available in the git repository at: git://github.com/OSLL/qemu-xtensa.git tags/20170606-xtensa for you to fetch changes up to dd7b952b793e341c905355581a21cdbaa8b13c31: target/xtensa: handle unknown registers in gdb

[Qemu-devel] [PATCH 2/4] sdl: prefer sdl2 over sdl1

2017-06-06 Thread Gerd Hoffmann
In case the configure script finds both SDL 1.2 and SDL 2.x installed it still prefers SDL 1.2. Prefer SDL 2.x instead. Signed-off-by: Gerd Hoffmann --- configure | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b75b9c57c0..44c773a5cd 10

[Qemu-devel] [PATCH 0/4] gtk/sdl: use newer versions by default, deprecate the old ones.

2017-06-06 Thread Gerd Hoffmann
Hi, High time to use new versions (gtk3 and SDL2) by default. This patch series switches over qemu to prefer the newer versions and adds a deprecation warning for the old versions. Note that qemu uses the new versions automatically for quite a while already in case the older isn't installed.

[Qemu-devel] [PATCH 4/4] sdl: add deprecation warning for sdl1

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- configure | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 41c213b378..5af180c57d 100755 --- a/configure +++ b/configure @@ -5251,6 +5251,12 @@ if test "$gtkabi" = "2.0"; then echo "WARNING: Please consider using gtk3 inst

[Qemu-devel] [PATCH 1/4] gtk: prefer gtk3 over gtk2

2017-06-06 Thread Gerd Hoffmann
In case the configure script finds both gtk2 and gtk3 installed it still prefers gtk2 over gtk3. Prefer gtk3 instead. Signed-off-by: Gerd Hoffmann --- configure | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 13e040d28c..b75b9c57c0

[Qemu-devel] [PATCH 3/4] gtk: add deprecation warning for gtk2

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- configure | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 44c773a5cd..41c213b378 100755 --- a/configure +++ b/configure @@ -5245,6 +5245,12 @@ if test "$supported_os" = "no"; then echo "us upstream at qemu-devel@nongnu.or

Re: [Qemu-devel] [PATCH 0/4] gtk/sdl: use newer versions by default, deprecate the old ones.

2017-06-06 Thread Marc-André Lureau
On Tue, Jun 6, 2017 at 2:54 PM Gerd Hoffmann wrote: > Hi, > > High time to use new versions (gtk3 and SDL2) by default. This patch > series switches over qemu to prefer the newer versions and adds a > deprecation warning for the old versions. > > Note that qemu uses the new versions automatica

[Qemu-devel] [PATCH 2/4] egl-headless: use framebuffer helper functions.

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/egl-headless.c | 67 ++- 1 file changed, 17 insertions(+), 50 deletions(-) diff --git a/ui/egl-headless.c b/ui/egl-headless.c index d8d800f8a6..809bfde99c 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.

[Qemu-devel] [PATCH 1/4] egl-helpers: add helpers to handle opengl framebuffers

2017-06-06 Thread Gerd Hoffmann
Add a collection of egl_fb_*() helper functions to manage and use opengl framebuffers, which is a common pattern in UI code with opengl support. Signed-off-by: Gerd Hoffmann --- include/ui/egl-helpers.h | 14 ++ ui/egl-helpers.c | 69 ++

[Qemu-devel] [PATCH 3/4] sdl2: use framebuffer helper functions.

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/sdl2.h | 8 ++-- ui/sdl2-gl.c | 38 -- 2 files changed, 14 insertions(+), 32 deletions(-) diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h index aaf226c2c0..454367ac84 100644 --- a/include/ui/sdl2.h +++ b

[Qemu-devel] [PATCH v2 0/2] Document deprecated features & support lifecycle

2017-06-06 Thread Daniel P. Berrange
This is a followup to v1: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg02390.html The goal is to clarify to users & app developers what they can expect from QEMU in terms of feature lifecycle & any deprecation policy should it be neccessary to remove features. Changed in v2: - Sp

[Qemu-devel] [PATCH v2 1/2] docs: document deprecated features in appendix

2017-06-06 Thread Daniel P. Berrange
The deprecation of features in QEMU is totally adhoc currently, with no way for the user to get a list of what is deprecated in each release. This adds an appendix to the doc that records when each deprecation[1] was made and provides text explaining what to use instead. Signed-off-by: Daniel P. B

Re: [Qemu-devel] [PATCH v3] ivshmem-server: ivshmem-client: Build when eventfd() is available

2017-06-06 Thread Markus Armbruster
Michael Tokarev writes: > 06.06.2017 09:54, Markus Armbruster wrote: > > [ ./configure --disable-linux-user --disable-system --static ] > >> I haven't, but here's a quick guess on what we need to squash into the >> patch: >> >> diff --git a/Makefile b/Makefile >> index c830d7a..2ef5a78 100644 >>

[Qemu-devel] [PATCH 0/4] ui/opengl: add and use helper functions to handle framebuffers

2017-06-06 Thread Gerd Hoffmann
Hi, All UIs with opengl support have simliar code to handle opengl framebuffers. Create some helpers and put them into use to reduce code duplication. Gerd Hoffmann (4): egl-helpers: add helpers to handle opengl framebuffers egl-headless: use framebuffer helper functions. sdl2: use frame

[Qemu-devel] [PATCH 4/4] gtk: use framebuffer helper functions.

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/gtk.h | 4 ++-- ui/gtk-egl.c | 38 -- ui/gtk-gl-area.c | 26 +++--- 3 files changed, 17 insertions(+), 51 deletions(-) diff --git a/include/ui/gtk.h b/include/ui/gtk.h index ca9a2268de..2f7b7

[Qemu-devel] [PATCH v2 2/2] docs: document support lifetime for features

2017-06-06 Thread Daniel P. Berrange
There is currently no explicit guidance on the duration of support for features such as versioned machine types, which have a finite useful lifespan. Thus apps / users cannot predict how much time they might be able to use a feature for, before it is removed (if ever). This adds a new appendix tha

[Qemu-devel] [PATCH] spice: don't enter opengl mode in case another UI provides opengl support

2017-06-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/spice-display.h | 2 ++ ui/spice-core.c| 1 + ui/spice-display.c | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ui/spice-display.h b/include/ui/spice-display.h index 184d4c373a..4ba9444dba 100644 --- a

Re: [Qemu-devel] [PATCH] block/qcow.c: Fix memory leak in qcow_create()

2017-06-06 Thread Kevin Wolf
Am 05.06.2017 um 15:55 hat Peter Maydell geschrieben: > Coverity points out that the code path in qcow_create() for > the magic "fat:" backing file name leaks the memory used to > store the filename (CID 1307771). Free the memory before > we overwrite the pointer. > > Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH 1/3] ps2: add and use PS2State typedef

2017-06-06 Thread Gerd Hoffmann
Cleanup: Create and use a typedef for PS2State and stop passing void pointers. No functional change. Signed-off-by: Gerd Hoffmann --- include/hw/input/ps2.h | 4 ++-- include/qemu/typedefs.h | 1 + hw/input/ps2.c | 12 +--- 3 files changed, 8 insertions(+), 9 deletions(-) d

[Qemu-devel] [PATCH 3/3] ps2: reset queue in ps2_reset_keyboard

2017-06-06 Thread Gerd Hoffmann
When the guest resets the keyboard also clear the queue. It is highly unlikely that the guest is still interested in the events stuck in the queue, and it avoids confusing the guest in case the queue is full and the ACK can't be queued up. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=137258

[Qemu-devel] [PATCH 2/3] ps2: add ps2_reset_queue

2017-06-06 Thread Gerd Hoffmann
Factor out ps2 queue reset to a separate function. No functional change. Signed-off-by: Gerd Hoffmann --- hw/input/ps2.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 37f8cb842e..2416b58cc0 100644 --- a/hw/input/ps2.c +

[Qemu-devel] [PATCH 0/3] reset queue in ps2_reset_keyboard

2017-06-06 Thread Gerd Hoffmann
Hi, Patches 1+2 are small cleanups and refactorings, patch 3 is the actual fix. cheers, Gerd Gerd Hoffmann (3): ps2: add and use PS2State typedef ps2: add ps2_reset_queue ps2: reset queue in ps2_reset_keyboard include/hw/input/ps2.h | 4 ++-- include/qemu/typedefs.h | 1 + hw/inpu

[Qemu-devel] [PATCH v3 5/7] pci: Make errp the last parameter of pci_add_capability()

2017-06-06 Thread Mao Zhongyi
Add Error argument for pci_add_capability() to leverage the errp to pass info on errors. This way is helpful for its callers to make a better error handling when moving to 'realize'. Cc: pbonz...@redhat.com Cc: r...@twiddle.net Cc: ehabk...@redhat.com Cc: m...@redhat.com CC: dmi...@daynix.com Cc:

[Qemu-devel] [PATCH v3 6/7] pci: Convert to realize

2017-06-06 Thread Mao Zhongyi
The pci-birdge device i82801b11 and io3130_upstream/downstream still implements the old PCIDeviceClass .init() through *_init() instead of the new .realize(). All devices need to be converted to .realize(). So convert it and rename it to *_realize(). Cc: m...@redhat.com Cc: mar...@redhat.com Cc: a

[Qemu-devel] [PATCH v3 1/7] pci: Clean up error checking in pci_add_capability()

2017-06-06 Thread Mao Zhongyi
On success, pci_add_capability2() returns a positive value. On failure, it sets an error and return a negative value. pci_add_capability() laboriously checks this behavior. No other caller does. Drop the checks from pci_add_capability(). Cc: m...@redhat.com Cc: mar...@redhat.com Signed-off-by: Ma

[Qemu-devel] [PATCH v3 2/7] pci: Add comment for pci_add_capability2()

2017-06-06 Thread Mao Zhongyi
Comments for pci_add_capability2() to explain the return value. This may help to make a correct return value check for its callers. Cc: m...@redhat.com Cc: mar...@redhat.com Cc: arm...@redhat.com Suggested-by: Markus Armbruster Signed-off-by: Mao Zhongyi --- hw/pci/pci.c | 6 ++ 1 file chan

[Qemu-devel] [PATCH v3 3/7] pci: Fix the return value checking

2017-06-06 Thread Mao Zhongyi
pci_add_capability returns a strictly positive value on success, correct asserts. Cc: dmi...@daynix.com Cc: jasow...@redhat.com Cc: kra...@redhat.com Cc: alex.william...@redhat.com Cc: arm...@redhat.com Signed-off-by: Mao Zhongyi --- hw/net/e1000e.c | 2 +- hw/net/eepro100.c | 2 +- hw/usb/hcd

[Qemu-devel] [PATCH v3 4/7] net/eepro100: Fix code style

2017-06-06 Thread Mao Zhongyi
It reports a code style problem(ERROR: "foo * bar" should be "foo *bar") when running checkpatch.pl. So fix it to conform to the coding standards. Cc: jasow...@redhat.com Cc: arm...@redhat.com Signed-off-by: Mao Zhongyi --- hw/net/eepro100.c | 62 +++--

  1   2   3   4   5   >