[Qemu-devel] [PATCH v9 02/14] hw/arm/smmu-common: IOMMU memory region and address space setup

2018-02-17 Thread Eric Auger
We enumerate all the PCI devices attached to the SMMU and initialize an associated IOMMU memory region and address space. This happens on SMMU base instance init. Those info are stored in SMMUDevice objects. The devices are grouped according to the PCIBus they belong to. A hash table indexed by th

[Qemu-devel] [PATCH v2 63/67] target/arm: Implement SVE floating-point trig multiply-add coefficient

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 4 +++ target/arm/sve_helper.c| 70 ++ target/arm/translate-sve.c | 26 + target/arm/sve.decode | 3 ++ 4 files changed, 103 insertions(+) diff --git a/target/

[Qemu-devel] [PATCH v9 05/14] hw/arm/smmuv3: Wired IRQ and GERROR helpers

2018-02-17 Thread Eric Auger
We introduce some helpers to handle wired IRQs and especially GERROR interrupt. SMMU writes GERROR register on GERROR event and SW acks GERROR interrupts by setting GERRORn. The Wired interrupts are edge sensitive hence the pulse usage. Signed-off-by: Eric Auger --- v7 -> v8: - remove SMMU_PEN

[Qemu-devel] [PATCH 0/2] MIPS Boston / pch_gbe ethernet support

2018-02-17 Thread Paul Burton
This short series introduces support for emulating the ethernet controller found in the Intel EG20T Platform Controller Hub, and then enables that device for the MIPS Boston board. This gives the Boston board a network device matching that found on real Boston boards, providing unmodified Boston Li

Re: [Qemu-devel] [Qemu-arm] [PATCH 2/3] hw/sii9022: Add support for Silicon Image SII9022

2018-02-17 Thread Philippe Mathieu-Daudé
Hi Linus, On 02/17/2018 11:00 AM, Linus Walleij wrote: > This adds support for emulating the Silicon Image SII9022 DVI/HDMI > bridge. It's not very clever right now, it just acknowledges > the switch into DDC I2C mode and back. Combining this with the > existing DDC I2C emulation gives the right b

[Qemu-devel] [PATCH v9 14/14] hw/arm/virt: Handle iommu in 2.12 machine type

2018-02-17 Thread Eric Auger
The new machine type exposes a new "iommu" virt machine option. The SMMUv3 IOMMU is instantiated using -machine virt,iommu=smmuv3. Signed-off-by: Eric Auger --- v7 -> v8: - Revert to machine option, now dubbed "iommu", preparing for virtio instantiation. v5 -> v6: machine 2_11 Another altern

[Qemu-devel] [PATCH v9 00/14] ARM SMMUv3 Emulation Support

2018-02-17 Thread Eric Auger
This series implements the emulation code for ARM SMMUv3. SMMUv3 gets instantiated by adding ",iommu=smmuv3" to the virt machine option. VHOST integration will be handled in a separate series. VFIO integration is not targeted at the moment. Only stage 1 and AArch64 PTW are supported. Main change

[Qemu-devel] [PATCH v9 04/14] hw/arm/smmuv3: Skeleton

2018-02-17 Thread Eric Auger
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. Only the MMIO read operation is implemented here. Signed-off-by: Prem Mallappa Signed-off-by: Eric Auger

[Qemu-devel] [PATCH v9 07/14] hw/arm/smmuv3: Implement MMIO write operations

2018-02-17 Thread Eric Auger
Now we have relevant helpers for queue and irq management, let's implement MMIO write operations. Signed-off-by: Eric Auger --- v7 -> v8: - precise in the commit message invalidation commands are not yet treated. - use new queue helpers - do not decode unhandled commands at this stage --- hw

[Qemu-devel] [PATCH v9 06/14] hw/arm/smmuv3: Queue helpers

2018-02-17 Thread Eric Auger
We introduce helpers to read/write into the command and event circular queues. smmuv3_write_eventq and smmuv3_cmq_consume will become static in subsequent patches. Invalidation commands are not yet dealt with. We do not cache data that need to be invalidated. This will change with vhost integrati

