[Qemu-devel] [PATCH v6 2/3] ACPI: Add APEI GHES Table Generation support

2017-08-03 Thread Dongjiu Geng
---+-+ | | read_ack_preserve| | | read_ack_write | + +--+ For GHESv2 error source, the OSPM must acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong.

[Qemu-devel] [PATCH v6 1/3] ACPI: add APEI/HEST/CPER structures and macros

2017-08-03 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v6 0/3] Generate APEI GHES table and dynamically record CPER

2017-08-03 Thread Dongjiu Geng
SPM acknowledges the error */ (qemu) xp /1 0x785d00f0 785d00f0: 0x0001 Dongjiu Geng (3): ACPI: add APEI/HEST/CPER structures and macros ACPI: Add APEI GHES Table Generation support ACPI: build and enable APEI GHES in the Makefile and configuration default-configs/

[Qemu-devel] [PATCH v6 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-03 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v5: (1) no change change since v4: (1) fix email threading in this

[Qemu-devel] [PATCH v7 2/3] ACPI: Add APEI GHES Table Generation support

2017-08-03 Thread Dongjiu Geng
the OSPM must acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v6: (1) update the commit message

[Qemu-devel] [PATCH v8 1/3] ACPI: add APEI/HEST/CPER structures and macros

2017-08-03 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v8 0/3] Generate APEI GHES table and dynamically record CPER

2017-08-03 Thread Dongjiu Geng
xp /1 0x785D0098 785d0098: 0x785d00f0 /* Before OSPM acknowledges the error */ (qemu) xp /1 0x785d00f0 785d00f0: 0x /* After OSPM acknowledges the error */ (qemu) xp /1 0x785d00f0 785d00f0: 0x0001 Dongjiu Geng (3): ACPI: add AP

[Qemu-devel] [PATCH v7 0/3] Generate APEI GHES table and dynamically record CPER

2017-08-03 Thread Dongjiu Geng
xp /1 0x785D0098 785d0098: 0x785d00f0 /* Before OSPM acknowledges the error */ (qemu) xp /1 0x785d00f0 785d00f0: 0x /* After OSPM acknowledges the error */ (qemu) xp /1 0x785d00f0 785d00f0: 0x0001 Dongjiu Geng (3): ACPI: add AP

[Qemu-devel] [PATCH v7 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-03 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v5: (1) no change change since v4: (1) fix email threading in this

[Qemu-devel] [PATCH v7 1/3] ACPI: add APEI/HEST/CPER structures and macros

2017-08-03 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v8 2/3] ACPI: Add APEI GHES Table Generation support

2017-08-03 Thread Dongjiu Geng
the OSPM must acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v6: (1) update the commit message

[Qemu-devel] [PATCH v8 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-03 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v5: (1) no change change since v4: (1) fix email threading in this

[Qemu-devel] [PATCH v10 1/3] ACPI: add APEI/HEST/CPER structures and macros

2017-08-04 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v10 2/3] ACPI: Add APEI GHES Table Generation support

2017-08-04 Thread Dongjiu Geng
acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v8: (1) remove the ACK value address chang

[Qemu-devel] [PATCH v10 0/3] Generate APEI GHES table and dynamically record CPER

2017-08-04 Thread Dongjiu Geng
e(for example SEA) /* Before OSPM acknowledges the error, check the ACK value */ (qemu) xp /1 0x785D0098 785d00f0: 0x /* After OSPM acknowledges the error, check the ACK value */ (qemu) xp /1 0x785D0098 0000785d00f0: 0x0001 Dongjiu

[Qemu-devel] [PATCH v10 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-04 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v5: (1) no change change since v4: (1) fix email threading in this

[Qemu-devel] [PATCH v9 1/3] ACPI: add APEI/HEST/CPER structures and macros

2017-08-04 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v9 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-04 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v5: (1) no change change since v4: (1) fix email threading in this

[Qemu-devel] [PATCH v9 0/3] Generate APEI GHES table and dynamically record CPER

2017-08-04 Thread Dongjiu Geng
ACK value(for example SEA) /* Before OSPM acknowledges the error, check the ACK value */ (qemu) xp /1 0x785D0098 785d00f0: 0x /* After OSPM acknowledges the error, check the ACK value */ (qemu) xp /1 0x0000785D0098 785d00f0: 0x0001

[Qemu-devel] [PATCH v9 2/3] ACPI: Add APEI GHES Table Generation support

2017-08-04 Thread Dongjiu Geng
must acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Michael and Laszlo's review and comments: change since v8: (1) remove the ACK value address chang

[Qemu-devel] [PATCH v4 1/3] ACPI: Add new ACPI structures and macros

2017-07-10 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v4 0/3] Generate APEI GHES table and dynamically record CPER

