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

2019-05-14 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 --- accel/kvm/kvm-all.c | 33 + include/exec/ram_addr.h | 24

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

2019-05-14 Thread Dongjiu Geng
, Qemu record this error address into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse Signed-off-by: Dongjiu Geng --- hw/acpi/acpi_ghes.c | 177 include/hw/acpi/acpi_ghes.h | 6

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

2019-05-14 Thread Dongjiu Geng
guest that FAR is not valid and hold an UNKNOWN value. These value will be set to KVM register structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng --- target/arm/internals.h | 5 +++-- target/arm/kvm64.c | 34 ++ target/arm/op_helper.c | 2

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

2019-05-14 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 v17 07/10] ACPI: Add APEI GHES table generation support

2019-05-14 Thread Dongjiu Geng
to handle the memory errors. This patch follows the spec ACPI 6.2 to build the Hardware Error Source table, for the detailed information, please refer to document: docs/specs/acpi_hest_ghes.txt Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng --- default-configs/arm-softmmu.mak | 1 + hw

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

2019-05-14 Thread Dongjiu Geng
Memory failure: 0x40fa6: recovery action for dirty LRU page: Recovered Dongjiu Geng (10): hw/arm/virt: Add RAS platform version for migration ACPI: add some GHES structures and macros definition acpi: add build_append_ghes_notify() helper for Hardware Error Notification acpi: add

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

2019-05-14 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 --- include/hw/acpi/acpi-defs.h | 52 + 1 file

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

2019-05-14 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng --- docs/specs/acpi_hest_ghes.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 docs/specs/acpi_hest_ghes.txt diff --git a/docs/specs/acpi_hest_ghes.txt b/docs/specs

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

2019-05-14 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 v17 04/10] acpi: add build_append_ghes_generic_data() helper for Generic Error Data Entry

2019-05-14 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 v17 01/10] hw/arm/virt: Add RAS platform version for migration

2019-05-14 Thread Dongjiu Geng
Support this feature since version 4.1, disable it by default in the old version. Signed-off-by: Dongjiu Geng --- hw/arm/virt.c | 6 ++ include/hw/arm/virt.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 5331ab7..7bdd41b 100644 --- a/hw

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

2019-05-13 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 v16 06/10] docs: APEI GHES generation and CPER record description

2019-05-13 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng --- docs/specs/acpi_hest_ghes.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 docs/specs/acpi_hest_ghes.txt diff --git a/docs/specs/acpi_hest_ghes.txt b/docs/specs

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

2019-05-13 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 v16 09/10] target-arm: kvm64: inject synchronous External Abort

2019-05-13 Thread Dongjiu Geng
guest that FAR is not valid and hold an UNKNOWN value. These value will be set to KVM register structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng --- target/arm/internals.h | 5 +++-- target/arm/kvm64.c | 34 ++ target/arm/op_helper.c | 2

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

2019-05-13 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 v16 07/10] ACPI: Add APEI GHES table generation support

2019-05-13 Thread Dongjiu Geng
to handle the memory errors. This patch follows the spec ACPI 6.2 to build the Hardware Error Source table, for the detailed information, please refer to document: docs/specs/acpi_hest_ghes.txt Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng --- default-configs/arm-softmmu.mak | 1 + hw

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

2019-05-13 Thread Dongjiu Geng
Support this feature since version 4.1, disable it by default in the old version. Signed-off-by: Dongjiu Geng --- hw/arm/virt.c | 6 ++ include/hw/arm/virt.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 5331ab7..7bdd41b 100644 --- a/hw

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

2019-05-13 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 --- include/hw/acpi/acpi-defs.h | 52 + 1 file

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

2019-05-13 Thread Dongjiu Geng
fa6000 [ 1554.513944] {1}[Hardware Error]: error_type: 0, unknown [ 1555.041451] Memory failure: 0x40fa6: Killing mca-recover:1296 due to hardware memory corruption [ 1555.373116] Memory failure: 0x40fa6: recovery action for dirty LRU page: Recovered Dongjiu Geng (10): hw/arm/virt: Add RAS pl

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

2019-05-13 Thread Dongjiu Geng
, Qemu record this error address into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse Signed-off-by: Dongjiu Geng --- hw/acpi/acpi_ghes.c | 177 include/hw/acpi/acpi_ghes.h | 6

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

