Re: [Qemu-devel] [PATCH 8/8] tcg/i386: Add vector operations

2017-09-08 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.h | 46 +- > tcg/tcg-opc.h | 12 +- > tcg/i386/tcg-target.inc.c | 382 > ++ > 3 files changed, 399 insertions(+), 41 deletions(-) > > diff

[Qemu-devel] [PULL 37/38] buildsys: Move brlapi libs to per object

2017-09-08 Thread Fam Zheng
baum.o already receives the sdl cflags in its per object variable, do the same for brlapi libs to avoid cluttering libs_softmmu. Signed-off-by: Fam Zheng Message-Id: <20170907084700.952-1-f...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau Signed-off-by: Fam Zhen

Re: [Qemu-devel] [PATCH v4] buildsys: Move crypto cflags/libs to per object variables

2017-09-08 Thread Fam Zheng
On Fri, 09/08 11:05, Daniel P. Berrange wrote: > On Wed, Sep 06, 2017 at 08:49:00PM +0800, Fam Zheng wrote: > > This patch groups the crypto objects into a few .mo objects based on > > functional submodules, and moves inclusion conditions to *-objs > > variables, then moves the global cflags/libs t

[Qemu-devel] [PATCH v2 1/3] io: send proper HTTP response for websocket errors

2017-09-08 Thread Daniel P. Berrange
When any error occurs while processing the websockets handshake, QEMU just terminates the connection abruptly. This is in violation of the HTTP specs and does not help the client understand what they did wrong. This is particularly bad when the client gives the wrong path, as a "404 Not Found" woul

Re: [Qemu-devel] [PATCH 5/5] s390x/ccs: add ccw-tester emulated device

2017-09-08 Thread Halil Pasic
On 09/08/2017 04:01 AM, Dong Jia Shi wrote: > * Cornelia Huck [2017-09-07 12:52:20 +0200]: > >> On Thu, 7 Sep 2017 12:21:50 +0200 >> Halil Pasic wrote: >> >>> On 09/07/2017 10:08 AM, Cornelia Huck wrote: On Thu, 7 Sep 2017 15:31:09 +0800 Dong Jia Shi wrote: >> > I'm thinking of

[Qemu-devel] [PATCH v2 0/3] Improve websock response / error handling

2017-09-08 Thread Daniel P. Berrange
A followup of: v1: https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg01176.html also pullin in https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg01266.html Changed in v2: - Drop redundant return statement - Drop redundant variable initialization - Assert that g_date_time

[Qemu-devel] [PATCH v2 3/3] io: use case insensitive check for Connection & Upgrade websock headers

2017-09-08 Thread Daniel P. Berrange
When checking the value of the Connection and Upgrade HTTP headers the websock RFC (6455) requires the comparison to be case insensitive. The Connection value should be an exact match not a substring. Reviewed-by: Eric Blake Signed-off-by: Daniel P. Berrange --- io/channel-websock.c | 4 ++-- 1

[Qemu-devel] [PATCH v2 2/3] io: include full error message in websocket handshake trace

2017-09-08 Thread Daniel P. Berrange
When the websocket handshake fails it is useful to log the real error message via the trace points for debugging purposes. Fixes bug: #1715186 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrange --- io/channel-websock.c | 7 --- io/trace-events | 2 +- 2 files change

[Qemu-devel] [PULL 02/40] hw/ppc: clear pending_events on machine reset

2017-09-08 Thread David Gibson
From: Daniel Henrique Barboza The sPAPR machine isn't clearing up the pending events QTAILQ on machine reboot. This allows for unprocessed hotplug/epow events to persist in the queue after reset and, when reasserting the IRQs in check_exception later on, these will be being processed by the OS.

[Qemu-devel] [PULL 11/40] spapr_iommu: pass object ownership to parent/owner

2017-09-08 Thread David Gibson
From: Michael Roth TCE table objects attach themselves to an owner as a child property. unref afterward to allow them to be finalized when their owner is finalized. Signed-off-by: Michael Roth Reviewed-by: Paolo Bonzini Reviewed-by: David Gibson Signed-off-by: Greg Kurz Signed-off-by: David

Re: [Qemu-devel] [PULL 00/38] Test and build system patches

2017-09-08 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PULL 00/38] Test and build system patches Message-id: 20170908095506.13594-1-f...@redhat.com Type: series === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log -

Re: [Qemu-devel] [PATCH v3] file-posix: Clear out first sector in hdev_create

2017-09-08 Thread Kevin Wolf
Am 08.09.2017 um 11:44 hat Fam Zheng geschrieben: > People get surprised when, after "qemu-img create -f raw /dev/sdX", they > still see qcow2 with "qemu-img info", if previously the bdev had a qcow2 > header. While this is natural because raw doesn't need to write any > magic bytes during creation

[Qemu-devel] [PULL 03/40] hw/ppc: CAS reset on early device hotplug

2017-09-08 Thread David Gibson
From: Daniel Henrique Barboza This patch is a follow up on the discussions made in patch "hw/ppc: disable hotplug before CAS is completed" that can be found at [1]. At this moment, we do not support CPU/memory hotplug in early boot stages, before CAS. When a hotplug occurs, the event is logged i

[Qemu-devel] [PULL 00/40] ppc-for-2.11 queue 20170908

2017-09-08 Thread David Gibson
The following changes since commit cda4a338c4243fa3bff4498b935340ac7121cc76: tcg/tci: Add TCG_TARGET_DEFAULT_MO (2017-09-07 18:57:34 +0100) are available in the git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-2.11-20170908 for you to fetch changes up to