[Qemu-devel] [PATCH v9 11/14] target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route

2018-02-17 Thread Eric Auger
In case the MSI is translated by an IOMMU we need to fixup the MSI route with the translated address. Signed-off-by: Eric Auger --- v5 -> v6: - use IOMMUMemoryRegionClass API It is still unclear to me if we need to register an IOMMUNotifier to handle any change in the MSI doorbell which would

[Qemu-devel] [PATCH v9 09/14] hw/arm/smmuv3: Implement translate callback

2018-02-17 Thread Eric Auger
This patch implements the IOMMU Memory Region translate() callback. Most of the code relates to the translation configuration decoding and check (STE, CD). Signed-off-by: Eric Auger --- v8 -> v9: - use SMMU_EVENT_STRING macro - get rid of last erro_report's - decode asid - handle config abort be

[Qemu-devel] [PATCH v9 12/14] hw/arm/virt: Add SMMUv3 to the virt board

2018-02-17 Thread Eric Auger
From: Prem Mallappa Add code to instantiate an smmuv3 in virt machine. A new iommu integer member is introduced in VirtMachineState to store the type of the iommu in use. Signed-off-by: Prem Mallappa Signed-off-by: Eric Auger --- v7 -> v8: - integer iommu member - add primary-bus property v4

[Qemu-devel] [PATCH v9 13/14] hw/arm/virt-acpi-build: Add smmuv3 node in IORT table

2018-02-17 Thread Eric Auger
From: Prem Mallappa This patch builds the smmuv3 node in the ACPI IORT table. The RID space of the root complex, which spans 0x0-0x1 maps to streamid space 0x0-0x1 in smmuv3, which in turn maps to deviceid space 0x0-0x1 in the ITS group. The guest must feature the IOMMU probe deferr

[Qemu-devel] [PATCH 2/2] hw/mips/boston: Enable pch_gbe ethernet controller

2018-02-17 Thread Paul Burton
Enable CONFIG_PCH_GBE_PCI in mips64el-softmmu.mak (currently the only default config to enable Boston board support) and create the pch_gbe device when using the Boston board. This provides the board with an ethernet controller matching that found on real Boston boards as part of the Intel EG20T P

[Qemu-devel] [PATCH 00/19] target/hppa: Convert to decodetree.py

2018-02-17 Thread Richard Henderson
The existing hppa backend uses a lot of mask/compare tables to do decoding beyond the major opcode. Converting the port to the autogenerator makes things lots easier to read. r~ Richard Henderson (19): target/hppa: Use DisasContextBase.is_jmp target/hppa: Begin using scripts/decodetree.py

[Qemu-devel] [PATCH 04/19] target/hppa: Convert remainder of system insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 92 ++-- target/hppa/insns.decode | 12 +++ 2 files changed, 55 insertions(+), 49 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 9b2de2fa2a..ae5969be

[Qemu-devel] [PATCH 02/19] target/hppa: Begin using scripts/decodetree.py

2018-02-17 Thread Richard Henderson
Convert the BREAK instruction to start. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 14 +++--- target/hppa/Makefile.objs | 8 target/hppa/insns.decode | 24 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 targ

[Qemu-devel] [PATCH 03/19] target/hppa: Convert move to/from system registers

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 57 +--- target/hppa/insns.decode | 15 + 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index a503ae38d4..9b

[Qemu-devel] [PATCH 07/19] target/hppa: Convert arithmetic/logical insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 337 ++- target/hppa/insns.decode | 40 ++ 2 files changed, 197 insertions(+), 180 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index ca46e8d50b..91617b

[Qemu-devel] [PATCH 05/19] target/hppa: Unify specializations of OR

2018-02-17 Thread Richard Henderson
With decodetree.py, the specializations would conflict so we must have a single entry point for all variants of OR. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 108 +++- 1 file changed, 60 insertions(+), 48 deletions(-) diff --git a