2017-07-10 Thread Dongjiu Geng
0x 0x 0x *** BLURB HERE *** Dongjiu Geng (3): ACPI: Add new ACPI structures and macros ACPI: Add APEI GHES Table Generation support 1 ACPI: build and enable APEI GHES in the Makefile and configuration default-configs/arm-softmmu.mak | 1 + hw/acpi/Mak

[Qemu-devel] [PATCH v4 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-07-10 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change since v3: (1) change name to "CONFIG_ACPI_APEI" from CONFIG_ACPI_APEI_GENERATI

[Qemu-devel] [PATCH v4 2/3] ACPI: Add APEI GHES Table Generation support

2017-07-10 Thread Dongjiu Geng
| | CPER | | | CPER | | | CPER | +-+--------+ Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change si

[Qemu-devel] [PATCH resend v4 1/3] ACPI: Add new ACPI structures and macros

2017-07-11 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH resend v4 0/3] Generate APEI GHES table and dynamically record CPER

2017-07-11 Thread Dongjiu Geng
0x 0x 0x 0x 785d8128: 0x 0x 0x 0x 785d8138: 0x 0x 0x 0x0000 Dongjiu Geng (3): ACPI: Add new ACPI structures and macros ACPI: Add APEI GHES Table Generation support ACPI: build

[Qemu-devel] [PATCH resend v4 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-07-11 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change since v3: (1) change name to "CONFIG_ACPI_APEI" from CONFIG_ACPI_APEI_GENERATI

[Qemu-devel] [PATCH resend v4 2/3] ACPI: Add APEI GHES Table Generation support

2017-07-11 Thread Dongjiu Geng
| | CPER | | | CPER | | | CPER | +-+--------+ Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change si

[Qemu-devel] [PATCH v5 1/3] ACPI: Add new ACPI structures and macros

2017-07-11 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v5 3/3] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-07-11 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change since v4: (1) fix email threading in this series is incorrect issue change since v3: (1)

[Qemu-devel] [PATCH v5 2/3] ACPI: Add APEI GHES Table Generation support

2017-07-11 Thread Dongjiu Geng
| | CPER | | | CPER | | | CPER | +-+--------+ Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- thanks a lot Laszlo's review and comments: change

[Qemu-devel] [PATCH v5 0/3] Generate APEI GHES table and dynamically record CPER

2017-07-11 Thread Dongjiu Geng
0x 0x 0x 0x 785d8118: 0x 0x 0x 0x 785d8128: 0x 0x 0x 0x 785d8138: 0x 0x 0x 0x0000 Dongjiu Geng (3): ACPI: Add new ACPI structures

[Qemu-devel] [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-08-18 Thread Dongjiu Geng
, PSTATE, far_elx, elr_elx etc, when switch to guest OS, it will jump to the synchronous external abort vector table entry. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- include/sysemu/kvm.h | 2 +- linux-headers/asm

[Qemu-devel] [PATCH v11 3/6] ACPI: build and enable APEI GHES in the Makefile and configuration

2017-08-18 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the Makefile and enable it in the arm-softmmu.mak Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + 2 files changed, 2 insertions(+) diff --git a/default-confi

[Qemu-devel] [PATCH v11 1/6] ACPI: add APEI/HEST/CPER structures and macros

2017-08-18 Thread Dongjiu Geng
(1) Add related APEI/HEST table structures and macros, these definition refer to ACPI 6.1 and UEFI 2.6 spec. (2) Add generic error status block and CPER memory section definition, user space only handle memory section errors. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v11 0/6] Add RAS virtualization support for armv8 SEA and SEI

