Re: [Qemu-devel] [PATCH] qemu_opt_print: Remove shadowing opt decl

2017-10-06 Thread Markus Armbruster
"Dr. David Alan Gilbert (git)" writes: > From: "Dr. David Alan Gilbert" > > opt was declared as a separate local inside the last loop, > shadowing the local at the top of the function. > > Signed-off-by: Dr. David Alan Gilbert I can take this through my tree.

Re: [Qemu-devel] [PATCH v2 01/30] s390x/tcg: turn INTERRUPT_EXT into a mask

2017-10-06 Thread Thomas Huth
On 28.09.2017 22:36, David Hildenbrand wrote: > External interrupts are currently all handled like floating external > interrupts, they are queued. Let's prepare for a split of floating > and local interrupts by turning INTERRUPT_EXT into a mask. > > While we can have various floating external int

Re: [Qemu-devel] [Qemu-block] [PATCH 8/8] nbd: Minimal structured read for client

2017-10-06 Thread Vladimir Sementsov-Ogievskiy
06.10.2017 01:12, Eric Blake wrote: On 10/05/2017 05:36 AM, Paolo Bonzini wrote: On 05/10/2017 12:02, Vladimir Sementsov-Ogievskiy wrote: 03.10.2017 17:06, Paolo Bonzini wrote: On 03/10/2017 15:35, Vladimir Sementsov-Ogievskiy wrote: In the end this probably means that you have a read_chunk_h

Re: [Qemu-devel] [Qemu-block] [PATCH 8/8] nbd: Minimal structured read for client

2017-10-06 Thread Vladimir Sementsov-Ogievskiy
06.10.2017 10:09, Vladimir Sementsov-Ogievskiy wrote: 06.10.2017 01:12, Eric Blake wrote: On 10/05/2017 05:36 AM, Paolo Bonzini wrote: On 05/10/2017 12:02, Vladimir Sementsov-Ogievskiy wrote: 03.10.2017 17:06, Paolo Bonzini wrote: On 03/10/2017 15:35, Vladimir Sementsov-Ogievskiy wrote: In t

Re: [Qemu-devel] [Qemu-arm] [PATCH v4 0/5] virtio-iommu: VFIO integration

2017-10-06 Thread Auger Eric
Hi Bharat, On 06/10/2017 05:46, Bharat Bhushan wrote: > > Thanks Eric > > However you should be allowed to map 1 sg element of 5 pages and > then notify the host about this event I think. Still looking at the > code... > > I still can't reproduce the issue

Re: [Qemu-devel] [PATCH 15/23] ppc: spapr: register 'host' core type along with the rest of core types

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:42PM +0200, Igor Mammedov wrote: > consolidate 'host' core type registration by moving it from > KVM specific code into spapr_cpu_core.c, similar like it's > done in x86 target. > > Signed-off-by: Igor Mammedov IIUC this will change behaviour slightly: with this pat

Re: [Qemu-devel] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:39PM +0200, Igor Mammedov wrote: > there is a dedicated callback CPUClass::parse_features > which purpose is to convert -cpu features into a set of > global properties AND deal with compat/legacy features > that couldn't be directly translated into CPU's properties. >

Re: [Qemu-devel] [PATCH 17/23] ppc: spapr: use generic cpu_model parsing

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:44PM +0200, Igor Mammedov wrote: > use generic cpu_model parsing introduced by > (6063d4c0f vl.c: convert cpu_model to cpu type and set of global properties > before machine_init()) > > it allows to: > * replace sPAPRMachineClass::tcg_default_cpu with > Machin

Re: [Qemu-devel] [PATCH 13/23] ppc: spapr: define core types statically

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:40PM +0200, Igor Mammedov wrote: > spapr core type definition doesn't have any fields that > require it to be defined at runtime. So replace code > that fills in TypeInfo at runtime with static TypeInfo > array that does the same at complie time. > > Signed-off-by: Ig

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5] vl: exit if maxcpus is negative

2017-10-06 Thread David Gibson
On Thu, Sep 28, 2017 at 06:38:55PM +0530, seeteena wrote: > > Thanks Thomas. Since you already put them on cc. I will wait for the > response. At this point, I think your patch has been lost in the noise, I'm afraid. I suggest reposting, CCing those suggested people from the start. I'd also sug

Re: [Qemu-devel] [PATCH 16/23] ppc: spapr: use cpu model names as tcg defaults instead of aliases

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:43PM +0200, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Acked-by: David Gibson > --- > hw/ppc/spapr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index ad7afd6..0661dba 100644 > --- a/hw/p

Re: [Qemu-devel] [Qemu-block] [PATCH 8/8] nbd: Minimal structured read for client

2017-10-06 Thread Vladimir Sementsov-Ogievskiy
06.10.2017 01:12, Eric Blake wrote: On 10/05/2017 05:36 AM, Paolo Bonzini wrote: On 05/10/2017 12:02, Vladimir Sementsov-Ogievskiy wrote: 03.10.2017 17:06, Paolo Bonzini wrote: On 03/10/2017 15:35, Vladimir Sementsov-Ogievskiy wrote: In the end this probably means that you have a read_chunk_h

