[Qemu-devel] [PULL 12/22] target/ppc: Split out float_invalid_cvt

2018-11-08 Thread David Gibson
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 67 + 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index

[Qemu-devel] [PULL 10/22] target/ppc: Split out float_invalid_op_mul

2018-11-08 Thread David Gibson
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 43 +++-- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index

[Qemu-devel] [PULL 04/22] PPC: e500: convert SysBus init method to a realize method

2018-11-08 Thread David Gibson
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/pci-host/ppce500.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/pci-host/ppce500.c

[Qemu-devel] [PULL 01/22] target/ppc: add external PID support

2018-11-08 Thread David Gibson
From: Roman Kapl External PID is a mechanism present on BookE 2.06 that enables application to store/load data from different address spaces. There are special version of some instructions, which operate on alternate address space, which is specified in the EPLC/EPSC regiser. This

[Qemu-devel] [PULL 09/22] target/ppc: Split out float_invalid_op_addsub

2018-11-08 Thread David Gibson
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/fpu_helper.c | 60 ++--- 1 file changed, 26 insertions(+), 34 deletions(-) diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index

[Qemu-devel] [PULL 00/22] ppc-for-3.1 queue 20181108

2018-11-08 Thread David Gibson
The following changes since commit 4de6bb0c02ad3f0ec48f0f84ba1a65ab06e81b86: Update version for v3.1.0-rc0 release (2018-11-06 18:27:35 +) are available in the Git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-3.1-20181108 for you to fetch changes up

[Qemu-devel] [PULL 06/22] target/ppc: Split up float_invalid_op_excp

2018-11-08 Thread David Gibson
From: Richard Henderson The always_inline trick only works if the function is always called from the outer-most helper. But it isn't, so pass in the outer-most return address. There's no need for a switch statement whose argument is always a constant. Unravel the switch and goto via more

[Qemu-devel] [PULL 03/22] ppc4xx_pci: convert SysBus init method to a realize method

2018-11-08 Thread David Gibson
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- hw/ppc/ppc4xx_pci.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c

[Qemu-devel] [PULL 02/22] ppc440_pcix: convert SysBus init method to a realize method

2018-11-08 Thread David Gibson
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- hw/ppc/ppc440_pcix.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/hw/ppc/ppc440_pcix.c

[Qemu-devel] [PATCH 0/2] target/riscv: Bugfixes found in decodetree conversion

2018-11-08 Thread Bastian Koppelmann
Hi, while going through the reviews of the riscv-decodetree patches, two bugs came up that I fix here. There is one more problem [1] mentioned by Richard but I don't have the time to investigate it further. [1] https://patchwork.kernel.org/patch/10650293/ Bastian Koppelmann (2):

[Qemu-devel] [PATCH 2/2] target/riscv: Fix sfence.vm/a both available in any priv version

2018-11-08 Thread Bastian Koppelmann
sfence.vm has been replaced in priv v1.10 spec by sfence.vma. Reported-by: Richard Henderson Signed-off-by: Bastian Koppelmann --- target/riscv/translate.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/target/riscv/translate.c

[Qemu-devel] [PATCH 1/2] target/riscv: Fix FCLASS_D being treated as RV64 only

2018-11-08 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann --- target/riscv/translate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 18d7b6d147..5359088e24 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -1237,13

Re: [Qemu-devel] [PATCH v4 8/8] docker: use HTTPS git URL for virglrenderer

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:31 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Cc: Philippe Mathieu-Daudé >

Re: [Qemu-devel] [PATCH v4 7/8] target-alpha: use HTTPS git URL for palcode

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:30 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Cc: Richard Henderson >

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Paolo Bonzini
On 08/11/2018 11:14, Thomas Huth wrote: > On 2018-11-08 10:55, Paolo Bonzini wrote: >> On 07/11/2018 20:30, Thomas Huth wrote: >>> On 2018-11-07 20:24, Eduardo Habkost wrote: On Wed, Nov 07, 2018 at 06:39:54PM +0100, Paolo Bonzini wrote: > On 07/11/2018 16:41, Samuel Ortiz wrote: >> -

Re: [Qemu-devel] [PATCH v4 6/8] pc-testdev: use HTTPS git URL

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:29 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Cc: Paolo Bonzini > Suggested-by:

Re: [Qemu-devel] [PATCH v4 5/8] git: use HTTPS git URLs for repo.or.cz

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:28 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Suggested-by: Eric Blake >

Re: [Qemu-devel] [PATCH v4 4/8] gitmodules: use 'https://' instead of 'git://'

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:27 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Also change git.qemu-project.org to

Re: [Qemu-devel] [PATCH v1 2/4] s390x/zpci: use hotplug_dev instead of looking up the host bridge