2017-08-18 Thread Dongjiu Geng
ledges the error, check the ACK value */ (qemu) xp /1 0x785D0098 785d00f0: 0x /* After OSPM acknowledges the error, check the ACK value */ (qemu) xp /1 0x785D0098 0000785d00f0: 0x0001 Dongjiu Geng (6): ACPI: add APEI/HEST/CPER structures a

[Qemu-devel] [PATCH v11 2/6] ACPI: Add APEI GHES Table Generation support

2017-08-18 Thread Dongjiu Geng
must acknowledges the error via Read Ack register. so user space must check the ack value to avoid read-write race condition. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- hw/acpi/aml-build.c | 2 + hw/acpi/hest_ghes.c | 345 +

[Qemu-devel] [PATCH v11 4/6] target-arm: kvm64: detect guest RAS EXTENSION feature

2017-08-18 Thread Dongjiu Geng
check if kvm supports guest RAS EXTENSION. if so, set corresponding feature bit for vcpu. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- linux-headers/linux/kvm.h | 1 + target/arm/cpu.h | 3 +++ target/arm/kvm64.c| 8 3 files changed, 12 insertions(+)

[Qemu-devel] [PATCH v11 6/6] target-arm: kvm64: Handle SError interrupt for the guest OS

2017-08-18 Thread Dongjiu Geng
the host VA to guest OS PA and record this error PA to HEST table. 2. set specified virtual SError syndrome and pass the value to KVM. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- linux-headers/linux/kvm.h | 1 + target/arm

[Qemu-devel] [PATCH v3 1/4] ACPI: Add APEI GHES Table Generation support

2017-04-29 Thread Dongjiu Geng
| | CPER | | | CPER | +-+--------+ Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + hw/acpi/aml-bui

[Qemu-devel] [PATCH v3 2/4] target-arm: kvm64: detect guest RAS EXTENSION feature

2017-04-29 Thread Dongjiu Geng
check if kvm supports guest RAS EXTENSION. if so, set corresponding feature bit for vcpu. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 1 + target/arm/cpu.h | 3 +++ target/arm/kvm64.c

[Qemu-devel] [PATCH v3 1/3] arm64: kvm: support kvmtool to detect RAS extension feature

2017-04-29 Thread Dongjiu Geng
Handle kvmtool's detection for RAS extension, because sometimes the APP needs to know the CPU's capacity Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- arch/arm64/kvm/reset.c | 11 +++ include/uapi/linux/kvm.h | 1 + 2 files changed, 12 insertions(+) diff --git a/arch

[Qemu-devel] [PATCH v3 2/3] arm64: kvm: inject SError with virtual syndrome

2017-04-29 Thread Dongjiu Geng
when SError happen, kvm notifies kvmtool to generate GHES table to record the error, then kvmtools inject the SError with specified virtual syndrome. when switch to guest, a virtual SError will happen with this specified syndrome. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> ---

[Qemu-devel] [PATCH v3 3/3] arm/arm64: signal SIBGUS and inject SEA Error

2017-04-29 Thread Dongjiu Geng
when happen SEA, deliver signal bus and handle the ioctl that inject SEA abort to guest, so that guest can handle the SEA error. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- arch/arm/include/asm/kvm_host.h | 1 + arch/arm/kvm/arm.c| 3 +++ arch/arm/kvm/g

[Qemu-devel] [PATCH v3 4/4] target-arm: kvm64: handle SError interrupt for RAS extension

2017-04-29 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- linux-headers/linux/kvm.h | 5 + target/arm/cpu.h | 5 + target/arm/helper.c | 20 target/arm/internals.h| 1 + target/arm/kvm.c | 3 +++ target/arm/kvm64.c

[Qemu-devel] [PATCH v3 3/4] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-04-29 Thread Dongjiu Geng
below two types: 1. Error on memory access, such as hwpoison. the SIGBUS si_code is BUS_MCEERR_AR or BUS_MCEERR_OR 2. Error on translation table walk or hardware update of translation table. The SIGBUS si_code is 0 Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- include/sysemu

[Qemu-devel] [PATCH v12 09/12] Move related hwpoison page function to accel/kvm/ folder

2017-11-10 Thread Dongjiu Geng
kvm_hwpoison_page_add() and kvm_unpoison_all() will be used by both X86 and ARM platforms, so move them to a common accel/kvm/ folder to avoid duplicate code. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Moving related hwpoison page function to accel/kvm folder is suggeste