Re: [Qemu-devel] [PATCH v4] buildsys: Move crypto cflags/libs to per object variables

2017-09-08 Thread Daniel P. Berrange
On Fri, Sep 08, 2017 at 06:27:01PM +0800, Fam Zheng wrote: > On Fri, 09/08 11:05, Daniel P. Berrange wrote: > > On Wed, Sep 06, 2017 at 08:49:00PM +0800, Fam Zheng wrote: > > > This patch groups the crypto objects into a few .mo objects based on > > > functional submodules, and moves inclusion cond

[Qemu-devel] [PULL 01/40] hw/ppc/spapr_drc.c: change spapr_drc_needed to use drc->dev

2017-09-08 Thread David Gibson
From: Daniel Henrique Barboza This patch makes a small fix in 'spapr_drc_needed' to change how we detect if a DRC has a device attached. Previously it used dr_entity_sense for this, which works for physical DRCs. However, for logical DRCs, it didn't cover the case where a logical DRC has a drc-

[Qemu-devel] [PULL 04/40] spapr_pci: use memory_region_add_subregion() with DMA windows

2017-09-08 Thread David Gibson
From: Greg Kurz Passing a null priority to memory_region_add_subregion_overlap() is strictly equivalent to calling memory_region_add_subregion(). Signed-off-by: Greg Kurz Reviewed-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 4 ++-- 1 file changed, 2 insertio

[Qemu-devel] [PULL 07/40] spapr_iommu: convert TCE table object to realize()

2017-09-08 Thread David Gibson
From: Greg Kurz Signed-off-by: Greg Kurz Reviewed-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- hw/ppc/spapr_iommu.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index ed4388bd75..84d03df5ef 100644 --- a/hw/pp

[Qemu-devel] [PULL 10/40] spapr_drc: pass object ownership to parent/owner

2017-09-08 Thread David Gibson
From: Michael Roth DRC objects attach themselves to an owner as a child property. unref afterward to allow them to be finalized when their owner is finalized. Signed-off-by: Michael Roth Reviewed-by: Paolo Bonzini Reviewed-by: David Gibson Signed-off-by: Greg Kurz Signed-off-by: David Gibson

[Qemu-devel] [PULL 16/40] ppc: spapr: Make VCPU ID handling private to SPAPR

2017-09-08 Thread David Gibson
From: Sam Bobroff The concept of a VCPU ID that differs from the CPU's index (cpu->cpu_index) exists only within SPAPR machines so, move the functions ppc_get_vcpu_id() and ppc_get_cpu_by_vcpu_id() into spapr.c and rename them appropriately. Signed-off-by: Sam Bobroff Signed-off-by: David Gibso

[Qemu-devel] [PULL 12/40] spapr_iommu: unregister vmstate at unrealize time

2017-09-08 Thread David Gibson
From: Greg Kurz Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index 25c5f6d795..a75584c947 100644 --- a/hw/ppc/spapr_iommu.c +++ b/hw/ppc/spapr_iommu.c @@ -374,6 +3

[Qemu-devel] [PULL 14/40] e500: Use cpu_index instead of vcpu_dt_id

2017-09-08 Thread David Gibson
From: Sam Bobroff The e500 platform code uses the function ppc_get_vcpu_dt_id() to get an id to put in its device tree. Which seems like it makes sense, but ppc_get_vcpu_dt_id() is actually badly named - it only differs from cpu_index in cases where you're running on KVM HV and the host's number

[Qemu-devel] [PULL 15/40] ppc: spapr: Rename cpu_dt_id to vcpu_id

2017-09-08 Thread David Gibson
From: Sam Bobroff This field actually records the VCPU ID used by KVM and, although the value is also used in the device tree it is primarily the VCPU ID so rename it as such. Signed-off-by: Sam Bobroff [dwg: Updated comment missed in cpu.h] Reviewed-by: Greg Kurz Signed-off-by: David Gibson

[Qemu-devel] [PULL 20/40] ppc64: introduce e6500

2017-09-08 Thread David Gibson
From: KONRAD Frederic This introduces e6500 core. Signed-off-by: KONRAD Frederic Signed-off-by: David Gibson --- target/ppc/cpu-models.c | 2 + target/ppc/cpu-models.h | 1 + target/ppc/translate_init.c | 91 - 3 files changed, 93 insertio

[Qemu-devel] [PULL 08/40] spapr_pci: parent the MSI memory region to the PHB

2017-09-08 Thread David Gibson
From: Greg Kurz This memory region should be owned by the PHB. This ensures the PHB cannot be finalized as long as the the region is guest visible, or used by a CPU or a device. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 2 +- 1 file changed, 1 insertion(+),

[Qemu-devel] [PULL 19/40] booke206: allow to specify an mmucfg value at the init

2017-09-08 Thread David Gibson
From: KONRAD Frederic This allows to init the MMUCFG SPR with a non NULL value. Signed-off-by: KONRAD Frederic Signed-off-by: David Gibson --- target/ppc/translate_init.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/target/ppc/translate_init.c b/target/ppc/tran

[Qemu-devel] [PULL 28/40] hw/ppc/spapr_cpu_core: Add a proper check for spapr machine