2018-11-08 Thread David Hildenbrand
On 08.11.18 12:07, Cornelia Huck wrote: > On Wed, 7 Nov 2018 15:28:31 -0500 > Collin Walling wrote: > >> On 11/5/18 6:50 AM, David Hildenbrand wrote: >>> On 05.11.18 12:40, Christian Borntraeger wrote: On 11/05/2018 12:37 PM, David Hildenbrand wrote: > On 05.11.18 12:21,

Re: [Qemu-devel] [PATCH v4 3/8] MAINTAINERS: use 'https://' instead of 'git://' for GitHub

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:26 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn >

Re: [Qemu-devel] [PATCH v4 2/8] get_maintainer: use 'https://' instead of 'git://'

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:25 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn >

Re: [Qemu-devel] [PATCH v4 1/8] README: use 'https://' instead of 'git://'

2018-11-08 Thread Cornelia Huck
On Thu, 8 Nov 2018 11:15:24 + Stefan Hajnoczi wrote: > When you clone the repository without previous commit history, 'git://' > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > since the client verifies the server certificate. > > Reported-by: Jann Horn >

Re: [Qemu-devel] [PATCH v2 2/2] spapr_pci: rename some structured types

2018-11-08 Thread Greg Kurz
On Wed, 7 Nov 2018 15:46:35 +1100 David Gibson wrote: > On Mon, Oct 15, 2018 at 12:49:53PM +1100, Alexey Kardashevskiy wrote: > > > > > > On 12/10/2018 20:05, Greg Kurz wrote: > > > According to CODING_STYLE, structured types names are expected to be > > > in CamelCase but we have: > > > >

Re: [Qemu-devel] [PULL 00/17] Misc patches for QEMU 3.1 hard freeze (?)

2018-11-08 Thread Peter Maydell
On 6 November 2018 at 21:37, Paolo Bonzini wrote: > The following changes since commit fc3d1bad1edf08871275cf469a64e12dae4eba96: > > oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD (2018-11-06 > 10:52:23 +) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension

2018-11-08 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20181106110548.4209-1-luc.mic...@greensocs.com Subject: [Qemu-devel] [PATCH v4 00/16] gdbstub: support for the multiprocess extension === TEST SCRIPT BEGIN === #!/bin/bash

[Qemu-devel] [PATCH v4 5/8] git: use HTTPS git URLs for repo.or.cz

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Suggested-by: Eric Blake Reviewed-by: Eric Blake Signed-off-by: Stefan Hajnoczi --- MAINTAINERS|

[Qemu-devel] [PATCH v4 8/8] docker: use HTTPS git URL for virglrenderer

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Cc: Philippe Mathieu-Daudé Suggested-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé Tested-by:

[Qemu-devel] [PATCH v4 6/8] pc-testdev: use HTTPS git URL

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Cc: Paolo Bonzini Suggested-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe

[Qemu-devel] [PATCH v4 3/8] MAINTAINERS: use 'https://' instead of 'git://' for GitHub

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Reviewed-by: Daniel P. Berrangé Acked-by: Cornelia Huck Signed-off-by: Stefan