[Qemu-devel] [PATCH v12 03/12] docs: APEI GHES generation description

2017-11-10 Thread Dongjiu Geng
Add APEI/GHES description document Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- docs/specs/acpi_hest_ghes.txt | 98 +++ 1 file changed, 98 insertions(+) create mode 100644 docs/specs/acpi_hest_ghes.txt diff --git a/docs

[Qemu-devel] [PATCH v12 04/12] ACPI: enable APEI GHES in the configure file and build it

2017-11-10 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the arm-softmmu.mak and add build choice in the Makefile.objs. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + 2 files changed, 2 insertions(+) diff --git a/d

[Qemu-devel] [PATCH v12 00/12] Add RAS virtualization support in QEMU

2017-11-10 Thread Dongjiu Geng
12: 0137 x11: x10: x9 : x8 : 00de x7 : x6 : 2000 x5 : 4060 x4 : 0003 x3 : 0001 x2 : 000f123b x1 : 0008 x0 : 00000047a048 Dongjiu Geng (12):

[Qemu-devel] [PATCH v12 02/12] ACPI: Add APEI GHES table generation and CPER record support

2017-11-10 Thread Dongjiu Geng
the memory section errors. For GHESv2 error source, the OSPM must acknowledges the error via Read Ack register. So user space must check the ack value before recording a new CPER to avoid read-write race condition. Suggested-by: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Dongji

[Qemu-devel] [PATCH v12 07/12] target-arm: handle SError interrupt exception from the guest OS

2017-11-10 Thread Dongjiu Geng
receive this exception exit, check whether KVM support to set ESR(exception syndrome registers) value. If support, it sets the ESR value using a new IOCTL. This handling is only supported in AArch64 platform, not supported in AArch32 platform. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v12 06/12] target-arm: kvm64: detect whether can set vsesr_el2

2017-11-10 Thread Dongjiu Geng
Check if kvm can support to set vsesr_el2 value for vcpu. When guest takes a virtual SError interrupt exception, this value will provides syndrome value reported into ESR_EL1 ISS filed. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@h

[Qemu-devel] [PATCH v12 01/12] ACPI: add related GHES structures and macros definition

2017-11-10 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definition, which refer to the ACPI 4.0 and ACPI 6.1. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- It has been suggested to get rid of most structures that intr

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

2017-11-10 Thread Dongjiu Geng
will tell guest that FAR is not valid and holds an UNKNOWN value. These value will be set to KVM related structure through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- People is against that KVM inject

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

2017-11-10 Thread Dongjiu Geng
record this error into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse <james.mo...@arm.com> Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- QEMU handing the S

[Qemu-devel] [PATCH v12 10/12] ARM: ACPI: Add _E04 for hardware error device

2017-11-10 Thread Dongjiu Geng
ACPI driver will receive this notification and handing the error. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 1. Using which notification type for SIGBUS_MCEERR_AO SIGBUS(Polled, GPIO-Signal or ARMv8 SEI), ever discussed here: https://lists.gnu.org/archive/html/qemu-devel/2

[Qemu-devel] [PATCH v12 05/12] linux-headers: sync against Linux v4.14-rc8

2017-11-10 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Suggested by here: https://lkml.org/lkml/2017/9/5/575 --- include/standard-headers/asm-s390/kvm_virtio.h | 1 + include/standard-headers/asm-s390/virtio-ccw.h | 1 + include/standard-headers/asm-x86/hyperv.h

[Qemu-devel] [PATCH v12 11/12] hw/arm/virt: Add RAS platform version for migration

2017-11-10 Thread Dongjiu Geng
Support this feature since version 2.10, disable it by default in the old version. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Adding platform version is suggested here: https://lkml.org/lkml/2017/8/25/821 --- hw/arm/virt-acpi-build.c | 14 +- hw/arm/

[Qemu-devel] [PATCH v13 02/12] ACPI: Add APEI GHES table generation and CPER record support

2017-11-27 Thread Dongjiu Geng
the memory section errors. For GHESv2 error source, the OSPM must acknowledges the error via Read Ack register. So user space must check the ack value before recording a new CPER to avoid read-write race condition. Suggested-by: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Dongji

[Qemu-devel] [PATCH v13 05/12] linux-headers: sync against Linux v4.14-rc8