2017-09-08 Thread David Gibson
From: Thomas Huth QEMU currently crashes when the user tries to add a spapr-cpu-core on a non-pseries machine: $ qemu-system-ppc64 -S -machine ppce500,accel=tcg \ -device POWER5+_v2.1-spapr-cpu-core hw/ppc/spapr_cpu_core.c:178:spapr_cpu_core_realize_child: Object 0x55cee1f551

[Qemu-devel] [PULL 13/40] spapr: add pseries-2.11 machine type

2017-09-08 Thread David Gibson
From: Greg Kurz Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 954fd1a747..a0c5923776 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -

[Qemu-devel] [PULL 06/40] spapr_drc: use g_strdup_printf() instead of snprintf()

2017-09-08 Thread David Gibson
From: Greg Kurz Passing a stack allocated buffer of arbitrary length to snprintf() without checking the return value can cause the resultant strings to be silently truncated. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_drc.c | 15 +-- 1 file changed, 9 in

[Qemu-devel] [PULL 05/40] spapr_iommu: use g_strdup_printf() instead of snprintf()

2017-09-08 Thread David Gibson
From: Greg Kurz Passing a stack allocated buffer of arbitrary length to snprintf() without checking the return value can cause the resultant strings to be silently truncated. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_iommu.c | 13 - 1 file changed, 8 in

[Qemu-devel] [PULL 33/40] ppc: use macros to make cpu type name from string literal

2017-09-08 Thread David Gibson
From: Igor Mammedov Replace "-" TYPE_POWERPC_CPU when composing cpu type name from cpu model string literal and the same pattern in format strings with POWERPC_CPU_TYPE_SUFFIX and POWERPC_CPU_TYPE_NAME(model) macroses like we do in x86. Later POWERPC_CPU_TYPE_NAME() will be used to define def

[Qemu-devel] [PULL 27/40] ppc4xx: Export ECB and PLB emulation

2017-09-08 Thread David Gibson
From: BALATON Zoltan Make these device models available outside ppc405_uc.c for reuse in 460EX emulation. They are left in their current place for now because they are used mostly unchanged and I'm not sure these correctly model the components in 440 SoCs (but they seem to be good enough). These

[Qemu-devel] [PULL 09/40] spapr_drc: add unrealize method to physical DRC class

2017-09-08 Thread David Gibson
From: Greg Kurz When hot-unplugging a PHB, all its PCI DRC connectors get unrealized. This patch adds an unrealize method to the physical DRC class, in order to undo registrations performed in realize_physical(). Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_drc.c | 16

[Qemu-devel] [PULL 24/40] ppc4xx: Split off 4xx I2C emulation from ppc405_uc to its own file

2017-09-08 Thread David Gibson
From: BALATON Zoltan This device appears in other SoCs as well not just in 405 ones and subsequent patches will modify it, so move it out of ppc405_uc.c in preparation Signed-off-by: BALATON Zoltan Signed-off-by: David Gibson --- hw/ppc/Makefile.objs | 2 +- hw/ppc/ppc405.h | 2 + hw

[Qemu-devel] [PULL 25/40] ppc4xx_i2c: QOMify

2017-09-08 Thread David Gibson
From: BALATON Zoltan Signed-off-by: BALATON Zoltan Signed-off-by: David Gibson --- hw/ppc/ppc405.h | 2 - hw/ppc/ppc405_uc.c | 5 +- hw/ppc/ppc4xx_i2c.c | 154 ++-- include/hw/i2c/ppc4xx_i2c.h | 61 ++ 4

[Qemu-devel] [PULL 36/40] ppc: replace inter-function cyclic dependency/recurssion with 2 simple lookups

2017-09-08 Thread David Gibson
From: Igor Mammedov previous patches cleaned up cpu model/alias naming which allows to simplify cpu model/alias to cpu type lookup a bit byt removing recurssion and dependency of ppc_cpu_class_by_name() / ppc_cpu_class_by_alias() on each other. Besides of simplifying code it reduces it by ~15LOC.

[Qemu-devel] [PULL 21/40] spapr_iommu: Realloc guest visible TCE table when hot(un)plugging vfio-pci

2017-09-08 Thread David Gibson
From: Alexey Kardashevskiy This replaces g_malloc() with spapr_tce_alloc_table() as this is the standard way of allocating tables and this allows moving the table back to KVM when unplugging a VFIO PCI device and VFIO TCE acceleration support is not present in the KVM. Although spapr_tce_alloc_t

[Qemu-devel] [PULL 29/40] hw/nvram/spapr_nvram: Device can not be created by the users