Re: [Qemu-devel] [PATCH 14/23] ppc: spapr: use cpu type name directly

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:41PM +0200, Igor Mammedov wrote: > replace sPAPRCPUCoreClass::cpu_class with cpu type name > since it were needed just to get that at points it were > accessed. > > Signed-off-by: Igor Mammedov Acked-by: David Gibson > --- > include/hw/ppc/spapr_cpu_core.h | 2 +

Re: [Qemu-devel] [PATCH v2 33/40] sparc: sparc: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Thu, 5 Oct 2017 18:25:04 +0100 Mark Cave-Ayland wrote: > On 05/10/17 14:51, Igor Mammedov wrote: > > > Signed-off-by: Igor Mammedov > > Reviewed-by: Philippe Mathieu-Daudé > > Tested-by: Philippe Mathieu-Daudé > > --- > > CC: mark.cave-ayl...@ilande.co.uk > > CC: atar4q...@gmail.com > > --

Re: [Qemu-devel] [PATCH 16/23] ppc: spapr: use cpu model names as tcg defaults instead of aliases

2017-10-06 Thread Greg Kurz
On Thu, 5 Oct 2017 18:24:43 +0200 Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- So... this is preparatory work for the next patch because the generic cpu_model parsing code doesn't handle aliases, is it ? > hw/ppc/spapr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-

Re: [Qemu-devel] [PATCH 0/2] disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread Benjamin Herrenschmidt
On Fri, 2017-10-06 at 11:40 +0530, Nikunj A Dadhania wrote: > Cédric Le Goater writes: > > > Hello, > > > > When a CPU is stopped with the 'stop-self' RTAS call, its state > > 'halted' is switched to 1 and, in this case, the MSR is not taken into > > account anymore in the cpu_has_work() routine

Re: [Qemu-devel] [PATCH 0/2] disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread Cédric Le Goater
On 10/06/2017 09:46 AM, Benjamin Herrenschmidt wrote: > On Fri, 2017-10-06 at 11:40 +0530, Nikunj A Dadhania wrote: >> Cédric Le Goater writes: >> >>> Hello, >>> >>> When a CPU is stopped with the 'stop-self' RTAS call, its state >>> 'halted' is switched to 1 and, in this case, the MSR is not take

Re: [Qemu-devel] [PATCH 0/2] disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread Nikunj A Dadhania
Benjamin Herrenschmidt writes: > On Fri, 2017-10-06 at 11:40 +0530, Nikunj A Dadhania wrote: >> Cédric Le Goater writes: >> >> > Hello, >> > >> > When a CPU is stopped with the 'stop-self' RTAS call, its state >> > 'halted' is switched to 1 and, in this case, the MSR is not taken into >> > acc

Re: [Qemu-devel] [PATCH v1 3/5] xlnx-zcu102: Specify the valid CPUs

2017-10-06 Thread Igor Mammedov
On Thu, 5 Oct 2017 14:09:06 -0300 Eduardo Habkost wrote: > On Thu, Oct 05, 2017 at 11:04:27AM +0200, Igor Mammedov wrote: > > On Wed, 4 Oct 2017 14:39:20 -0700 > > Alistair Francis wrote: > > > > > On Wed, Oct 4, 2017 at 9:34 AM, Eduardo Habkost > > > wrote: > > > > On Wed, Oct 04, 2017 a

Re: [Qemu-devel] [PATCH 04/23] ppc: mpc8544ds/e500plat: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 14:02:56 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:31PM +0200, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > Acked-by: David Gibson > > Do you want me to queue the ppc patches here, or do you already have a > plan for that? Id didn't want to di