2017-11-27 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Peter's comments to sync mainline Linux header file in [1] Address Michael's comments to not sync SPDX from Linux kernel header file [1]: https://lkml.org/lkml/2017/9/5/575 --- linux-headers/linux/kvm.h | 3 +++ 1 file chan

[Qemu-devel] [PATCH v13 04/12] ACPI: enable APEI GHES in the configure file and build it

2017-11-27 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the arm-softmmu.mak and add build choice in the Makefile.objs. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + 2 files changed, 2 insertions(+) diff --git a/d

[Qemu-devel] [PATCH v13 06/12] target-arm: kvm64: detect whether can set vsesr_el2

2017-11-27 Thread Dongjiu Geng
Check if kvm can support to set vsesr_el2 value for vcpu. When guest takes a virtual SError interrupt exception, this value will provides syndrome value reported into ESR_EL1 ISS filed. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@h

[Qemu-devel] [PATCH v13 07/12] target-arm: handle SError interrupt exception from the guest OS

2017-11-27 Thread Dongjiu Geng
receive this exception exit, check whether KVM support to set ESR(exception syndrome registers) value. If support, it sets the ESR value using a new IOCTL. This handling is only supported in AArch64 platform, not supported in AArch32 platform. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH v13 03/12] docs: APEI GHES generation description

2017-11-27 Thread Dongjiu Geng
Add APEI/GHES description document Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Igor's comments to add a doc --- docs/specs/acpi_hest_ghes.txt | 96 +++ 1 file changed, 96 insertions(+) create mode 100644 docs/specs/acpi_hest_gh

[Qemu-devel] [PATCH v13 01/12] ACPI: add related GHES structures and macros definition

2017-11-27 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definition, which refer to the ACPI 4.0 and ACPI 6.1. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Igor's comments to to get rid of most structures a

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

2017-11-27 Thread Dongjiu Geng
will tell guest that FAR is not valid and holds an UNKNOWN value. These value will be set to KVM related structure through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- Marc is against tha

[Qemu-devel] [PATCH v13 11/12] hw/arm/virt: Add RAS platform version for migration

2017-11-27 Thread Dongjiu Geng
Support this feature since version 2.10, disable it by default in the old version. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 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 +---

[Qemu-devel] [PATCH v13 09/12] Move related hwpoison page function to accel/kvm/ folder

2017-11-27 Thread Dongjiu Geng
kvm_hwpoison_page_add() and kvm_unpoison_all() will be used by both X86 and ARM platforms, so move them to a common accel/kvm/ folder to avoid duplicate code. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Peter's comments to move related hwpoison page function to acc

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

2017-11-27 Thread Dongjiu Geng
record this error into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse <james.mo...@arm.com> Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- Address James's comme

[Qemu-devel] [PATCH v13 00/12] Add ARMv8 RAS virtualization support in QEMU

2017-11-27 Thread Dongjiu Geng
0 x8 : 00de x7 : x6 : 2000 x5 : 4060 x4 : 0003 x3 : 0001 x2 : 000f123b x1 : 0008 x0 : 0047a048 Dongjiu Geng (12): ACPI: add related GHES structures and macros definition ACPI: Add APEI GHES table

[Qemu-devel] [PATCH v13 10/12] ARM: ACPI: Add _E04 for hardware error device

2017-11-27 Thread Dongjiu Geng
ACPI driver will receive this notification and handing the error. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 1. Address discussion result about guest APEI notification type for SIGBUS_MCEERR_AO SIGBUS in [1], the discussion conclusion is using GPIO-Signal [1]: https://lists.g

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

2017-11-21 Thread Dongjiu Geng
will tell guest that FAR is not valid and holds an UNKNOWN value. These value will be set to KVM related structure through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- Marc is against tha

[Qemu-devel] [PATCH RESEND v12 03/12] docs: APEI GHES generation description

2017-11-21 Thread Dongjiu Geng
Add APEI/GHES description document Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Igor's comments to add a doc --- docs/specs/acpi_hest_ghes.txt | 98 +++ 1 file changed, 98 insertions(+) create mode 100644 docs/specs/acpi_hest_gh

[Qemu-devel] [PATCH RESEND v12 00/12] Add RAS virtualization support in QEMU