2017-09-08 Thread David Gibson
From: Thomas Huth Trying to add a spapr-nvram device currently aborts QEMU like this: $ ppc64-softmmu/qemu-system-ppc64 -device spapr-nvram qemu-system-ppc64: hw/ppc/spapr_rtas.c:407: spapr_rtas_register: Assertion `!rtas_table[token].name' failed. Aborted (core dumped) This NVRAM device regi

[Qemu-devel] [PULL 38/40] ppc: drop caching ObjectClass from PowerPCCPUAlias

2017-09-08 Thread David Gibson
From: Igor Mammedov Caching there practically doesn't give any benefits and that at slow path druring querying supported CPU list. But it introduces non conventional path of where from comes used CPU type name (kvm_ppc_register_host_cpu_type). Taking in account that kvm_ppc_register_host_cpu_typ

[Qemu-devel] [PULL 17/40] booke206: fix booke206_tlbnps for mav 2.0

2017-09-08 Thread David Gibson
From: KONRAD Frederic This fixes booke206_tlbnps for MAV 2.0 by checking the MMUCFG register and return directly the right tlbnps instead of computing it from non existing field. Signed-off-by: KONRAD Frederic Signed-off-by: David Gibson --- target/ppc/cpu.h | 4 ++-- 1 file changed, 2 insert

[Qemu-devel] [PULL 37/40] ppc: simplify cpu model lookup by PVR

2017-09-08 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Signed-off-by: David Gibson --- target/ppc/translate_init.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c index 4092310c83..7c1d83b489

[Qemu-devel] [PULL 26/40] ppc4xx_i2c: Move to hw/i2c

2017-09-08 Thread David Gibson
From: BALATON Zoltan Signed-off-by: BALATON Zoltan Signed-off-by: David Gibson --- default-configs/ppc-softmmu.mak| 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + hw/i2c/Makefile.objs | 1 + hw/{ppc => i2c}/ppc4xx_i2c.c | 0 hw/

[Qemu-devel] [PULL 35/40] ppc: make cpu alias point only to real cpu models

2017-09-08 Thread David Gibson
From: Igor Mammedov alias pointing to another alias forces lookup code to do recurrsive translation till real cpu model is reached. Drop this nonsence and make each alias point to cpu model that has corresponding CPU type. It will allow to drop recurrsion in cpu model translation code and actual

[Qemu-devel] [PULL 18/40] booke206: fix tlbnps for fixed size TLB

2017-09-08 Thread David Gibson
From: KONRAD Frederic Some OS don't populate the TSIZE field when using a fixed size TLB which result in a 1KB TLB. When the TLB is a fixed size TLB the TSIZE field should be ignored. Fix this wrong behavior with MAV 2.0. Signed-off-by: KONRAD Frederic Signed-off-by: David Gibson --- target/

[Qemu-devel] [PULL 30/40] spapr: fallback to raw mode if best compat mode cannot be set during CAS

2017-09-08 Thread David Gibson
From: Greg Kurz KVM PR doesn't allow to set a compat mode. This causes ppc_set_compat_all() to fail and we return H_HARDWARE to the guest right away. This is excessive: even if we favor compat mode since commit 152ef803ceb19, we should at least fallback to raw mode if the guest supports it. Thi

[Qemu-devel] [PULL 32/40] target/ppc: Remove old STATUS file

2017-09-08 Thread David Gibson
From: Thomas Huth The target/ppc/STATUS file has seen its last real update 10 years ago - so the information in there is not up to date anymore. Since nobody seems to care about this file, let's simply remove it. Signed-off-by: Thomas Huth Signed-off-by: David Gibson --- target/ppc/STATUS | 5

[Qemu-devel] [PULL 23/40] ppc4xx: Make MAL emulation more generic

2017-09-08 Thread David Gibson
From: BALATON Zoltan Allow MAL with more RX and TX channels as found in newer versions. Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc4xx_devs.c| 171 +++- in

[Qemu-devel] [PULL 22/40] ppc4xx: Move MAL from ppc405_uc to ppc4xx_devs

2017-09-08 Thread David Gibson
From: BALATON Zoltan This device appears in other SoCs as well not just in 405 ones Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/ppc405_uc.c | 263 --- hw/ppc/ppc4xx_devs.c| 264 +++

[Qemu-devel] [PULL 40/40] ppc: spapr: Move VCPU ID calculation into sPAPR

2017-09-08 Thread David Gibson
From: Sam Bobroff Move the calculation of a CPU's VCPU ID out of the generic PPC code (ppc_cpu_realizefn()) and into sPAPR specific code (spapr_cpu_core_realize()) where it belongs. Unfortunately, due to the way things are ordered, we still need to default the VCPU ID in ppc_cpu_realizfn() but a

[Qemu-devel] [PULL 31/40] PPC: KVM: Support machine option to set VSMT mode

2017-09-08 Thread David Gibson
From: Sam Bobroff KVM now allows writing to KVM_CAP_PPC_SMT which has previously been read only. Doing so causes KVM to act, for that VM, as if the host's SMT mode was the given value. This is particularly important on Power 9 systems because their default value is 1, but they are able to support

[Qemu-devel] [PULL 34/40] ppc: make cpu_model translation to type consistent

2017-09-08 Thread David Gibson
From: Igor Mammedov PPC handles -cpu FOO rather incosistently, i.e. it does case-insensitive matching of FOO to a CPU type (see: ppc_cpu_compare_class_name) but handles alias names as case-sensitive, as result: # qemu-system-ppc64 -M mac99 -cpu g3 qemu-system-ppc64: unable to find CPU model '

Re: [Qemu-devel] [PATCH 0/5] add CCW indirect data access support

2017-09-08 Thread Halil Pasic
On 09/05/2017 01:16 PM, Halil Pasic wrote: > Abstract > > > The objective of this series is introducing CCW IDA (indirect data > access) support to our virtual channel subsystem implementation. Briefly > CCW IDA can be thought of as a kind of a scatter gather support for a > single CCW

[Qemu-devel] [PULL 39/40] ppc: remove non implemented cpu models

2017-09-08 Thread David Gibson
From: Igor Mammedov Remove cpu models that aren't implemented and are not compiled/tested since they are under TODO ifdef which isn't defined in sources. If someone really needs a removed model he/she should add as regular one with corresponding implementation. Signed-off-by: Igor Mammedov Sig

Re: [Qemu-devel] [PULL 0/3] target/hppa update

2017-09-08 Thread Peter Maydell
On 7 September 2017 at 19:44, Richard Henderson wrote: > Just the conversion to TranslatorOps. > > > r~ > > > The following changes since commit cda4a338c4243fa3bff4498b935340ac7121cc76: > > tcg/tci: Add TCG_TARGET_DEFAULT_MO (2017-09-07 18:57:34 +0100) > > are available in the git repository at

Re: [Qemu-devel] [PATCH v4] buildsys: Move crypto cflags/libs to per object variables

2017-09-08 Thread Fam Zheng
On Fri, 09/08 11:36, Daniel P. Berrange wrote: > On Fri, Sep 08, 2017 at 06:27:01PM +0800, Fam Zheng wrote: > > On Fri, 09/08 11:05, Daniel P. Berrange wrote: > > > On Wed, Sep 06, 2017 at 08:49:00PM +0800, Fam Zheng wrote: > > > > This patch groups the crypto objects into a few .mo objects based o

Re: [Qemu-devel] [PATCH v6] docs: add qemu-block-drivers(7) man page

2017-09-08 Thread Kevin Wolf
Am 08.09.2017 um 10:39 hat Stefan Hajnoczi geschrieben: > Block driver documentation is available in qemu-doc.html. It would be > convenient to have documentation for formats, protocols, and filter > drivers in a man page. > > Extract the relevant part of qemu-doc.html into a new file called > do

Re: [Qemu-devel] [PATCH v2 0/3] Improve websock response / error handling

2017-09-08 Thread no-reply
Hi, This series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [Qemu-devel] [PATCH v2 0/3] Improve websock response / error handling Message-id: 20170908103011.25821-1-berra...@red

Re: [Qemu-devel] [PATCH 0/5] add CCW indirect data access support

2017-09-08 Thread Cornelia Huck
On Fri, 8 Sep 2017 12:45:25 +0200 Halil Pasic wrote: > The discussion seems to have settled down quite a bit. Since there weren't > many complaints, I would like to opt for a v2 fixing the things pointed out > during the review early next week (I was thinking Tuesday maybe some late > birds > ar

Re: [Qemu-devel] [Qemu-arm] [PATCH v7 05/20] hw/arm/smmuv3: Skeleton

2017-09-08 Thread Linu Cherian
Hi Eric, On Fri Sep 01, 2017 at 07:21:08PM +0200, Eric Auger wrote: > From: Prem Mallappa > > This patch implements a skeleton for the smmuv3 device. > Datatypes and register definitions are introduced. The MMIO > region, the interrupts and the queue are initialized (PRI is > not supported). >

Re: [Qemu-devel] [PATCH v4] buildsys: Move crypto cflags/libs to per object variables

2017-09-08 Thread Daniel P. Berrange
On Fri, Sep 08, 2017 at 06:58:53PM +0800, Fam Zheng wrote: > On Fri, 09/08 11:36, Daniel P. Berrange wrote: > > On Fri, Sep 08, 2017 at 06:27:01PM +0800, Fam Zheng wrote: > > > On Fri, 09/08 11:05, Daniel P. Berrange wrote: > > > > On Wed, Sep 06, 2017 at 08:49:00PM +0800, Fam Zheng wrote: > > > >

Re: [Qemu-devel] [PATCH 2/3] iotests: use -ccw on s390x for 051

2017-09-08 Thread Kevin Wolf
Am 05.09.2017 um 17:16 hat Cornelia Huck geschrieben: > The default cpu model on s390x does not provide zPCI, which is > not yet wired up on tcg. Moreover, virtio-ccw is the standard > on s390x, so use the -ccw instead of the -pci versions of virtio > devices on s390x. > > Provide an output file f

Re: [Qemu-devel] [PATCHv5 1/5] seccomp: changing from whitelist to blacklist

2017-09-08 Thread Eduardo Otubo
On Fri, Sep 08, 2017 at 11:52:42AM +0200, Thomas Huth wrote: > On 08.09.2017 11:50, Eduardo Otubo wrote: > > On Fri, Sep 08, 2017 at 11:43:27AM +0200, Thomas Huth wrote: > >> On 08.09.2017 11:10, Eduardo Otubo wrote: > >>> This patch changes the default behavior of the seccomp filter from > >>> whi

Re: [Qemu-devel] [PATCH v3 1/3] backup: QEMU Backup Tool

2017-09-08 Thread Ishani
- On Sep 2, 2017, at 4:17 AM, jsnow js...@redhat.com wrote: > I suggest as your commit message here, something like: > > "backup: Add QEMU backup tool" > > A good commit message should say what applying the patch will do: > > "What will happen if I apply this patch?" > "It will 'Add QEMU

Re: [Qemu-devel] [PATCH 0/5] add CCW indirect data access support

2017-09-08 Thread Halil Pasic
On 09/08/2017 12:49 PM, Cornelia Huck wrote: > On Fri, 8 Sep 2017 12:45:25 +0200 > Halil Pasic wrote: > >> The discussion seems to have settled down quite a bit. Since there weren't >> many complaints, I would like to opt for a v2 fixing the things pointed out >> during the review early next we

Re: [Qemu-devel] [PATCH 3/3] iotests: use -ccw on s390x for 067

2017-09-08 Thread Kevin Wolf
Am 05.09.2017 um 17:16 hat Cornelia Huck geschrieben: > The default cpu model on s390x does not provide zPCI, which is > not yet wired up on tcg. Moreover, virtio-ccw is the standard > on s390x, so use the -ccw instead of the -pci versions of virtio > devices on s390x. > > Provide an output file f

[Qemu-devel] [PATCH 0/2] usb-host: cleanups

2017-09-08 Thread Gerd Hoffmann
Gerd Hoffmann (2): usb: drop HOST_USB usb: only build usb-host with CONFIG_USB=y configure| 7 --- hw/usb/Makefile.objs | 6 +- 2 files changed, 5 insertions(+), 8 deletions(-) -- 2.9.3

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v15 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-09-08 Thread Wei Wang
On 09/08/2017 11:36 AM, Michael S. Tsirkin wrote: On Tue, Aug 29, 2017 at 11:09:18AM +0800, Wei Wang wrote: On 08/29/2017 02:03 AM, Michael S. Tsirkin wrote: On Mon, Aug 28, 2017 at 06:08:31PM +0800, Wei Wang wrote: Add a new feature, VIRTIO_BALLOON_F_SG, which enables the transfer of balloon

Re: [Qemu-devel] [PATCH 1/3] iotests: use -ccw on s390x for 040, 139, and 182

2017-09-08 Thread Kevin Wolf
Am 05.09.2017 um 17:16 hat Cornelia Huck geschrieben: > The default cpu model on s390x does not provide zPCI, which is > not yet wired up on tcg. Moreover, virtio-ccw is the standard > on s390x, so use the -ccw instead of the -pci versions of virtio > devices on s390x. > > Signed-off-by: Cornelia

Re: [Qemu-devel] [PATCHv5 4/5] seccomp: add spawn argument to command line

2017-09-08 Thread Eduardo Otubo
On Fri, Sep 08, 2017 at 11:50:12AM +0200, Thomas Huth wrote: > On 08.09.2017 11:10, Eduardo Otubo wrote: > > This patch adds [,spawn=deny] argument to `-sandbox on' option. It > > blacklists fork and execve system calls, avoiding Qemu to spawn new > > threads or processes. > > > > Signed-off-by: E