[Qemu-devel] [PATCH v4 4/8] gitmodules: use 'https://' instead of 'git://'

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Also change git.qemu-project.org to git.qemu.org (we control both domain names but qemu.org is used more

[Qemu-devel] [PATCH v4 2/8] get_maintainer: use 'https://' instead of 'git://'

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Tested-by:

[Qemu-devel] [PATCH v4 7/8] target-alpha: use HTTPS git URL for palcode

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Cc: Richard Henderson Suggested-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe

[Qemu-devel] [PATCH v4 0/8] Use 'https://' instead of 'git://'

2018-11-08 Thread Stefan Hajnoczi
v4: * Once more, with feeling! Fix 'https//' in get_maintainer.pl [Philippe] v3: * Fix broken openhackware URL [Eric] * Convert a few remaining URLs [Eric] v2: * Use HTTPS for repo.or.cz [Eric] Jeff Cody has enabled git smart HTTP support on qemu.org. From now on HTTPS is the preferred

[Qemu-devel] [PATCH v4 1/8] README: use 'https://' instead of 'git://'

2018-11-08 Thread Stefan Hajnoczi
When you clone the repository without previous commit history, 'git://' doesn't protect from man-in-the-middle attacks. HTTPS is more secure since the client verifies the server certificate. Reported-by: Jann Horn Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Tested-by:

Re: [Qemu-devel] [PATCH 3/3] change int len to uin32_t len

2018-11-08 Thread Peter Maydell
On 8 November 2018 at 10:59, Li Zhijian wrote: > In order to support >= 2G initrd, we need to change len type from int to > uin32_t. > > Below is the flow sample to show how qemu copy initrd from qemu > side to VM when using optionroms bootlinux_dma.bin: > dma_memory_read(uint32_t len) > ->

Re: [Qemu-devel] [PATCH v1 4/4] s390x/zpci: properly fail if the zPCI device cannot be created

2018-11-08 Thread Cornelia Huck
On Mon, 5 Nov 2018 13:46:10 +0100 David Hildenbrand wrote: > On 05.11.18 13:41, Cornelia Huck wrote: > > On Mon, 5 Nov 2018 13:04:04 +0100 > > Thomas Huth wrote: > > > >> On 2018-11-05 12:03, David Hildenbrand wrote: > >>> Right now, errors during realize()/pre_plug/plug of the zPCI device

Re: [Qemu-devel] [PATCH] linux-users/syscall: make do_ioctl_rt safer

2018-11-08 Thread Laurent Vivier
On 08/11/2018 11:59, Alex Bennée wrote: > host_rt_dev_ptr is set while looping through a control structure. The > compiler can not know that all structures passed to do_ioctl_rt will > trigger the if clause so rightly complains with an --enable-sanitizers > build. To keep the compiler happy we

Re: [Qemu-devel] [PATCH v1 2/4] s390x/zpci: use hotplug_dev instead of looking up the host bridge

2018-11-08 Thread Cornelia Huck
On Wed, 7 Nov 2018 15:28:31 -0500 Collin Walling wrote: > On 11/5/18 6:50 AM, David Hildenbrand wrote: > > On 05.11.18 12:40, Christian Borntraeger wrote: > >> > >> > >> On 11/05/2018 12:37 PM, David Hildenbrand wrote: > >>> On 05.11.18 12:21, Cornelia Huck wrote: > On Mon, 5 Nov

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Samuel Ortiz
On Wed, Nov 07, 2018 at 05:24:14PM -0200, Eduardo Habkost wrote: > On Wed, Nov 07, 2018 at 06:39:54PM +0100, Paolo Bonzini wrote: > > On 07/11/2018 16:41, Samuel Ortiz wrote: > > > - The Kconfig parser would be used to generate the equivalent of what we > > > currently have under

Re: [Qemu-devel] [RFC/PoC PATCH 1/3] i386: set initrd_max to 4G - 1 to allow up to 4G initrd

2018-11-08 Thread Peter Maydell
On 8 November 2018 at 10:59, Li Zhijian wrote: > x86/x86_64 has alredy supported 4G initrd. > > linux/arch/x86/boot/header.S: > # (Header version 0x0203 or later) the highest safe address for the contents > # of an initrd. The current kernel allows up to 4 GB, but leave it at 2 GB to > # avoid

Re: [Qemu-devel] [RFC/PoC PATCH 2/3] change size type from int to int64_t on load_image()

2018-11-08 Thread Peter Maydell
On 8 November 2018 at 10:59, Li Zhijian wrote: > allow load_image to load >= 2G file > > CC: Philip Li > Signed-off-by: Li Zhijian > --- > hw/core/loader.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/core/loader.c b/hw/core/loader.c > index aa0b3fc..8fbc4bd

[Qemu-devel] [PATCH] linux-users/syscall: make do_ioctl_rt safer

2018-11-08 Thread Alex Bennée
host_rt_dev_ptr is set while looping through a control structure. The compiler can not know that all structures passed to do_ioctl_rt will trigger the if clause so rightly complains with an --enable-sanitizers build. To keep the compiler happy we default the host_rt_dev_ptr and check it has been

Re: [Qemu-devel] [PATCH v3 2/8] get_maintainer: use 'https://' instead of 'git://'

2018-11-08 Thread Stefan Hajnoczi
On Sun, Nov 04, 2018 at 11:37:21PM +0100, Philippe Mathieu-Daudé wrote: > Hi Stefan, > > On 4/11/18 12:24, Stefan Hajnoczi wrote: > > When you clone the repository without previous commit history, 'git://' > > doesn't protect from man-in-the-middle attacks. HTTPS is more secure > > since the

Re: [Qemu-devel] [qemu-s390x] [PATCH v1 1/4] s390x/zpci: drop msix.available

2018-11-08 Thread Cornelia Huck
On Wed, 7 Nov 2018 11:26:50 -0500 Collin Walling wrote: > On 11/5/18 6:19 AM, Cornelia Huck wrote: > > On Mon, 5 Nov 2018 12:03:10 +0100 > > David Hildenbrand wrote: > > > >> I fail to see why this is useful as we require MSIX always and > >> completely fail adding a device. > >> > >>

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Philippe Mathieu-Daudé
Le jeu. 8 nov. 2018 11:30, Thomas Huth a écrit : > On 2018-11-08 10:55, Paolo Bonzini wrote: > > On 07/11/2018 20:30, Thomas Huth wrote: > >> On 2018-11-07 20:24, Eduardo Habkost wrote: > >>> On Wed, Nov 07, 2018 at 06:39:54PM +0100, Paolo Bonzini wrote: > On 07/11/2018 16:41, Samuel Ortiz

Re: [Qemu-devel] [PATCH v3] tests/microbit-test: Check nRF51 UART functionality

2018-11-08 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 05:54:25PM +, Peter Maydell wrote: > On 5 November 2018 at 10:45, Julia Suvorova wrote: > > Some functional tests for: > > Basic reception/transmittion > > Suspending > > INTEN* registers > > > > Based-on: <20181031002526.14262-1-cont...@steffen-goertz.de>

Re: [Qemu-devel] [PATCH 3/7] qcow2: split out reading normal clusters from qcow2_co_preadv

2018-11-08 Thread Kevin Wolf
Am 08.11.2018 um 11:02 hat Vladimir Sementsov-Ogievskiy geschrieben: > 07.11.2018 21:16, Kevin Wolf wrote: > > (Broken quoting in text/plain again) > > > > Am 01.11.2018 um 13:17 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> 27.09.2018 20:35, Max Reitz wrote: > >> > >> On 07.08.18 19:43,

[Qemu-devel] [PATCH RESEND v15 06/10] docs: APEI GHES generation and CPER record description

2018-11-08 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng --- Address Igor's comments to add a doc --- docs/specs/acpi_hest_ghes.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 docs/specs/acpi_hest_ghes.txt diff --git

Re: [Qemu-devel] [PATCH v3] tests/microbit-test: Check nRF51 UART functionality

2018-11-08 Thread Stefan Hajnoczi
On Mon, Nov 05, 2018 at 01:45:24PM +0300, Julia Suvorova wrote: > +writel(NRF51_UART_BASE + A_UART_SUSPEND, 0x01); > +writel(NRF51_UART_BASE + A_UART_TXD, 'h'); > +writel(NRF51_UART_BASE + A_UART_STARTTX, 0x01); > +w_to_txd("world"); > +g_assert(read(sock_fd, s, 10) == 5); > +

[Qemu-devel] [RFC/PoC PATCH 0/3] support initrd size up to 4G

2018-11-08 Thread Li Zhijian
Long long ago, linux kernel have supported up to 4G initrd, but it's header still hard code to allow 2G - 1 only. # (Header version 0x0203 or later) the highest safe address for the contents # of an initrd. The current kernel allows up to 4 GB, but leave it at 2 GB to # avoid possible

[Qemu-devel] [PATCH RESEND v15 10/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2018-11-08 Thread Dongjiu Geng
Add SIGBUS signal handler. In this handler, it checks the SIGBUS type, translates the host VA delivered by host to guest PA, then fill this PA to guest APEI GHES memory, then notify guest according to the SIGBUS type. There are two kinds of SIGBUS that QEMU needs to handle, which are BUS_MCEERR_AO

[Qemu-devel] [PATCH RESEND v15 00/10] Add ARMv8 RAS virtualization support in QEMU

2018-11-08 Thread Dongjiu Geng
In the ARMv8 platform, the CPU error type are synchronous external abort(SEA) and SError Interrupt (SEI). If exception happens to guest, sometimes guest itself do the recovery is better, because host does not know guest's detailed information. For example, if a guest user-space application

[Qemu-devel] [RFC/PoC PATCH 1/3] i386: set initrd_max to 4G - 1 to allow up to 4G initrd

2018-11-08 Thread Li Zhijian
x86/x86_64 has alredy supported 4G initrd. linux/arch/x86/boot/header.S: # (Header version 0x0203 or later) the highest safe address for the contents # of an initrd. The current kernel allows up to 4 GB, but leave it at 2 GB to # avoid possible bootloader bugs. CC: Philip Li Signed-off-by:

[Qemu-devel] [PATCH RESEND v15 07/10] KVM: Move related hwpoison page functions to accel/kvm/ folder

2018-11-08 Thread Dongjiu Geng
kvm_hwpoison_page_add() and kvm_unpoison_all() will be used both by X86 and ARM platforms, so move these functions to a common accel/kvm/ folder to avoid duplicate code. Signed-off-by: Dongjiu Geng --- Address Peter's comments to move related hwpoison page function to accel/kvm folder in [1]

[Qemu-devel] [PATCH RESEND v15 01/10] ACPI: add some GHES structures and macros definition

2018-11-08 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definitions, which is referred to the ACPI 4.0 or ACPI 6.2. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng --- Change since v14: Thanks Igor's review and comments 1. Update spec comment for

[Qemu-devel] [RFC/PoC PATCH 2/3] change size type from int to int64_t on load_image()

2018-11-08 Thread Li Zhijian
allow load_image to load >= 2G file CC: Philip Li Signed-off-by: Li Zhijian --- hw/core/loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index aa0b3fc..8fbc4bd 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -77,7 +77,8

[Qemu-devel] [PATCH RESEND v15 09/10] hw/arm/virt: Add RAS platform version for migration

2018-11-08 Thread Dongjiu Geng
Support this feature since version 2.12, disable it by default in the old version. Signed-off-by: Dongjiu Geng --- Address Shannon's comments to add platform version in [1]. [1]: https://lkml.org/lkml/2017/8/25/821 --- hw/arm/virt-acpi-build.c | 14 +- hw/arm/virt.c| 4

[Qemu-devel] [PATCH RESEND v15 08/10] target-arm: kvm64: inject synchronous External Abort

2018-11-08 Thread Dongjiu Geng
Add synchronous external abort injection logic, setup exception type and syndrome value. When switch to guest, guest will jump to the synchronous external abort vector table entry. The ESR_ELx.DFSC is set to synchronous external abort(0x10), and ESR_ELx.FnV is set to not valid(0x1), which will

[Qemu-devel] [PATCH RESEND v15 05/10] ACPI: Add APEI GHES table generation and CPER record support

2018-11-08 Thread Dongjiu Geng
This implements APEI GHES Table generation and record CPER in runtime via fw_cfg blobs.Now we only support two types of GHESv2, which are GPIO-Signal and ARMv8 SEA. Afterwards, we can extend the supported types if needed. For the CPER section type, currently it is memory section because kernel

Re: [Qemu-devel] [PATCH v2 3/6] target/mips: Fix HI[ac] and LO[ac] 32-bit truncation with MIPS64 DSP ASE

2018-11-08 Thread Aleksandar Markovic
> From: Fredrik Noring > Sent: Wednesday, November 7, 2018 8:18 PM > To: Aleksandar Markovic; Aurelien Jarno; Philippe Mathieu-Daudé; Richard > Henderson > Cc: Jürgen Urban; Maciej W. Rozycki; Jia Liu; qemu-devel@nongnu.org > Subject: [PATCH v2 3/6] target/mips: Fix HI[ac] and LO[ac] 32-bit

[Qemu-devel] [PATCH RESEND v15 04/10] acpi: add build_append_ghes_generic_status() helper for Generic Error Status Block

2018-11-08 Thread Dongjiu Geng
It will help to add Generic Error Status Block to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 6 ++ 2 files

[Qemu-devel] [PATCH RESEND v15 03/10] acpi: add build_append_ghes_generic_data() helper for Generic Error Data Entry

2018-11-08 Thread Dongjiu Geng
It will help to add Generic Error Data Entry to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 32 include/hw/acpi/aml-build.h | 6

[Qemu-devel] [PATCH RESEND v15 02/10] acpi: add build_append_ghes_notify() helper for Hardware Error Notification

2018-11-08 Thread Dongjiu Geng
It will help to add Hardware Error Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 22 ++ include/hw/acpi/aml-build.h | 8

[Qemu-devel] [PATCH v15 04/10] acpi: add build_append_ghes_generic_status() helper for Generic Error Status Block

2018-11-08 Thread Dongjiu Geng
It will help to add Generic Error Status Block to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 6 ++ 2 files

Re: [Qemu-devel] [PULL 02/33] tests: Move tests/hex-loader-check-data/ to tests/data/hex-loader/

2018-11-08 Thread Stefan Hajnoczi
On Tue, Nov 06, 2018 at 05:16:14PM +0100, Laurent Vivier wrote: > On 06/11/2018 16:15, Philippe Mathieu-Daudé wrote: > > On 6/11/18 15:13, Michael S. Tsirkin wrote: > >> On Tue, Nov 06, 2018 at 02:27:18PM +0100, Philippe Mathieu-Daudé wrote: > >>> On 5/11/18 19:14, Michael S. Tsirkin wrote: >

Re: [Qemu-devel] [PATCH v2 4/6] target/mips: Fix decoding mechanism of special R5900 opcodes

2018-11-08 Thread Aleksandar Markovic
> > From: Fredrik Noring > Subject: [PATCH v2 4/6] target/mips: Fix decoding mechanism of special R5900 > opcodes > > MOVN, MOVZ, MFHI, MFLO, MTHI, MTLO, MULT, MULTU, DIV, DIVU, DMULT, > DMULTU, DDIV, DDIVU and JR are decoded in decode_opc_special_tx79 > instead of the generic

[Qemu-devel] [PATCH v15 02/10] acpi: add build_append_ghes_notify() helper for Hardware Error Notification

2018-11-08 Thread Dongjiu Geng
It will help to add Hardware Error Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 22 ++ include/hw/acpi/aml-build.h | 8

[Qemu-devel] [PATCH v15 08/10] target-arm: kvm64: inject synchronous External Abort

2018-11-08 Thread Dongjiu Geng
Add synchronous external abort injection logic, setup exception type and syndrome value. When switch to guest, guest will jump to the synchronous external abort vector table entry. The ESR_ELx.DFSC is set to synchronous external abort(0x10), and ESR_ELx.FnV is set to not valid(0x1), which will

Re: [Qemu-devel] [PATCH v4 00/13] arm: nRF51 Devices and Microbit Support

2018-11-08 Thread Peter Maydell
On 8 November 2018 at 10:20, Joel Stanley wrote: > On Thu, 8 Nov 2018 at 20:12, Peter Maydell wrote: >> >> On 8 November 2018 at 09:32, Stefan Hajnoczi wrote: >> > On Fri, Nov 02, 2018 at 01:07:17PM -0400, Steffen Görtz wrote: >> > >> > Thank you, Steffen! I have posted my Reviewed-by on all

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Thomas Huth
On 2018-11-08 10:55, Paolo Bonzini wrote: > On 07/11/2018 20:30, Thomas Huth wrote: >> On 2018-11-07 20:24, Eduardo Habkost wrote: >>> On Wed, Nov 07, 2018 at 06:39:54PM +0100, Paolo Bonzini wrote: On 07/11/2018 16:41, Samuel Ortiz wrote: > - The Kconfig parser would be used to generate

[Qemu-devel] [PATCH v15 06/10] docs: APEI GHES generation and CPER record description

2018-11-08 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Address Igor's comments to add a doc --- docs/specs/acpi_hest_ghes.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 docs/specs/acpi_hest_ghes.txt diff --git

[Qemu-devel] [PATCH v15 00/10] Add ARMv8 RAS virtualization support in QEMU

2018-11-08 Thread Dongjiu Geng
In the ARMv8 platform, the CPU error type are synchronous external abort(SEA) and SError Interrupt (SEI). If exception happens to guest, sometimes guest itself do the recovery is better, because host does not know guest's detailed information. For example, if a guest user-space application

[Qemu-devel] [PATCH 3/3] change int len to uin32_t len

2018-11-08 Thread Li Zhijian
In order to support >= 2G initrd, we need to change len type from int to uin32_t. Below is the flow sample to show how qemu copy initrd from qemu side to VM when using optionroms bootlinux_dma.bin: dma_memory_read(uint32_t len) -> dma_memory_rw(uint32_t len) ->

[Qemu-devel] [PATCH v15 10/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2018-11-08 Thread Dongjiu Geng
Add SIGBUS signal handler. In this handler, it checks the SIGBUS type, translates the host VA delivered by host to guest PA, then fill this PA to guest APEI GHES memory, then notify guest according to the SIGBUS type. There are two kinds of SIGBUS that QEMU needs to handle, which are BUS_MCEERR_AO

[Qemu-devel] [PATCH v15 01/10] ACPI: add some GHES structures and macros definition

2018-11-08 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definitions, which is referred to the ACPI 4.0 or ACPI 6.2. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng Change since v14: Thanks Igor's review and comments 1. Update spec comment for

[Qemu-devel] [PATCH v15 07/10] KVM: Move related hwpoison page functions to accel/kvm/ folder

2018-11-08 Thread Dongjiu Geng
kvm_hwpoison_page_add() and kvm_unpoison_all() will be used both by X86 and ARM platforms, so move these functions to a common accel/kvm/ folder to avoid duplicate code. Signed-off-by: Dongjiu Geng Address Peter's comments to move related hwpoison page function to accel/kvm folder in [1]

[Qemu-devel] [PATCH v15 03/10] acpi: add build_append_ghes_generic_data() helper for Generic Error Data Entry

2018-11-08 Thread Dongjiu Geng
It will help to add Generic Error Data Entry to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng --- hw/acpi/aml-build.c | 32 include/hw/acpi/aml-build.h | 6

[Qemu-devel] [PATCH v15 09/10] hw/arm/virt: Add RAS platform version for migration

2018-11-08 Thread Dongjiu Geng
Support this feature since version 2.12, disable it by default in the old version. Signed-off-by: Dongjiu Geng Address Shannon's comments to add platform version in [1]. [1]: https://lkml.org/lkml/2017/8/25/821 --- hw/arm/virt-acpi-build.c | 14 +- hw/arm/virt.c| 4

[Qemu-devel] [PATCH v15 05/10] ACPI: Add APEI GHES table generation and CPER record support

2018-11-08 Thread Dongjiu Geng
This implements APEI GHES Table generation and record CPER in runtime via fw_cfg blobs.Now we only support two types of GHESv2, which are GPIO-Signal and ARMv8 SEA. Afterwards, we can extend the supported types if needed. For the CPER section type, currently it is memory section because kernel

Re: [Qemu-devel] [PATCH v4 00/13] arm: nRF51 Devices and Microbit Support

2018-11-08 Thread Joel Stanley
On Thu, 8 Nov 2018 at 20:12, Peter Maydell wrote: > > On 8 November 2018 at 09:32, Stefan Hajnoczi wrote: > > On Fri, Nov 02, 2018 at 01:07:17PM -0400, Steffen Görtz wrote: > > > > Thank you, Steffen! I have posted my Reviewed-by on all patches. > > > > Joel: Will you send pull requests for the

Re: [Qemu-devel] [RFC PATCH spice v3 1/3] QXL interface: add a function to identify monitors in the guest

2018-11-08 Thread Lukáš Hrázký
Hello, On Thu, 2018-11-08 at 07:49 +0100, Gerd Hoffmann wrote: > Hi, > > > + * The device_display_id_{start,count} denotes the sequence of device > > display > > + * IDs that map to the zero-based sequence of monitor IDs provided by > > monitors > > + * config on this interface. For example

Re: [Qemu-devel] [PATCH 3/7] qcow2: split out reading normal clusters from qcow2_co_preadv

2018-11-08 Thread Vladimir Sementsov-Ogievskiy
07.11.2018 21:16, Kevin Wolf wrote: > (Broken quoting in text/plain again) > > Am 01.11.2018 um 13:17 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 27.09.2018 20:35, Max Reitz wrote: >> >> On 07.08.18 19:43, Vladimir Sementsov-Ogievskiy wrote: >> >> Memory allocation may become

Re: [Qemu-devel] [QEMU PATCH v2 0/2]: KVM: i386: Add support for save and restore nested state

2018-11-08 Thread Liran Alon
> On 8 Nov 2018, at 11:50, Paolo Bonzini wrote: > > On 08/11/2018 01:45, Jim Mattson wrote: >> I have no attachments to the current design. I had used a data[] blob, >> because I didn't think userspace would have any need to know what was >> in there. However, I am now seeing the error of my

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Paolo Bonzini
On 08/11/2018 09:46, Philippe Mathieu-Daudé wrote: > > Almost; if there's a conflict between the decision from "depends on" and > "select" says, it's an error.  (Likewise if there's a conflict between > default-configs/ on one side, and "depends on"/"select" on the other). > >

Re: [Qemu-devel] QEMU and Kconfig

2018-11-08 Thread Paolo Bonzini
On 07/11/2018 20:30, Thomas Huth wrote: > On 2018-11-07 20:24, Eduardo Habkost wrote: >> On Wed, Nov 07, 2018 at 06:39:54PM +0100, Paolo Bonzini wrote: >>> On 07/11/2018 16:41, Samuel Ortiz wrote: - The Kconfig parser would be used to generate the equivalent of what we currently have

Re: [Qemu-devel] [QEMU PATCH v2 0/2]: KVM: i386: Add support for save and restore nested state

2018-11-08 Thread Paolo Bonzini
On 08/11/2018 01:45, Jim Mattson wrote: > I have no attachments to the current design. I had used a data[] blob, > because I didn't think userspace would have any need to know what was > in there. However, I am now seeing the error of my ways. For example, > the userspace instruction emulator

Re: [Qemu-devel] [PATCH v4 00/13] arm: nRF51 Devices and Microbit Support

2018-11-08 Thread Peter Maydell
On 8 November 2018 at 09:32, Stefan Hajnoczi wrote: > On Fri, Nov 02, 2018 at 01:07:17PM -0400, Steffen Görtz wrote: > > Thank you, Steffen! I have posted my Reviewed-by on all patches. > > Joel: Will you send pull requests for the microbit machine types or do > you want Peter to merge this? I

Re: [Qemu-devel] [PATCH V4 3/5] hw/misc/pvpanic: Add the MMIO interface

2018-11-08 Thread Peter Maydell
On 25 October 2018 at 12:38, Philippe Mathieu-Daudé wrote: > Depending of the response to Peter's question [*]: > > I'd also like some confirmation from folks more familiar with the > current state of the art in guest-to-management-layer communication > that pvpanic is still the

Re: [Qemu-devel] [PULL 03/48] qemu-timer: introduce timer attributes

2018-11-08 Thread Peter Maydell
On 7 November 2018 at 20:21, Eric Blake wrote: > On 11/6/18 3:45 AM, Paolo Bonzini wrote: >> >> On 06/11/2018 00:16, Eric Blake wrote: >>> >>> On 10/18/18 3:31 PM, Paolo Bonzini wrote: From: Artem Pisarenko Attributes are simple flags, associated with individual timers for

Re: [Qemu-devel] [PATCH v4 00/13] arm: nRF51 Devices and Microbit Support

2018-11-08 Thread Stefan Hajnoczi
On Fri, Nov 02, 2018 at 01:07:17PM -0400, Steffen Görtz wrote: Thank you, Steffen! I have posted my Reviewed-by on all patches. Joel: Will you send pull requests for the microbit machine types or do you want Peter to merge this? > This series contains additional peripheral devices for the

Re: [Qemu-devel] [PATCH v4 11/13] hw/timer/nrf51_timer: Add nRF51 Timer peripheral

2018-11-08 Thread Stefan Hajnoczi
On Fri, Nov 02, 2018 at 01:07:28PM -0400, Steffen Görtz wrote: > This patch adds the model for the nRF51 timer peripheral. > Currently, only the TIMER mode is implemented. > > Signed-off-by: Steffen Görtz > --- > hw/timer/Makefile.objs | 1 + > hw/timer/nrf51_timer.c | 368

Re: [Qemu-devel] [PATCH v4 05/13] hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories

2018-11-08 Thread Stefan Hajnoczi
On Fri, Nov 02, 2018 at 01:07:22PM -0400, Steffen Görtz wrote: > The nRF51 contains three regions of non-volatile memory (NVM): > - CODE (R/W): contains code > - FICR (R): Factory information like code size, chip id etc. > - UICR (R/W): Changeable configuration data. Lock bits, Code > protection

Re: [Qemu-devel] [PATCH v5 0/3] file-posix: Simplifications on image locking

2018-11-08 Thread Kevin Wolf
Am 11.10.2018 um 09:21 hat Fam Zheng geschrieben: > v5: Address Max's comments (Thanks for reviewing): > - Clean up after test done. > - Add rev-by to patch 1 and 2. > > v4: Fix test on systems without OFD. [Patchew] > > The first patch reduces chances of QEMU crash in unusual (but not

Re: [Qemu-devel] [PATCH for-3.1] target/arm: Remove antique TODO comment

2018-11-08 Thread Richard Henderson
On 11/6/18 5:41 PM, Peter Maydell wrote: > Remove a TODO comment about implementing the vectored interrupt > controller. We have had an implementation of that for a decade; > it's in hw/intc/pl190.c. > > Signed-off-by: Peter Maydell > --- > target/arm/helper.c | 1 - > 1 file changed, 1

Re: [Qemu-devel] [PATCH for-3.1] target/arm: Remove workaround for small SAU regions

2018-11-08 Thread Richard Henderson
On 11/6/18 5:38 PM, Peter Maydell wrote: > Before we supported direct execution from MMIO regions, we > implemented workarounds in commit 720424359917887c926a33d2 > which let us avoid doing so, even if the SAU or MPU region > was less than page-sized. > > Once we implemented execute-from-MMIO, we

Re: [Qemu-devel] [PULL 3/3] target/mips: Add disassembler support for nanoMIPS

2018-11-08 Thread Aleksandar Markovic
Hello, Stefan. I appreciate your note and guidance. > > On 25.10.18 22:19, Aleksandar Markovic wrote: > > From: Aleksandar Markovic > > > > Add disassembler support for nanoMIPS. > > > > Reviewed-by: Stefan Markovic > > Signed-off-by: Matthew Fortune > > Signed-off-by: Aleksandar Markovic

Re: [Qemu-devel] [PATCH V5 0/5] add pvpanic mmio support

2018-11-08 Thread Andrew Jones
On Sun, Oct 28, 2018 at 02:07:25AM +0800, Peng Hao wrote: > The first patches are simple cleanups: > - patch 1 move the pvpanic device with the 'ocmmon objects' so we compile > it once for the x86/arm/aarch64 archs, > - patch 2 simply renames ISA fields/definitions to generic ones. > > Then

Re: [Qemu-devel] [PATCH v3 1/7] qapi: use qemu_strtoi64() in parse_str

2018-11-08 Thread Markus Armbruster
David Hildenbrand writes: >>> Would it be valid to do something like this (skipping elements without a >>> proper visit_type_int) >>> >>> visit_start_list(); >>> visit_next_list(); more input, returns "there's more" >>> visit_next_list(); parses "1-3,", buffers 2-3, skips over 1 >>>

Re: [Qemu-devel] [Qemu-block] [PATCH] tests: Fix Python 3 detection on older GNU make versions

2018-11-08 Thread Philippe Mathieu-Daudé
Hi Markus, Le jeu. 8 nov. 2018 09:46, Markus Armbruster a écrit : > Cleber Rosa writes: > > > On 11/7/18 1:05 AM, Markus Armbruster wrote: > >> Eduardo Habkost writes: > >> > >>> The $(SHELLSTATUS) variable requires GNU make >= 4.2, but Travis > >>> seems to provide an older version. Change

Re: [Qemu-devel] [PATCH V5 4/5] hw/arm/virt: Use the pvpanic device

2018-11-08 Thread Andrew Jones
On Sun, Oct 28, 2018 at 02:07:29AM +0800, Peng Hao wrote: > add pvpanic device in aarch64 virt machine. Why only aarch64 and not also arm? Thanks, drew

<    1   2   3   4   >