[Qemu-devel] [PATCH 06/19] target/hppa: Convert memory management insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 159 +++ target/hppa/insns.decode | 38 +++ 2 files changed, 88 insertions(+), 109 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 074234b1e0..ca

[Qemu-devel] [PATCH 01/19] target/hppa: Use DisasContextBase.is_jmp

2018-02-17 Thread Richard Henderson
Instead of returning DisasJumpType, immediately store it. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 971 1 file changed, 487 insertions(+), 484 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index

[Qemu-devel] [PATCH 13/19] target/hppa: Convert arithmetic immediate insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 168 +-- target/hppa/insns.decode | 21 ++ 2 files changed, 96 insertions(+), 93 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 5df5b8dba4..51bd9016

[Qemu-devel] [PATCH 08/19] target/hppa: Convert indexed memory insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 157 ++- target/hppa/insns.decode | 24 2 files changed, 56 insertions(+), 125 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 91617bf9ad..792e8

[Qemu-devel] [PATCH 14/19] target/hppa: Convert offset memory insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 193 ++- target/hppa/insns.decode | 49 2 files changed, 88 insertions(+), 154 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 51bd9016ab..6

[Qemu-devel] [PATCH 15/19] target/hppa: Convert fp indexed memory insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 93 target/hppa/insns.decode | 21 +++ 2 files changed, 21 insertions(+), 93 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 6f97f7330e..1973

[Qemu-devel] [PATCH 16/19] target/hppa: Convert halt/reset insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 49 +++- target/hppa/insns.decode | 5 + 2 files changed, 20 insertions(+), 34 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1973923a18..5abe4cd610

[Qemu-devel] [PATCH 09/19] target/hppa: Convert fp multiply-add

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 69 target/hppa/insns.decode | 12 + 2 files changed, 52 insertions(+), 29 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 792e838849..1cfdbf

[Qemu-devel] [PATCH 10/19] target/hppa: Convert conditional branches

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 188 --- target/hppa/insns.decode | 30 2 files changed, 110 insertions(+), 108 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1cfdbf6296..361a

[Qemu-devel] [PATCH 19/19] target/hppa: Merge translate_one into hppa_tr_translate_insn

2018-02-17 Thread Richard Henderson
Now that the implementation is entirely within the generated decode function, eliminate the wrapper. Signed-off-by: Richard Henderson --- target/hppa/translate.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c inde

[Qemu-devel] [PATCH 18/19] target/hppa: Convert fp operate insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 757 --- target/hppa/insns.decode | 175 +++ 2 files changed, 498 insertions(+), 434 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 1d2134ac06..3

[Qemu-devel] [PATCH 11/19] target/hppa: Convert shift, extract, deposit insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 217 ++- target/hppa/insns.decode | 15 2 files changed, 96 insertions(+), 136 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 361a20b733..e01a28c70

[Qemu-devel] [PATCH 17/19] target/hppa: Convert fp fused multiply-add insns

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 79 target/hppa/insns.decode | 12 2 files changed, 38 insertions(+), 53 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 5abe4cd610..1d2134a

[Qemu-devel] [PATCH 12/19] target/hppa: Convert direct and indirect branches

2018-02-17 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/hppa/translate.c | 125 --- target/hppa/insns.decode | 34 - 2 files changed, 63 insertions(+), 96 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index e01a28c70c..5

Re: [Qemu-devel] [PATCH 0/1] slirp: Add domainname option to slirp's DHCP server

2018-02-17 Thread Samuel Thibault
Hello, Benjamin Drung, on ven. 16 févr. 2018 13:55:03 +0100, wrote: > Or should the command line option be simpler, but how should it be specified > then? Maybe > > -net > staticroute=10.0.2.0/24via10.0.2.2,staticroute=192.168.0.0/16via10.0.2.2 I guess > -net staticroute=10.0.2.0/24:10.0.

[Qemu-devel] [PATCH v3] ppc: Add aCube Sam460ex board