[Qemu-devel] [PATCH 2/2] usb: only build usb-host with CONFIG_USB=y

2017-09-08 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs index a43ebbc17f..757e365562 100644 --- a/hw/usb/Makefile.objs +++ b/hw/usb/Makefile.objs @@ -38,7 +38,7 @@ endif common-obj-$(CON

[Qemu-devel] [PATCH 1/2] usb: drop HOST_USB

2017-09-08 Thread Gerd Hoffmann
Nowdays we use libusb for usb-host, so we don't have different code for linux vs. bsd any more. So there is little reason to have the HOST_USB variable, we can just write things directly into the Makefile and avoid a pointless indirection. Signed-off-by: Gerd Hoffmann --- configure|

Re: [Qemu-devel] [PATCH v4] buildsys: Move crypto cflags/libs to per object variables

2017-09-08 Thread Fam Zheng
On Fri, 09/08 12:00, Daniel P. Berrange wrote: > On Fri, Sep 08, 2017 at 06:58:53PM +0800, Fam Zheng wrote: > > On Fri, 09/08 11:36, Daniel P. Berrange wrote: > > > On Fri, Sep 08, 2017 at 06:27:01PM +0800, Fam Zheng wrote: > > > > On Fri, 09/08 11:05, Daniel P. Berrange wrote: > > > > > On Wed, Se

Re: [Qemu-devel] [RFC PATCH qemu 0/4] memory: Reduce memory use

2017-09-08 Thread Dr. David Alan Gilbert
* Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > On 08/09/17 00:54, Dr. David Alan Gilbert wrote: > > * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > >> On 07/09/17 19:51, Dr. David Alan Gilbert wrote: > >>> * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > This was inspired by https://bugzill

Re: [Qemu-devel] [PATCH 0/5] add CCW indirect data access support

2017-09-08 Thread Cornelia Huck
On Fri, 8 Sep 2017 13:03:00 +0200 Halil Pasic wrote: > On 09/08/2017 12:49 PM, Cornelia Huck wrote: > > On Fri, 8 Sep 2017 12:45:25 +0200 > > Halil Pasic wrote: > >> What do you think, would it make more sense to omit or to keep the testing > >> stuff for v2 (I mean patch 5 and the kernel modul

Re: [Qemu-devel] [PATCH 2/3] iotests: use -ccw on s390x for 051

2017-09-08 Thread Cornelia Huck
On Fri, 8 Sep 2017 13:04:25 +0200 Kevin Wolf wrote: > Am 05.09.2017 um 17:16 hat Cornelia Huck geschrieben: > > The default cpu model on s390x does not provide zPCI, which is > > not yet wired up on tcg. Moreover, virtio-ccw is the standard > > on s390x, so use the -ccw instead of the -pci versio

[Qemu-devel] [PATCH 1/1] AArch64: Fix single stepping of ERET instruction

2017-09-08 Thread Jaroslaw Pelczar
Previously when single stepping through ERET instruction via GDB would result in debugger entering the "next" PC after ERET instruction. When debugging in kernel mode, this will also cause unintended behavior, because debugger will try to access memory from EL0 point of view. Signed-off-by: Jarosl

Re: [Qemu-devel] [PATCHv5 4/5] seccomp: add spawn argument to command line

2017-09-08 Thread Thomas Huth
On 08.09.2017 13:15, Eduardo Otubo wrote: > On Fri, Sep 08, 2017 at 11:50:12AM +0200, Thomas Huth wrote: >> On 08.09.2017 11:10, Eduardo Otubo wrote: >>> This patch adds [,spawn=deny] argument to `-sandbox on' option. It >>> blacklists fork and execve system calls, avoiding Qemu to spawn new >>> th

Re: [Qemu-devel] [PATCH 0/2] usb-host: cleanups

2017-09-08 Thread Fam Zheng
On Fri, 09/08 13:12, Gerd Hoffmann wrote: > > > Gerd Hoffmann (2): > usb: drop HOST_USB > usb: only build usb-host with CONFIG_USB=y Reviewed-by: Fam Zheng

Re: [Qemu-devel] [PATCH 2/2] hw/pcie: disable IO port fwd by default for pcie-root-port

2017-09-08 Thread Marcel Apfelbaum
On 06/09/2017 17:49, Eduardo Habkost wrote: On Wed, Sep 06, 2017 at 05:26:58PM +0300, Marcel Apfelbaum wrote: For most cases the devices attached to PCIe Root Ports do not need IO ports range, add an 'enable-io-fwd' property making it false by default, but keeping it true for older machines. Si

Re: [Qemu-devel] [PATCH 1/2] usb: drop HOST_USB

2017-09-08 Thread Thomas Huth
On 08.09.2017 13:12, Gerd Hoffmann wrote: > Nowdays we use libusb for usb-host, so we don't have different code > for linux vs. bsd any more. So there is little reason to have the > HOST_USB variable, we can just write things directly into the Makefile > and avoid a pointless indirection. > > Sig

Re: [Qemu-devel] [PATCH 0/5] add CCW indirect data access support

2017-09-08 Thread Halil Pasic
On 09/08/2017 01:19 PM, Cornelia Huck wrote: > On Fri, 8 Sep 2017 13:03:00 +0200 > Halil Pasic wrote: > >> On 09/08/2017 12:49 PM, Cornelia Huck wrote: >>> On Fri, 8 Sep 2017 12:45:25 +0200 >>> Halil Pasic wrote: > What do you think, would it make more sense to omit or to keep the testin

[Qemu-devel] [PATCHv6 0/6] seccomp: feature refactoring

2017-09-08 Thread Eduardo Otubo
v6: * remove switch-case * invert obsolete option logic at vl.c * remove debug info v5: * replaced strcmp by g_str_equal * removed useless goto * fixed style problems v4: * include another field on the struct for the modes * remove priority * fixed typos * e

[Qemu-devel] [PATCHv6 1/5] seccomp: changing from whitelist to blacklist

2017-09-08 Thread Eduardo Otubo
This patch changes the default behavior of the seccomp filter from whitelist to blacklist. By default now all system calls are allowed and a small black list of definitely forbidden ones was created. Signed-off-by: Eduardo Otubo --- include/sysemu/seccomp.h | 2 + qemu-seccomp.c | 26

[Qemu-devel] [PATCHv6 2/5] seccomp: add obsolete argument to command line

2017-09-08 Thread Eduardo Otubo
This patch introduces the argument [,obsolete=allow] to the `-sandbox on' option. It allows Qemu to run safely on old system that still relies on old system calls. Signed-off-by: Eduardo Otubo --- include/sysemu/seccomp.h | 3 ++- qemu-options.hx | 12 ++-- qemu-seccomp.c

[Qemu-devel] [PATCHv6 3/5] seccomp: add elevateprivileges argument to command line

2017-09-08 Thread Eduardo Otubo
This patch introduces the new argument [,elevateprivileges=allow|deny|children] to the `-sandbox on'. It allows or denies Qemu process to elevate its privileges by blacklisting all set*uid|gid system calls. The 'children' option will let forks and execves run unprivileged. Signed-off-by: Eduardo O

[Qemu-devel] [PATCHv6 5/5] seccomp: add resourcecontrol argument to command line

2017-09-08 Thread Eduardo Otubo
This patch adds [,resourcecontrol=deny] to `-sandbox on' option. It blacklists all process affinity and scheduler priority system calls to avoid any bigger of the process. Signed-off-by: Eduardo Otubo --- include/sysemu/seccomp.h | 1 + qemu-options.hx | 9 ++--- qemu-seccomp.c

[Qemu-devel] [PATCHv6 4/5] seccomp: add spawn argument to command line

2017-09-08 Thread Eduardo Otubo
This patch adds [,spawn=deny] argument to `-sandbox on' option. It blacklists fork and execve system calls, avoiding Qemu to spawn new threads or processes. Signed-off-by: Eduardo Otubo --- include/sysemu/seccomp.h | 1 + qemu-options.hx | 9 +++-- qemu-seccomp.c | 4 ++

Re: [Qemu-devel] [RFC v2 0/8] monitor: allow per-monitor thread

2017-09-08 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> "Dr. David Alan Gilbert" writes: >> >> > * Markus Armbruster (arm...@redhat.com) wrote: >> >> "Daniel P. Berrange" writes: >> >> >> >> > On Thu, Sep 07, 2017 at 02:59:28PM +0200, Markus Armbruster wrote: >> >

Re: [Qemu-devel] [PATCH 2/3] iotests: use -ccw on s390x for 051

2017-09-08 Thread Kevin Wolf
Am 08.09.2017 um 13:24 hat Cornelia Huck geschrieben: > On Fri, 8 Sep 2017 13:04:25 +0200 > Kevin Wolf wrote: > > > Am 05.09.2017 um 17:16 hat Cornelia Huck geschrieben: > > > The default cpu model on s390x does not provide zPCI, which is > > > not yet wired up on tcg. Moreover, virtio-ccw is the

Re: [Qemu-devel] [PULL 00/23] tcg constant pools and USE_DIRECT_JUMP cleanup

2017-09-08 Thread Peter Maydell
On 7 September 2017 at 23:40, Richard Henderson wrote: > Lots of cleanup for aarch32 and s390x. Minor improvements for > aarch64, ppc, sparc, x86_64. But we'll need this more when we > start generating host vector insns. > > > r~ > > > The following changes since commit cda4a338c4243fa3bff4498b9

[Qemu-devel] libvirt/QEMU/SEV interaction

2017-09-08 Thread Brijesh Singh
Hi All, (sorry for the long message) CPUs from AMD EPYC family supports Secure Encrypted Virtualization (SEV) feature - the feature allows running encrypted VMs. To enable the feature, I have been submitting patches to Linux kernel [1], Qemu [2] and OVMF [3]. We have been making some good progres

Re: [Qemu-devel] [PATCH v10 5/6] fsdev: QMP interface for throttling

2017-09-08 Thread Alberto Garcia
On Fri 08 Sep 2017 12:02:14 PM CEST, Markus Armbruster wrote: >> +fse = get_fsdev_fsentry(arg->has_id ? arg->id : NULL); > > !arg->has_id implies !arg->id. Hey Markus, I have the impression that I've also written code that never uses arg->foo when arg->has_foo is false. Can we then assume t

Re: [Qemu-devel] [PATCH v10 5/6] fsdev: QMP interface for throttling

2017-09-08 Thread Pradeep Jagadeesh
On 9/8/2017 12:02 PM, Markus Armbruster wrote: Pradeep Jagadeesh writes: This patch introduces qmp interfaces for the fsdev devices. This provides two interfaces one for querying info of all the fsdev devices. The second one to set the IO limits for the required fsdev device. Signed-off-by: P

Re: [Qemu-devel] [PATCH v6 05/18] dirty-bitmap: Change bdrv_dirty_bitmap_size() to report bytes

2017-09-08 Thread Kevin Wolf
Am 30.08.2017 um 23:05 hat Eric Blake geschrieben: > We are still using an internal hbitmap that tracks a size in sectors, > with the granularity scaled down accordingly, because it lets us > use a shortcut for our iterators which are currently sector-based. > But there's no reason we can't track t

Re: [Qemu-devel] [PATCH v10 3/6] throttle: move out function to reuse the code

2017-09-08 Thread Greg Kurz
On Mon, 4 Sep 2017 12:07:44 -0400 Pradeep Jagadeesh wrote: > This patch move out the throttle code to util/throttle.c to maximize > the reusability of the code.The same code is also used by fsdev. s/.The same code is also used by fsdev/. The same code will also be used by fsdev/ > Signed-off-

Re: [Qemu-devel] [PATCH v3 08/21] s390x: move sclp_service_call() to sclp.h

2017-09-08 Thread Markus Armbruster
Thomas Huth writes: > On 07.09.2017 22:13, David Hildenbrand wrote: >> Implemented in sclp.c, so let's move it to the right include file. >> Fix up one include. Do a forward declaration of CPUS390XState to fix the >> two sclp consoles complaining. >> >> Signed-off-by: David Hildenbrand >> --- >

Re: [Qemu-devel] [PATCH v10 4/6] hmp: create a throttle initialization function for code reusability

2017-09-08 Thread Greg Kurz
On Mon, 4 Sep 2017 12:07:45 -0400 Pradeep Jagadeesh wrote: > This patch creates a throttle initialization function to maximize the > code reusability. The same code is also used by fsdev. > s/is also/will also be/ > Acked-by: Dr. David Alan Gilbert > Signed-off-by: Pradeep Jagadeesh > ---

Re: [Qemu-devel] [PATCH v5 3/8] fw_cfg: add vmcoreinfo file

2017-09-08 Thread Michael S. Tsirkin
On Mon, Aug 07, 2017 at 08:16:13PM +0200, Marc-André Lureau wrote: > See docs/specs/fw_cfg.txt for details. > > The "etc/vmcoreinfo" is added when using "-global > fw_cfg.vmcoreinfo=on" qemu option. > > Disabled by default for machine types v2.9 and older. > > Signed-off-by: Marc-André Lureau

Re: [Qemu-devel] [PATCH v10 5/6] fsdev: QMP interface for throttling

2017-09-08 Thread Markus Armbruster
Pradeep Jagadeesh writes: > On 9/8/2017 12:02 PM, Markus Armbruster wrote: >> Pradeep Jagadeesh writes: [...] >>> diff --git a/qmp.c b/qmp.c >>> index b86201e..eed91e5 100644 >>> --- a/qmp.c >>> +++ b/qmp.c >>> @@ -130,6 +130,20 @@ void qmp_cpu_add(int64_t id, Error **errp) >>> } >>> } >>>

Re: [Qemu-devel] [PATCH v5 3/8] fw_cfg: add vmcoreinfo file

2017-09-08 Thread Michael S. Tsirkin
On Mon, Aug 07, 2017 at 08:16:13PM +0200, Marc-André Lureau wrote: > See docs/specs/fw_cfg.txt for details. > > The "etc/vmcoreinfo" is added when using "-global > fw_cfg.vmcoreinfo=on" qemu option. > > Disabled by default for machine types v2.9 and older. > > Signed-off-by: Marc-André Lureau >

  1   2   3   4   5   >