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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
.
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
/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
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
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
. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
101 - 200 of 286 matches
Mail list logo