2018-02-17 Thread BALATON Zoltan
Add emulation of aCube Sam460ex board based on AMCC 460EX embedded SoC. This is not a complete implementation yet with a lot of components still missing but enough for the U-Boot firmware to start and to boot a Linux kernel or AROS. Signed-off-by: François Revol Signed-off-by: BALATON Zoltan ---

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 3/3] ppc: Add aCube Sam460ex board

2018-02-17 Thread BALATON Zoltan
On Fri, 16 Feb 2018, BALATON Zoltan wrote: On Fri, 16 Feb 2018, David Gibson wrote: On Thu, Feb 15, 2018 at 10:27:06PM +0100, BALATON Zoltan wrote: Add emulation of aCube Sam460ex board based on AMCC 460EX embedded SoC. This is not a complete implementation yet with a lot of components still mi

[Qemu-devel] [PATCH] target/m68k: TCGv returned by gen_load() must be freed

2018-02-17 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- target/m68k/translate.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 70c7583621..cb795ed25b 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -2869,6 +2869,7 @@ DISAS_

[Qemu-devel] [PATCH 1/2] target/openrisc: convert to DisasContextBase

2018-02-17 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- target/openrisc/translate.c | 87 ++--- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index 2747b24..0450144 100644 --- a/target/openrisc/translate

[Qemu-devel] [PATCH 2/2] target/openrisc: convert to TranslatorOps

2018-02-17 Thread Emilio G. Cota
Notes: - Changed the num_insns test in tb_start to check for dc->base.num_insns > 1, since when tb_start is first called in a TB, base.num_insns is already set to 1. - Removed DISAS_NEXT from the switch on tb_stop; use DISAS_TOO_MANY instead. - Added an assert_not_reached on tb_stop for DI

[Qemu-devel] [PATCH 0/2] target/openrisc: translator loop conversion

2018-02-17 Thread Emilio G. Cota
Tested on the image linked from the wiki: https://wiki.qemu.org/Testing/System_Images Boot after decompressing with: or1k-softmmu/qemu-system-or1k -cpu or1200 -M or1k-sim \ -kernel path/to/or1k-linux-4.10 \ -serial stdio -nographic -monitor none Thanks, Emilio

Re: [Qemu-devel] [PATCH 1/2] target/openrisc: convert to DisasContextBase

2018-02-17 Thread Stafford Horne
On Sat, Feb 17, 2018 at 08:32:36PM -0500, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota Hello, This looks ok to me, and thanks for testing. However, I am not so familiar with the DisasContextBase. Is this something new? It would be good to have a commit message to say what it is any w

Re: [Qemu-devel] [PATCH 2/2] target/openrisc: convert to TranslatorOps

2018-02-17 Thread Stafford Horne
On Sat, Feb 17, 2018 at 08:32:37PM -0500, Emilio G. Cota wrote: > Notes: > > - Changed the num_insns test in tb_start to check for > dc->base.num_insns > 1, since when tb_start is first > called in a TB, base.num_insns is already set to 1. > > - Removed DISAS_NEXT from the switch on tb_stop;

[Qemu-devel] [Bug 1202289] Re: Windows 2008/7 Guest to Guest Very slow 10-20Mbit/s

2018-02-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1202289 Title: Windows 200

[Qemu-devel] [Bug 1299858] Re: qemu all apps crash on OS X 10.6.8

2018-02-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1299858 Title: qemu all ap

[Qemu-devel] [Bug 1211910] Re: Logical to linear address translation is wrong for 32-bit guests on a 64-bit hypervisor

2018-02-17 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1211910 Title: Logical to

Re: [Qemu-devel] [PATCH 1/2] target/openrisc: convert to DisasContextBase

2018-02-17 Thread Emilio G. Cota
On Sun, Feb 18, 2018 at 12:10:46 +0900, Stafford Horne wrote: > On Sat, Feb 17, 2018 at 08:32:36PM -0500, Emilio G. Cota wrote: > > Signed-off-by: Emilio G. Cota > This looks ok to me, and thanks for testing. However, I am not so familiar > with > the DisasContextBase. Is this something new? T

<    1   2