2017-11-21 Thread Dongjiu Geng
x10: x9 : x8 : 00de x7 : x6 : 2000 x5 : 4060 x4 : 0003 x3 : 0001 x2 : 000f123b x1 : 0008 x0 : 0047a048 Dongjiu Geng (12): ACPI: add related GHES structures

[Qemu-devel] [PATCH RESEND v12 01/12] ACPI: add related GHES structures and macros definition

2017-11-21 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definition, which refer to the ACPI 4.0 and ACPI 6.1. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Igor's comments to to get rid of most structures a

[Qemu-devel] [PATCH RESEND v12 10/12] ARM: ACPI: Add _E04 for hardware error device

2017-11-21 Thread Dongjiu Geng
ACPI driver will receive this notification and handing the error. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 1. Address discussion result about guest APEI notification type for SIGBUS_MCEERR_AO SIGBUS in [1], the discussion conclusion is using GPIO-Signal for asynchronous sign

[Qemu-devel] [PATCH RESEND v12 05/12] linux-headers: sync against Linux v4.14-rc8

2017-11-21 Thread Dongjiu Geng
Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Peter's comments to sync mainline Linux header file in [1] [1]: https://lkml.org/lkml/2017/9/5/575 --- include/standard-headers/asm-s390/kvm_virtio.h | 1 + include/standard-headers/asm-s390/virtio-ccw.h | 1 + i

[Qemu-devel] [PATCH RESEND v12 11/12] hw/arm/virt: Add RAS platform version for migration

2017-11-21 Thread Dongjiu Geng
Support this feature since version 2.10, disable it by default in the old version. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 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 +---

[Qemu-devel] [PATCH RESEND v12 07/12] target-arm: handle SError interrupt exception from the guest OS

2017-11-21 Thread Dongjiu Geng
receive this exception exit, check whether KVM support to set ESR(exception syndrome registers) value. If support, it sets the ESR value using a new IOCTL. This handling is only supported in AArch64 platform, not supported in AArch32 platform. Signed-off-by: Dongjiu Geng <gengdong...@huawei.

[Qemu-devel] [PATCH RESEND v12 06/12] target-arm: kvm64: detect whether can set vsesr_el2

2017-11-21 Thread Dongjiu Geng
Check if kvm can support to set vsesr_el2 value for vcpu. When guest takes a virtual SError interrupt exception, this value will provides syndrome value reported into ESR_EL1 ISS filed. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@h

[Qemu-devel] [PATCH RESEND v12 02/12] ACPI: Add APEI GHES table generation and CPER record support

2017-11-21 Thread Dongjiu Geng
the memory section errors. For GHESv2 error source, the OSPM must acknowledges the error via Read Ack register. So user space must check the ack value before recording a new CPER to avoid read-write race condition. Suggested-by: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Dongji

[Qemu-devel] [PATCH RESEND v12 04/12] ACPI: enable APEI GHES in the configure file and build it

2017-11-21 Thread Dongjiu Geng
Add CONFIG_ACPI_APEI configuration in the arm-softmmu.mak and add build choice in the Makefile.objs. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Makefile.objs | 1 + 2 files changed, 2 insertions(+) diff --git a/d

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

2017-11-21 Thread Dongjiu Geng
record this error into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse <james.mo...@arm.com> Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> Signed-off-by: Quanming Wu <wuquanm...@huawei.com> --- Address James's comme

[Qemu-devel] [PATCH RESEND v12 09/12] Move related hwpoison page function to accel/kvm/ folder

2017-11-21 Thread Dongjiu Geng
kvm_hwpoison_page_add() and kvm_unpoison_all() will be used by both X86 and ARM platforms, so move them to a common accel/kvm/ folder to avoid duplicate code. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Address Peter's comments to move related hwpoison page function to acc

[Qemu-devel] [PATCH v3 RFC 1/2] linux-headers: sync linux headers

2018-06-07 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and struct kvm_vcpu_events for arm64, they are added manually in the kernel tree, so it will be added after re-running scripts/update-linux-headers.sh. Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm/kvm.h | 12 linux-headers/asm-arm64

[Qemu-devel] [PATCH v3 RFC 0/2] add support for VCPU event states