Re: [Qemu-devel] [PATCH v4 1/2] virtio: introduce `query-virtio' QMP command

2017-10-06 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Jan Dakinevich writes: > > > On 10/03/2017 05:02 PM, Eric Blake wrote: > >> On 10/03/2017 07:47 AM, Jan Dakinevich wrote: > >>> The command is intended for gathering virtio information such as status, > >>> feature bits, negotiation status. It is c

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread Igor Mammedov
On Thu, 5 Oct 2017 21:05:37 +0200 Greg Kurz wrote: > On Thu, 5 Oct 2017 18:24:39 +0200 > Igor Mammedov wrote: > > > there is a dedicated callback CPUClass::parse_features > > which purpose is to convert -cpu features into a set of > > global properties AND deal with compat/legacy features > >

Re: [Qemu-devel] [Qemu-arm] [PATCH v4 0/5] virtio-iommu: VFIO integration

2017-10-06 Thread Linu Cherian
On Fri Oct 06, 2017 at 09:24:20AM +0200, Auger Eric wrote: > Hi Bharat, > > On 06/10/2017 05:46, Bharat Bhushan wrote: > > > > > Thanks > > Eric > > > > However you should be allowed to map 1 sg element of 5 pages and > > then notify the host about this event I think.

Re: [Qemu-devel] [PATCH 21/23] ppc: pnv: define core types statically

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:48PM +0200, Igor Mammedov wrote: > pnv core type definition doesn't have any fields that > require it to be defined at runtime. So replace code > that fills in TypeInfo at runtime with static TypeInfo > array that does the same at complie time. > > Signed-off-by: Igor

Re: [Qemu-devel] [PATCH 23/23] ppc: pnv: consolidate type definitions and batch register them

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:50PM +0200, Igor Mammedov wrote: > Use a new DEFINE_TYPES() helper to simplify type registration > > Signed-off-by: Igor Mammedov Acked-by: David Gibson > --- > hw/ppc/pnv.c | 92 > ++-- > 1 file changed, 3

Re: [Qemu-devel] [PATCH 20/23] ppc: pnv: drop PnvCoreClass::cpu_oc field

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:47PM +0200, Igor Mammedov wrote: > deduce cpu type directly from core type instead of > maintaining type mapping in PnvCoreClass::cpu_oc and doing > extra cpu_model parsing in pnv_core_class_init() > > Signed-off-by: Igor Mammedov > --- > include/hw/ppc/pnv_core.h |

Re: [Qemu-devel] [PATCH 1/1] hw/ppc/spapr_drc.c: adding drc->dev into detach quiesce condition

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 04:24:58PM -0300, Daniel Henrique Barboza wrote: > In cases where a device is hotplugged and hot-unplugged shortly after, > there is a chance of QEMU breaking with the following message: > > hw/ppc/spapr_drc.c:417:spapr_drc_detach: assertion failed: (drc->dev) > Aborted >

Re: [Qemu-devel] [PATCH 18/23] ppc: pnv: use generic cpu_model parsing

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:45PM +0200, Igor Mammedov wrote: > use common cpu_model prasing in vl.c and set default cpu_model > using generic MachineClass::default_cpu_type. > > Beside of switching to generic infrastructure it solves several > issues. > > * ppc_cpu_class_by_name() is used to d

Re: [Qemu-devel] [PATCH 19/23] ppc: pnv: normalize core/chip type names

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:46PM +0200, Igor Mammedov wrote: > typically for cpus/core type names following convention is used > >new_type_prefix-superclass_typename > > make PNV core/chip to follow common convention. > > Signed-off-by: Igor Mammedov Acked-by: David Gibson > --- > inc

Re: [Qemu-devel] [PATCH 22/23] ppc: pnv: drop PnvChipClass::cpu_model field

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:24:49PM +0200, Igor Mammedov wrote: > deduce core type directly from chip type instead of > maintaining type mapping in PnvChipClass::cpu_model. > > Signed-off-by: Igor Mammedov > --- > include/hw/ppc/pnv.h | 1 - > include/hw/ppc/pnv_core.h | 1 - > hw/ppc/pnv.

Re: [Qemu-devel] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 14:54:47 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:39PM +0200, Igor Mammedov wrote: > > there is a dedicated callback CPUClass::parse_features > > which purpose is to convert -cpu features into a set of > > global properties AND deal with compat/legacy features

Re: [Qemu-devel] [PATCH v2 0/4] blockjobs: add explicit job reaping

2017-10-06 Thread Kevin Wolf
Am 06.10.2017 um 05:56 hat John Snow geschrieben: > On 10/05/2017 07:38 AM, Kevin Wolf wrote: > > Let me try to just consolidate all of the above into a single state > > machine: > > > > 1. CREATED --> RUNNING > > driver callback: .start > > 2a. RUNNING --> READY | CANCELLED > > v

Re: [Qemu-devel] [PATCH 15/23] ppc: spapr: register 'host' core type along with the rest of core types

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 15:41:04 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:42PM +0200, Igor Mammedov wrote: > > consolidate 'host' core type registration by moving it from > > KVM specific code into spapr_cpu_core.c, similar like it's > > done in x86 target. > > > > Signed-off-by: Igo

Re: [Qemu-devel] [PATCH 1/2] spapr/rtas: disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:49:58PM +0200, Cédric Le Goater wrote: > When a CPU is stopped with the 'stop-self' RTAS call, its state > 'halted' is switched to 1 and, in this case, the MSR is not taken into > account anymore in the cpu_has_work() routine. Only the pending > hardware interrupts are ch

Re: [Qemu-devel] [PATCH 0/2] disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:40:02AM +0530, Nikunj A Dadhania wrote: > Cédric Le Goater writes: > > > Hello, > > > > When a CPU is stopped with the 'stop-self' RTAS call, its state > > 'halted' is switched to 1 and, in this case, the MSR is not taken into > > account anymore in the cpu_has_work() r

Re: [Qemu-devel] [PATCH 2/2] spapr/rtas: do not reset the MSR in stop-self command

2017-10-06 Thread David Gibson
On Thu, Oct 05, 2017 at 06:49:59PM +0200, Cédric Le Goater wrote: > When a CPU is stopped with the 'stop-self' RTAS call, its state > 'halted' is switched to 1 and, in this case, the MSR is not taken into > account anymore in the cpu_has_work() routine. Only the pending > hardware interrupts are ch

Re: [Qemu-devel] [PATCH 15/23] ppc: spapr: register 'host' core type along with the rest of core types

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:07:14AM +0200, Igor Mammedov wrote: > On Fri, 6 Oct 2017 15:41:04 +1100 > David Gibson wrote: > > > On Thu, Oct 05, 2017 at 06:24:42PM +0200, Igor Mammedov wrote: > > > consolidate 'host' core type registration by moving it from > > > KVM specific code into spapr_cpu_co

Re: [Qemu-devel] [PATCH 04/23] ppc: mpc8544ds/e500plat: use generic cpu_model parsing

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 10:27:38AM +0200, Igor Mammedov wrote: > On Fri, 6 Oct 2017 14:02:56 +1100 > David Gibson wrote: > > > On Thu, Oct 05, 2017 at 06:24:31PM +0200, Igor Mammedov wrote: > > > Signed-off-by: Igor Mammedov > > > > Acked-by: David Gibson > > > > Do you want me to queue the

Re: [Qemu-devel] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:03:52AM +0200, Igor Mammedov wrote: > On Fri, 6 Oct 2017 14:54:47 +1100 > David Gibson wrote: > > > On Thu, Oct 05, 2017 at 06:24:39PM +0200, Igor Mammedov wrote: > > > there is a dedicated callback CPUClass::parse_features > > > which purpose is to convert -cpu feature

Re: [Qemu-devel] [PATCH 17/23] ppc: spapr: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 16:04:39 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:44PM +0200, Igor Mammedov wrote: > > use generic cpu_model parsing introduced by > > (6063d4c0f vl.c: convert cpu_model to cpu type and set of global > > properties before machine_init()) > > > > it allows to

Re: [Qemu-devel] [PATCH 16/23] ppc: spapr: use cpu model names as tcg defaults instead of aliases

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 09:39:25 +0200 Greg Kurz wrote: > On Thu, 5 Oct 2017 18:24:43 +0200 > Igor Mammedov wrote: > > > Signed-off-by: Igor Mammedov > > --- > > So... this is preparatory work for the next patch because the generic > cpu_model > parsing code doesn't handle aliases, is it ? gen

Re: [Qemu-devel] [PATCH 18/23] ppc: pnv: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 19:34:19 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:45PM +0200, Igor Mammedov wrote: > > use common cpu_model prasing in vl.c and set default cpu_model > > using generic MachineClass::default_cpu_type. > > > > Beside of switching to generic infrastructure it sol

Re: [Qemu-devel] [PATCH 20/23] ppc: pnv: drop PnvCoreClass::cpu_oc field

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 19:41:12 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:47PM +0200, Igor Mammedov wrote: > > deduce cpu type directly from core type instead of > > maintaining type mapping in PnvCoreClass::cpu_oc and doing > > extra cpu_model parsing in pnv_core_class_init() > > >

Re: [Qemu-devel] [PATCH 22/23] ppc: pnv: drop PnvChipClass::cpu_model field

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 19:46:34 +1100 David Gibson wrote: > On Thu, Oct 05, 2017 at 06:24:49PM +0200, Igor Mammedov wrote: > > deduce core type directly from chip type instead of > > maintaining type mapping in PnvChipClass::cpu_model. > > > > Signed-off-by: Igor Mammedov > > --- > > include/hw/pp

Re: [Qemu-devel] [PATCH 17/23] ppc: spapr: use generic cpu_model parsing

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:20:05AM +0200, Igor Mammedov wrote: > On Fri, 6 Oct 2017 16:04:39 +1100 > David Gibson wrote: > > > On Thu, Oct 05, 2017 at 06:24:44PM +0200, Igor Mammedov wrote: > > > use generic cpu_model parsing introduced by > > > (6063d4c0f vl.c: convert cpu_model to cpu type and

Re: [Qemu-devel] [PATCH 04/23] ppc: mpc8544ds/e500plat: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 20:12:02 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 10:27:38AM +0200, Igor Mammedov wrote: > > On Fri, 6 Oct 2017 14:02:56 +1100 > > David Gibson wrote: > > > > > On Thu, Oct 05, 2017 at 06:24:31PM +0200, Igor Mammedov wrote: > > > > Signed-off-by: Igor Mammedov

Re: [Qemu-devel] Patch to add helpful tracing output for driver authors in NVMe emulation

2017-10-06 Thread Kevin Wolf
Am 06.10.2017 um 01:18 hat Doug Gale geschrieben: > I added the tracing output in this patch to assist me in implementing > an NVMe driver. It helped tremendously. > > From 1d19086cdef8d492929852d582cb41dcc5026f71 Mon Sep 17 00:00:00 2001 > From: Doug Gale > Date: Thu, 5 Oct 2017 19:02:03 -0400 >

Re: [Qemu-devel] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 20:17:41 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 11:03:52AM +0200, Igor Mammedov wrote: > > On Fri, 6 Oct 2017 14:54:47 +1100 > > David Gibson wrote: > > > > > On Thu, Oct 05, 2017 at 06:24:39PM +0200, Igor Mammedov wrote: > > > > there is a dedicated callback

Re: [Qemu-devel] [PATCH 1/2] spapr/rtas: disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread Benjamin Herrenschmidt
On Fri, 2017-10-06 at 20:07 +1100, David Gibson wrote: > Hm. Checking mmu_model doesn't seem right to me. I mean, it'll get > the right answer in practice, but the LPCR programming has nothing > whatsoever to do with the MMU. > > I think explicitly checking if cpu_ is a POWER9 instance with > ob

Re: [Qemu-devel] [PATCH 17/23] ppc: spapr: use generic cpu_model parsing

2017-10-06 Thread Igor Mammedov
On Fri, 6 Oct 2017 20:35:41 +1100 David Gibson wrote: > On Fri, Oct 06, 2017 at 11:20:05AM +0200, Igor Mammedov wrote: > > On Fri, 6 Oct 2017 16:04:39 +1100 > > David Gibson wrote: > > > > > On Thu, Oct 05, 2017 at 06:24:44PM +0200, Igor Mammedov wrote: > > > > use generic cpu_model parsing

[Qemu-devel] [PULL 02/33] s390x/tcg: move wrap_address() to internal.h

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand We want to use it in another file. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand Message-Id: <20170920153016.3858-3-da...@redhat.com> Signed-off-by: Cornelia Huck --- target/s390x/internal.h | 14 ++

[Qemu-devel] [PULL 00/33] next batch of s390x patches

2017-10-06 Thread Cornelia Huck
The following changes since commit d8f932cc696250cb740240d668b39df5fbb2d5a0: Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging (2017-10-05 16:54:29 +0100) are available in the git repository at: git://github.com/cohuck/qemu tags/s390x-2017100

[Qemu-devel] [PULL 01/33] s390x/tcg: implement spm (SET PROGRAM MASK)

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Missing and is used inside Linux in the context of CPACF. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand Message-Id: <20170920153016.3858-2-da...@redhat.com> Signed-off-by: Cornelia Huck --- target/s390x/cpu.h | 2 ++ target/s390x/insn-data.d

[Qemu-devel] [PULL 04/33] s390x: use generic cpu_model parsing

2017-10-06 Thread Cornelia Huck
From: Igor Mammedov Define default CPU type in generic way in machine class_init and let common machine code handle cpu_model parsing. Signed-off-by: Igor Mammedov Reviewed-by: David Hildenbrand Message-Id: <1505998749-269631-1-git-send-email-imamm...@redhat.com> Signed-off-by: Cornelia Huck

[Qemu-devel] [PULL 07/33] s390x/css: use ccw data stream

2017-10-06 Thread Cornelia Huck
From: Halil Pasic Replace direct access which implicitly assumes no IDA or MIDA with the new ccw data stream interface which should cope with these transparently in the future. Note that checking the return code for ccw_dstream_* will be done in a follow-on patch. Signed-off-by: Halil Pasic Re

[Qemu-devel] [PULL 06/33] s390x/css: introduce css data stream

2017-10-06 Thread Cornelia Huck
From: Halil Pasic This is a preparation for introducing handling for indirect data addressing and modified indirect data addressing (CCW). Here we introduce an interface which should make the addressing scheme transparent for the client code. Here we implement only the basic scheme (no IDA or MID

[Qemu-devel] [PULL 03/33] s390x/tcg: add basic MSA features

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand The STFLE bits for the MSA (extension) facilities simply indicate that the respective instructions can be executed. The QUERY subfunction can then be used to identify which features exactly are available. Availability of subfunctions can also vary on real hardware. For no

[Qemu-devel] [PULL 05/33] s390x/kvm: fix and cleanup storing CPU status

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand env->psa is a 64bit value, while we copy 4 bytes into the save area, resulting always in 0 getting stored. Let's try to reduce such errors by using a proper structure. While at it, use correct cpu->be conversion (and get_psw_mask()), as we will be reusing this code for TC

[Qemu-devel] [PULL 09/33] 390x/css: introduce maximum data address checking

2017-10-06 Thread Cornelia Huck
From: Halil Pasic The architecture mandates the addresses to be accessed on the first indirection level (that is, the data addresses without IDA, and the (M)IDAW addresses with (M)IDA) to be checked against an CCW format dependent limit maximum address. If a violation is detected, the storage ac

[Qemu-devel] [PULL 21/33] s390x: raise CPU hotplug irq after really hotplugged

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Let's move it into the machine, so we trigger the IRQ after setting ms->possible_cpus (which SCLP uses to construct the list of online CPUs). This also fixes a problem reported by Thomas Huth, whereby qemu can be crashed using the none machine qemu-s390x-softmmu -M none

[Qemu-devel] [PULL 08/33] virtio-ccw: use ccw data stream

2017-10-06 Thread Cornelia Huck
From: Halil Pasic Replace direct access which implicitly assumes no IDA or MIDA with the new ccw data stream interface which should cope with these transparently in the future. Note that checking the return code for ccw_dstream_* will be done in a follow-on patch. Signed-off-by: Halil Pasic Re

[Qemu-devel] [PULL 13/33] s390x/tcg: make lura(g) use the new _real mmu.

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Looks like, lurag was not loading 64bit but only 32bit. As we properly handle the return address now, we can drop potential_page_fault(). Signed-off-by: David Hildenbrand Message-Id: <20170926183318.12995-4-da...@redhat.com> Reviewed-by: Richard Henderson Reviewed-by:

[Qemu-devel] [PULL 12/33] s390x/tcg: add MMU for real addresses

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand This makes it easy to access real addresses (prefix) and in addition checks for valid memory addresses, which is missing when using e.g. stl_phys(). We can later reuse it to implement low address protection checks (then we might even decide to introduce yet another MMU fo

[Qemu-devel] [PULL 23/33] target/s390x: get rid of next_core_id

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand core_id is not needed by linux-user, as the core_id a.k.a. CPU address is only accessible from kernel space. Therefore, drop next_core_id and make cpu_index get autoassigned again for linux-user. While at it, shield core_id and cpuid completely from linux-user. cpuid can

[Qemu-devel] [PULL 11/33] s390x/tcg: fix checking for invalid memory check

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand It should have been a >=, but let's directly perform a proper access check to also be able to deal with hotplugged memory later. Signed-off-by: David Hildenbrand Message-Id: <20170926183318.12995-2-da...@redhat.com> Reviewed-by: Richard Henderson Reviewed-by: Thomas Hut

[Qemu-devel] [PULL 15/33] s390x/tcg: make testblock use the new _real mmu

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Low address protection checks will be moved into the mmu later. Signed-off-by: David Hildenbrand Message-Id: <20170926183318.12995-6-da...@redhat.com> Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- target/s390x/mem_helper.c |

[Qemu-devel] [PULL 16/33] s390x/tcg: make idte/ipte use the new _real mmu

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand We don't wrap addresses in the mmu for the _real case, therefore the behavior should be unchanged. Signed-off-by: David Hildenbrand Message-Id: <20170926183318.12995-7-da...@redhat.com> Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huc

[Qemu-devel] [PULL 24/33] s390x: introduce and use S390_MAX_CPUS

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Will be handy in the future. Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand Message-Id: <20170928134609.16985-6-da...@redhat.com> Signed-off-by: Cornelia Huck --- hw/s390x/s390-virtio-ccw.c | 2 +- target/s390x/cpu.h

[Qemu-devel] [PULL 10/33] s390x/css: support ccw IDA

2017-10-06 Thread Cornelia Huck
From: Halil Pasic Let's add indirect data addressing support for our virtual channel subsystem. This implementation does not bother with any kind of prefetching. We simply step through the IDAL on demand. Signed-off-by: Halil Pasic Message-Id: <20170921180841.24490-6-pa...@linux.vnet.ibm.com> R

[Qemu-devel] [PULL 20/33] MAINTAINERS: use KVM s390x maintainers for kvm-stubs.c and kvm_s390x.h

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Forgot it when factoring code out into these files. This is 100% s390x KVM material. Signed-off-by: David Hildenbrand Message-Id: <20170928134609.16985-2-da...@redhat.com> Acked-by: Christian Borntraeger Signed-off-by: Cornelia Huck --- MAINTAINERS | 2 ++ 1 file chan

[Qemu-devel] [PULL 17/33] Revert "s390x/ccw: create s390 phb conditionally"

2017-10-06 Thread Cornelia Huck
From: Christian Borntraeger This reverts commit d32bd032d8fde41281aae34c16a4aa97e9acfeac. Turns out that old QEMUs always created a pci host bridge and for many CPU models the migration from old QEMUs to new QEMUs will fail with qemu-system-s390x: Unknown savevm section or instance 'PCIBUS' 0 qe

[Qemu-devel] [PULL 27/33] s390x/css: fix css migration compat handling

2017-10-06 Thread Cornelia Huck
From: Halil Pasic Commit e996583eb3 ("s390x/css: activate ChannelSubSys migration", 2017-07-11) was supposed to enable css migration for virtio-ccw machines starting 2.10, but it ended up effectively enabling it only for 2.10 as the registration of the appropriate VMStateDescription happens in cc

[Qemu-devel] [PULL 14/33] s390x/tcg: make stora(g) use the new _real mmu

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand As we properly handle the return address now, we can drop potential_page_fault(). Signed-off-by: David Hildenbrand Message-Id: <20170926183318.12995-5-da...@redhat.com> Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- target/s3

[Qemu-devel] [PULL 19/33] s390x/3270: handle writes of arbitrary length

2017-10-06 Thread Cornelia Huck
From: Halil Pasic The problem is, that the current implementation places unrealistic and arbitrary constraints on the length of writes to the device (that is the outbound requests), by asserting ccw.count being such that that even the worst case escaped payload will fit an more or less arbitrary

[Qemu-devel] [PULL 25/33] s390x/tcg: make STFL store into the lowcore

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Using virtual memory access is wrong and will soon include low-address protection checks, which is to be bypassed for STFL. STFL is a privileged instruction and using LowCore requires !CONFIG_USER_ONLY, so add the ifdef and move the declaration to the right place. This w

[Qemu-devel] [PULL 31/33] s390x/sclp: mark sclp-cpu-hotplug as non-usercreatable

2017-10-06 Thread Cornelia Huck
A TYPE_SCLP_CPU_HOTPLUG device for handling cpu hotplug events is already created by the sclp event facility. Adding a second TYPE_SCLP_CPU_HOTPLUG device via -device sclp-cpu-hotplug creates an ambiguity in raise_irq_cpu_hotplug(), leading to a crash once a cpu is hotplugged. To fix this, disallo

[Qemu-devel] [PULL 18/33] s390x/3270: IDA support for 3270 via CcwDataStream

2017-10-06 Thread Cornelia Huck
From: Halil Pasic Let us convert the 3270 code so it uses the recently introduced CcwDataStream abstraction instead of blindly assuming direct data access. This patch does not change behavior beyond introducing IDA support: for direct data access CCWs everything stays as-is. (If there are bugs,

[Qemu-devel] [PULL 22/33] s390x/cpumodel: fix max STFL(E) bit number

2017-10-06 Thread Cornelia Huck
From: David Hildenbrand Not that it would matter in the near future, but it is actually 2048 bytes, therefore 16384 possible bits. Reviewed-by: Christian Borntraeger Reviewed-by: Thomas Huth Signed-off-by: David Hildenbrand Message-Id: <20170928134609.16985-4-da...@redhat.com> Signed-off-by:

[Qemu-devel] [PULL 28/33] s390/kvm: Support for get/set of extended TOD-Clock for guest

2017-10-06 Thread Cornelia Huck
From: "Collin L. Walling" Provides an interface for getting and setting the guest's extended TOD-Clock via a single ioctl to kvm. If the ioctl fails because it is not support by kvm, then we fall back to the old style of retrieving the clock via two ioctls. Signed-off-by: Collin L. Walling Revi

[Qemu-devel] [PULL 29/33] s390/kvm: make TOD setting failures fatal for migration

2017-10-06 Thread Cornelia Huck
From: "Collin L. Walling" If we fail to set a proper TOD clock on the target system, this can already result in some problematic cases. We print several warn messages on source and target in that case. If kvm fails to set a nonzero epoch index, then we must ultimately fail the migration as this

[Qemu-devel] [PULL 26/33] s390x: sort some devices into categories

2017-10-06 Thread Cornelia Huck
Add missing categorizations for some s390x devices: - zpci device -> misc - 3270 -> display - vfio-ccw -> misc Acked-by: Christian Borntraeger Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- hw/s390x/3270-ccw.c | 1 + hw/s390x/s390-pci-bus.c | 1 + hw/vfio/ccw.c | 1 +

[Qemu-devel] [PULL 32/33] s390x/tcg: initialize machine check queue

2017-10-06 Thread Cornelia Huck
Just as for external interrupts and I/O interrupts, we need to initialize mchk_index during cpu reset. Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck --- target/s390x/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/s390x/cpu.c b/target/s

[Qemu-devel] [PULL 30/33] s390x/sclp: Mark the sclp device with user_creatable = false

2017-10-06 Thread Cornelia Huck
From: Thomas Huth The "sclp" device is just an internal device that can not be instantiated by the users. If they try to use it, they only get a simple error message: $ qemu-system-s390x -nographic -device sclp qemu-system-s390x: Option '-device s390-sclp-event-facility' cannot be handled by thi

[Qemu-devel] [PULL 33/33] hw/s390x: Mark the "sclpquiesce" device with user_creatable = false

2017-10-06 Thread Cornelia Huck
From: Thomas Huth The "sclpquiesce" device is just an internal device that should not be created by the user directly. Though it currently does not seem to cause any obvious trouble when the user instantiates an additional device, let's better mark it with user_creatable = false to avoid unexpect

Re: [Qemu-devel] [PATCH 12/23] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:52:44AM +0200, Igor Mammedov wrote: > On Fri, 6 Oct 2017 20:17:41 +1100 > David Gibson wrote: > > > On Fri, Oct 06, 2017 at 11:03:52AM +0200, Igor Mammedov wrote: > > > On Fri, 6 Oct 2017 14:54:47 +1100 > > > David Gibson wrote: > > > > > > > On Thu, Oct 05, 2017 at

Re: [Qemu-devel] [PATCH 16/23] ppc: spapr: use cpu model names as tcg defaults instead of aliases

2017-10-06 Thread Greg Kurz
On Fri, 6 Oct 2017 11:27:10 +0200 Igor Mammedov wrote: > On Fri, 6 Oct 2017 09:39:25 +0200 > Greg Kurz wrote: > > > On Thu, 5 Oct 2017 18:24:43 +0200 > > Igor Mammedov wrote: > > > > > Signed-off-by: Igor Mammedov > > > --- > > > > So... this is preparatory work for the next patch be

Re: [Qemu-devel] [PATCH 1/2] spapr/rtas: disable the decrementer interrupt when a CPU is unplugged

2017-10-06 Thread David Gibson
On Fri, Oct 06, 2017 at 11:53:30AM +0200, Benjamin Herrenschmidt wrote: > On Fri, 2017-10-06 at 20:07 +1100, David Gibson wrote: > > Hm. Checking mmu_model doesn't seem right to me. I mean, it'll get > > the right answer in practice, but the LPCR programming has nothing > > whatsoever to do with

Re: [Qemu-devel] [REBASED 1/2] exec: add page_mask for flatview_do_translate

2017-10-06 Thread Maxime Coquelin
On 10/05/2017 07:13 PM, Maxime Coquelin wrote: static MemoryRegionSection flatview_do_translate(FlatView *fv, hwaddr addr, hwaddr *xlat, - hwad

Re: [Qemu-devel] [PATCH for-2.10 0/3] qdev/vfio: defer DEVICE_DEL to avoid races with libvirt

2017-10-06 Thread David Gibson
On Tue, Oct 03, 2017 at 05:21:57PM -0500, Michael Roth wrote: > Quoting Michael Roth (2017-07-26 20:30:52) > > This series was motivated by the discussion in this thread: > > > > https://www.redhat.com/archives/libvir-list/2017-June/msg01370.html > > > > The issue this series addresses is that

Re: [Qemu-devel] [PATCH 00/22] tcg: tb_lock removal

2017-10-06 Thread Alex Bennée
Emilio G. Cota writes: > On Mon, Aug 07, 2017 at 19:52:16 -0400, Emilio G. Cota wrote: >> This series applies on top of the "multiple TCG contexts" series, v4: >> https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg06769.html > (snip) >> Please review! > > Turns out this patchset breaks i

[Qemu-devel] [PATCH] keycodemapdb: try fix makefile deps

2017-10-06 Thread Gerd Hoffmann
(1) make .git-submodule-status depend on config-host.mak, for GIT_SUBMODULES changes. (2) make $(KEYCODEMAP_{GEN,CSV}) depend on .git-submodule-status so make knows what to do if they are not there. I still get errors because make tries to generate the files before they are checked out,

Re: [Qemu-devel] [PATCH v2 33/40] sparc: sparc: use generic cpu_model parsing

2017-10-06 Thread Mark Cave-Ayland
On 06/10/17 08:37, Igor Mammedov wrote: >> No objections to this patch but just to confirm from the previous >> discussion that the cpu type gets parsed in a way such that an existing >> -cpu "TI SuperSparc II" option gets mapped to the correct >> "TI-SuperSparc-II" type? Presumably this is now ha

[Qemu-devel] [Bug 1718719] Re: qemu can't capture keys properly under wayland

2017-10-06 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qemu (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1718719 Title: qemu

[Qemu-devel] [Bug 1721744] Re: Help content missing for newly added machine properties

2017-10-06 Thread Greg Kurz
Hmm... -h is common to all targets, ie, you should only find properties that can be passed to -machine for all qemu-system-* binaries (I don't know how s390-squash-mcss landed there but it looks wrong). The right way to query properties supported by a pseries machine type is: $ ./ppc64-softmmu/qe

[Qemu-devel] [PATCH v2 0/2] exec: further refine address_space_get_iotlb_entry()

2017-10-06 Thread Maxime Coquelin
This series is a rebase of the first two patches of Peter's series improving address_space_get_iotlb_entry(): Message-Id: <1496404254-17429-1-git-send-email-pet...@redhat.com> This second revision of the rebase fixes the page_mask initial value, that was mistakenly set to its complement. This bug

Re: [Qemu-devel] [PATCH v1 3/5] xlnx-zcu102: Specify the valid CPUs

2017-10-06 Thread Eduardo Habkost
On Fri, Oct 06, 2017 at 10:23:12AM +0200, Igor Mammedov wrote: > On Thu, 5 Oct 2017 14:09:06 -0300 > Eduardo Habkost wrote: > > > On Thu, Oct 05, 2017 at 11:04:27AM +0200, Igor Mammedov wrote: > > > On Wed, 4 Oct 2017 14:39:20 -0700 > > > Alistair Francis wrote: > > > > > > > On Wed, Oct 4, 2

[Qemu-devel] [PATCH v2 2/2] exec: simplify address_space_get_iotlb_entry

2017-10-06 Thread Maxime Coquelin
From: Peter Xu This patch let address_space_get_iotlb_entry() to use the newly introduced page_mask parameter in flatview_do_translate(). Then we will be sure the IOTLB can be aligned to page mask, also we should nicely support huge pages now when introducing a764040. Fixes: a764040 ("exec: abst

Re: [Qemu-devel] [Bug 1721744] Re: Help content missing for newly added machine properties

2017-10-06 Thread Cornelia Huck
On Fri, 06 Oct 2017 11:21:08 - Greg Kurz wrote: > Hmm... -h is common to all targets, ie, you should only find properties > that can be passed to -machine for all qemu-system-* binaries (I don't > know how s390-squash-mcss landed there but it looks wrong). That output comes from qemu-options

[Qemu-devel] [PATCH v2 1/2] exec: add page_mask for flatview_do_translate

2017-10-06 Thread Maxime Coquelin
From: Peter Xu The function is originally used for flatview_space_translate() and what we care about most is (xlat, plen) range. However for iotlb requests, we don't really care about "plen", but the size of the page that "xlat" is located on. While, plen cannot really contain this information.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5] vl: exit if maxcpus is negative

2017-10-06 Thread Eduardo Habkost
On Fri, Oct 06, 2017 at 03:15:44PM +1100, David Gibson wrote: > On Thu, Sep 28, 2017 at 06:38:55PM +0530, seeteena wrote: > > > > Thanks Thomas. Since you already put them on cc. I will wait for the > > response. > > At this point, I think your patch has been lost in the noise, I'm > afraid. I s

  1   2   3   4   5   >