2019-05-13 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 --- accel/kvm/kvm-all.c | 33 + include/exec/ram_addr.h | 24

[Qemu-devel] [PATCH V3] target/arm: change arch timer registers access permission

2019-03-12 Thread Dongjiu Geng
. If they are defined to read only in EL0, even though they have been appropriately configured, they still do not have write permission. So need to add the write permission according to ARMV8 spec when define it. Signed-off-by: Dongjiu Geng --- Change since V2: 1. Change 'Ready only' to 'read only

[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 a/docs

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

2018-11-08 Thread Dongjiu Geng
, it will trap to KVM as stage2 fault, then a SIGBUS_MCEERR_AR synchronous signal is delivered to Qemu, Qemu record this error into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse Signed-off-by: Dongjiu Geng --- Address James's comments

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

2018-11-08 Thread Dongjiu Geng
r:1296 due to hardware memory corruption [ 1555.373116] Memory failure: 0x40fa6: recovery action for dirty LRU page: Recovered Dongjiu Geng (10): ACPI: add some GHES structures and macros definition acpi: add build_append_ghes_notify() helper for Hardware Error Notification acpi: add

[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

[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
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 --- Marc is against that KVM inject the synchronous external abort(SEA) in [1], so user space how to inject it. The test result

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

2018-11-08 Thread Dongjiu Geng
mainly wants userspace to handle the memory 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 Signed-off-by: Dongjiu Geng

[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

[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
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 Marc is against that KVM inject the synchronous external abort(SEA) in [1], so user space how to inject it. The test result

[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 a/docs

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

2018-11-08 Thread Dongjiu Geng
r:1296 due to hardware memory corruption [ 1555.373116] Memory failure: 0x40fa6: recovery action for dirty LRU page: Recovered Dongjiu Geng (10): ACPI: add some GHES structures and macros definition acpi: add build_append_ghes_notify() helper for Hardware Error Notification acpi: add

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

2018-11-08 Thread Dongjiu Geng
, it will trap to KVM as stage2 fault, then a SIGBUS_MCEERR_AR synchronous signal is delivered to Qemu, Qemu record this error into guest APEI GHES memory and notify guest using Synchronous-External-Abort(SEA). Suggested-by: James Morse Signed-off-by: Dongjiu Geng Address James's comments

[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

[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
mainly wants userspace to handle the memory 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 Signed-off-by: Dongjiu Geng

[Qemu-devel] [PATCH] target/arm: fix code comments error

2018-09-27 Thread Dongjiu Geng
The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of CPUState, so correct the note to make it match the code. Signed-off-by: Dongjiu Geng --- target/arm/kvm.c | 2 +- target/arm/kvm_arm.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/arm/kvm.c b

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

2018-09-27 Thread Dongjiu Geng
this serror regardless of whether target machine can support to set the serror syndrome. Note: Because I do not have arm32 environment, I only this patch in the KVM64, not test it in the KVM32. So I need someone else test it in the 32 bit KVM platform. Thanks. Dongjiu Geng (2): linux-headers

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

2018-09-27 Thread Dongjiu Geng
value. Signed-off-by: Dongjiu Geng --- Because I do not have arm32 platform, only have arm64 platform, so I only test this patch in arm64, if somebody else can test this patch, I will very appreciate that. How to test this patch: 1. Apply this patch to enable 32 bit KVM vcpu events support

[Qemu-devel] [PATCH RFC v11 1/2] linux-headers: Update to linux kernel 4.19-rc5

2018-09-27 Thread Dongjiu Geng
Update our kernel headers to upstream 4.19-rc5 (kernel commit 6bf4ca7fbc85d80446ac0) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13 + linux-headers/asm-arm64/kvm.h | 13 + linux

[Qemu-devel] [PATCH RESEND RFC v10 1/2] linux-headers: Update to linux kernel 4.19-rc5

2018-09-26 Thread Dongjiu Geng
Update our kernel headers to upstream 4.19-rc5 (kernel commit 6bf4ca7fbc85d80446ac0) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13 + linux-headers/asm-arm64/kvm.h | 13 + linux

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

2018-09-26 Thread Dongjiu Geng
this serror regardless of whether target machine can support to set the serror syndrome. Note: Because I do not have arm32 environment, I only this patch in the KVM64, not test it in the KVM32. So I need someone else test it in the 32 bit KVM platform. Thanks. Dongjiu Geng (2): linux-headers

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

2018-09-26 Thread Dongjiu Geng
value. Signed-off-by: Dongjiu Geng --- Because I do not have arm32 platform, only have arm64 platform, so I only test this patch in arm64, if somebody else can test this patch, I will very appreciate that. How to test this patch: 1. Apply this patch to enable 32 bit KVM vcpu events support

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

2018-09-26 Thread Dongjiu Geng
value. Signed-off-by: Dongjiu Geng --- Because I do not have arm32 platform, only have arm64 platform, so I only test this patch in arm64, if somebody else can test this patch, I will very appreciate that. How to test this patch: 1. Apply this patch to enable 32 bit KVM vcpu events support

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

2018-09-26 Thread Dongjiu Geng
is also needed to pend this serror regardless of whether target machine can support to set the serror syndrome. Note: Because I do not have arm32 environment, I only this patch in the KVM64, not test it in the KVM32. So I need someone else test it in the 32 bit KVM platform. Thanks. Dongjiu Geng (2

[Qemu-devel] [PATCH v10 1/2] linux-headers: Update to linux kernel 4.19-rc5

2018-09-26 Thread Dongjiu Geng
Update our kernel headers to upstream 4.19-rc5 (kernel commit 6bf4ca7fbc85d80446ac0) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13 + linux-headers/asm-arm64/kvm.h | 13 + linux

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

2018-09-15 Thread Dongjiu Geng
this serror regardless of whether target machine can support to set the serror syndrome. Dongjiu Geng (2): linux-headers: Update to kernel mainline commit 815f0ddb3 target: arm: Add support for VCPU event states include/standard-headers/linux/input.h | 9 +++-- linux-headers/asm-arm/kvm.h

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

2018-09-15 Thread Dongjiu Geng
value. Signed-off-by: Dongjiu Geng --- Change since v8: 1. Update the commit message Change since v7: 1. Change "pending" and "has_esr" from uint32_t to uint8_t for CPUARMState 2. Add error_report() in kvm_get_vcpu_events() Change since v6: 1. Add cover letter 2. Change na

[Qemu-devel] [PATCH v9 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-09-15 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13

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

2018-08-28 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 --- change since v7: 1. Change "pending" and "has_esr

[Qemu-devel] [PATCH v8 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-08-28 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13

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

2018-08-28 Thread Dongjiu Geng
to pend this serror regardless of whether target machine can support to set the serror syndrome. Dongjiu Geng (2): linux-headers: Update to kernel mainline commit 815f0ddb3 target: arm: Add support for VCPU event states include/standard-headers/linux/input.h | 9 +++-- linux-headers/asm-arm/kvm.h

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

2018-08-27 Thread Dongjiu Geng
to pend this serror regardless of whether target machine can support to set the serror syndrome. Dongjiu Geng (2): linux-headers: Update to kernel mainline commit 815f0ddb3 target: arm: Add support for VCPU event states include/standard-headers/linux/input.h | 9 +++-- linux-headers/asm-arm

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

2018-08-27 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 --- change since v6: 1. Add cover letter 2. Change name "cpu/ras&quo

[Qemu-devel] [PATCH v7 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-08-27 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13

[Qemu-devel] [PATCH v6 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-08-23 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13

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

2018-08-23 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 --- Change since v5: address Peter's comments: 1. Move the "struct s

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

2018-07-21 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 --- change since v4: 1. Rebase the code to latest change since v3: 1. Add

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

2018-07-21 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and kvm_vcpu_events struct definition. The related kernel change have been already applied to kvmarm/next. (https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/log/?h=next) Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm/kvm.h | 13

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

2018-07-21 Thread Dongjiu Geng
/log/?h=next) Dongjiu Geng (3): Update Linux headers to 4.18-rc5 kvm: sync linux headers target: arm: Add support for VCPU event states include/standard-headers/linux/virtio_config.h | 16 +-- linux-headers/asm-arm/kvm.h| 13 ++ linux-headers/asm-arm64/kvm.h

[Qemu-devel] [PATCH v6 1/3] Update Linux headers to 4.18-rc5

2018-07-21 Thread Dongjiu Geng
Update our copy of the Linux headers to upstream 4.18-rc5 (kernel commit 9d3cce1e8b8561fed5f38) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/virtio_config.h | 16 linux-headers/asm-mips/unistd.h| 18 -- linux-headers/asm-powerpc

[Qemu-devel] [PATCH v5 1/3] Update Linux headers to 4.18-rc5

2018-07-21 Thread Dongjiu Geng
Update our copy of the Linux headers to upstream 4.18-rc5 (kernel commit 9d3cce1e8b8561fed5f38) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/virtio_config.h | 16 linux-headers/asm-mips/unistd.h| 18 -- linux-headers/asm-powerpc

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

2018-07-21 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 --- change since v4: 1. Rebase the code to latest change since v3: 1. Add

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

2018-07-21 Thread Dongjiu Geng
Import KVM_CAP_ARM_INJECT_SERROR_ESR and kvm_vcpu_events struct definition. The related kernel change has been already applied to kvmarm/next. (https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/log/?h=next) Signed-off-by: Dongjiu Geng --- linux-headers/asm-arm/kvm.h | 13

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

2018-07-21 Thread Dongjiu Geng
/log/?h=next) Dongjiu Geng (3): Update Linux headers to 4.18-rc5 kvm: sync linux headers target: arm: Add support for VCPU event states include/standard-headers/linux/virtio_config.h | 16 +-- linux-headers/asm-arm/kvm.h| 13 ++ linux-headers/asm-arm64/kvm.h

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

2018-06-28 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 --- change since v3: 1. Add a new new subsection with a suitable

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

2018-06-28 Thread Dongjiu Geng
is b04e217704b7f879c6b91222b066983a44a7a09f 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-arm64/kvm.h index 17315ab..e240afc 100644 --- a/linux-headers/asm-arm64

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

2018-06-28 Thread Dongjiu Geng
. add header definition for arm platform change since v1: 1. update the code to fix the build errors The corresponding kernel patch is here: https://lkml.org/lkml/2018/6/25/374 Dongjiu Geng (2): linux-headers: sync linux header target: arm: Add support for VCPU event states linux-headers

[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 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 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 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 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 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 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 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 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 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 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 v14 2/9] ACPI: Add APEI GHES table generation and CPER record support

2017-12-27 Thread Dongjiu Geng
condition. Suggested-by: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- The basic solution is suggested by Laszlo in [1] [1]: https://lkml.org/lkml/2017/3/29/342 --- hw/acpi/aml-build.c | 2 + hw/acpi/hest_ghes.c

[Qemu-devel] [PATCH v14 3/9] docs: APEI GHES generation and CPER record description

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

[Qemu-devel] [PATCH v14 0/9] Add ARMv8 RAS virtualization support in QEMU

2017-12-27 Thread Dongjiu Geng
1555.373116] Memory failure: 0x40fa6: recovery action for dirty LRU page: Recovered Dongjiu Geng (9): ACPI: add some GHES structures and macros definition ACPI: Add APEI GHES table generation and CPER record support docs: APEI GHES generation and CPER record description ACPI: enable APEI

[Qemu-devel] [PATCH v14 1/9] ACPI: add some GHES structures and macros definition

2017-12-27 Thread Dongjiu Geng
Add Generic Error Status Block structures and some macros definitions, which is referred to the ACPI 4.0 or ACPI 6.1. The HEST table generation and CPER record will use them. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- Change since v13: 1. Clean the new added structures and

[Qemu-devel] [PATCH v14 8/9] hw/arm/virt: Add RAS platform version for migration

2017-12-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 Signed-off-by: Dongjiu Geng <gengdong...@h

[Qemu-devel] [PATCH v14 6/9] Move related hwpoison page functions to accel/kvm/ folder

2017-12-27 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 <gengdong...@huawei.com> --- Address Peter's comments to move related hwpoison page fu

[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

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

2017-12-27 Thread Dongjiu Geng
is delivered to Qemu, Qemu 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> --- Address James's comments to record CPER and notify gues

[Qemu-devel] [PATCH v14 7/9] ARM: ACPI: Add GPIO notification type for hardware RAS error

2017-12-27 Thread Dongjiu Geng
and handing the error. In order to better trigger the GPIO IRQ, we defined a notifier hardware_error_notifiers. If Qemu wants to deliver a GPIO-Signal notification, will call it. Signed-off-by: Dongjiu Geng <gengdong...@huawei.com> --- 1. Address discussion result about guest APEI notifi

<    1   2   3   >