2018-06-07 Thread Dongjiu Geng
support for KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. change since v2: 1. add header definition for arm platform change since v1: 1. update the code to fix the build errors Dongjiu Geng (2): linux-headers: sync linux headers target: arm

[Qemu-devel] [PATCH v3 RFC 2/2] target: arm: Add support for VCPU event states

2018-06-07 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. Signed-off-by: Dongjiu Geng --- target/arm/cpu.h | 5 target/arm/kvm64.c | 64

[Qemu-devel] [PATCH RESEND v1 1/3] linux-headers: update to v4.17-rc7

2018-05-30 Thread Dongjiu Geng
Update headers against v4.17-rc7. Signed-off-by: Dongjiu Geng --- include/standard-headers/asm-x86/hyperv.h | 1 - include/standard-headers/asm-x86/kvm_para.h | 2 +- include/standard-headers/linux/ethtool.h| 36 ++- include/standard-headers/linux/input.h | 4

[Qemu-devel] [PATCH v1 2/3] kvm: sync linux headers

2018-05-30 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and struct kvm_vcpu_events for arm64 Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm64/kvm.h | 13 + linux-headers/linux/kvm.h | 1 + 2 files changed, 14 insertions(+) diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm

[Qemu-devel] [PATCH v1 1/3] linux-headers: update to v4.17-rc7

2018-05-30 Thread Dongjiu Geng
Update headers against v4.17-rc7. Signed-off-by: Dongjiu Geng --- include/standard-headers/asm-x86/hyperv.h | 1 - include/standard-headers/asm-x86/kvm_para.h | 2 +- include/standard-headers/linux/ethtool.h| 36 ++- include/standard-headers/linux/input.h | 4

[Qemu-devel] [PATCH v1 0/3] add support for VCPU event states

2018-05-30 Thread Dongjiu Geng
support for KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. Dongjiu Geng (3): linux-headers: update to v4.17-rc7 kvm: sync linux headers target: arm: Add support for VCPU event states include/standard-headers/asm-x86/hyperv.h | 1

[Qemu-devel] [PATCH RESEND v1 0/3] add support for VCPU event states

2018-05-30 Thread Dongjiu Geng
support for KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. Dongjiu Geng (3): linux-headers: update to v4.17-rc7 kvm: sync linux headers target: arm: Add support for VCPU event states include/standard-headers/asm-x86/hyperv.h | 1

[Qemu-devel] [PATCH RESEND v1 3/3] target: arm: Add support for VCPU event states

2018-05-30 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. Signed-off-by: Dongjiu Geng --- target/arm/cpu.h | 5 target/arm/kvm64.c | 64

[Qemu-devel] [PATCH v1 3/3] target: arm: Add support for VCPU event states

2018-05-30 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. Signed-off-by: Dongjiu Geng --- target/arm/cpu.h | 5 target/arm/kvm64.c | 64

[Qemu-devel] [PATCH RESEND v1 2/3] kvm: sync linux headers

2018-05-30 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and struct kvm_vcpu_events for arm64 Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm64/kvm.h | 13 + linux-headers/linux/kvm.h | 1 + 2 files changed, 14 insertions(+) diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm

[Qemu-devel] [PATCH v2 1/2] kvm: sync linux headers

2018-06-05 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and struct kvm_vcpu_events for arm64 Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm64/kvm.h | 13 + linux-headers/linux/kvm.h | 1 + 2 files changed, 14 insertions(+) diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm

[Qemu-devel] [PATCH v2 0/2] add support for VCPU event states

2018-06-05 Thread Dongjiu Geng
support for KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. change since v1: 1. update the code to fix the build errors Dongjiu Geng (2): kvm: sync linux headers target: arm: Add support for VCPU event states linux-headers/asm-arm64/kvm.h

[Qemu-devel] [PATCH v2 2/2] target: arm: Add support for VCPU event states

2018-06-05 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. Signed-off-by: Dongjiu Geng --- target/arm/cpu.h | 5 target/arm/kvm64.c | 64

[Qemu-devel] [PATCH v14 5/9] target-arm: kvm64: inject synchronous External Abort

2017-12-27 Thread Dongjiu Geng
will tell guest that FAR is not valid and holds an UNKNOWN value. These value will be set to KVM register structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Marc is against that KVM inject the synchronous external abort(SEA) in [1], so user spa

  1   2   3   >