Re: [PATCH 25/53] acpi: acpi_build_hest: use acpi_init_table()/acpi_table_composed() instead of build_header()

2021-07-02 Thread Dongjiu Geng
hest_start), > - "HEST", table_data->len - hest_start, 1, oem_id, > oem_table_id); > +acpi_table_composed(linker, ); Thanks for the change, I think this change is reasonable to use common API acpi_init_table() to replace build_header() Reviewed-by: Dongjiu Geng > } > > void acpi_ghes_add_fw_cfg(AcpiGhesState *ags, FWCfgState *s, > -- > 2.27.0 >

Re: [PATCH 3/3] target/arm: Use acpi_ghes_present() to see if we report ACPI memory errors

2021-06-13 Thread Dongjiu Geng
m_addr_from_host(addr); > if (ram_addr != RAM_ADDR_INVALID && > kvm_physical_memory_addr_from_host(c->kvm_state, addr, )) { > -- > 2.20.1 > Reviewed-by: Dongjiu Geng

Re: [PATCH 2/3] hw/acpi: Provide function acpi_ghes_present()

2021-06-13 Thread Dongjiu Geng
t_resolve_path_type("", TYPE_ACPI_GED, > + NULL)); > + > +if (!acpi_ged_state) { > +return false; > +} > +ags = _ged_state->ghes_state; > +return ags->present; > +} > -- > 2.20.1 > Reviewed-by: Dongjiu Geng

Re: [PATCH 1/3] hw/acpi: Provide stub version of acpi_ghes_record_errors()

2021-06-13 Thread Dongjiu Geng
IG_ACPI', if_true: acpi_ss) > softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('acpi-stub.c', > 'aml-build-stub.c', > - 'acpi-x86-stub.c', > 'ipmi-stub.c')) > + 'acpi-x86-stub.c', > 'ipmi-stub.c', 'ghes-stub.c')) > -- > 2.20.1 > Reviewed-by: Dongjiu Geng

Re: [PATCH_V3] Adding ifdefs to call the respective routines only when their configs are enabled

2021-06-02 Thread Dongjiu Geng
; You should see errors pointing to these routines: virt_is_acpi_enabled, > acpi_ghes_record_errors > > Thanks, > Swetha. > > On Fri, May 28, 2021 at 12:08 AM Dongjiu Geng wrote: >> >> Peter Maydell 于2021年5月27日周四 上午2:19写道: >> > >> > On Wed, 26 May 2021 a

Re: [PATCH_V3] Adding ifdefs to call the respective routines only when their configs are enabled

2021-05-28 Thread Dongjiu Geng
Peter Maydell 于2021年5月27日周四 上午2:19写道: > > On Wed, 26 May 2021 at 18:32, Swetha Joshi wrote: > > > > Hello, > > > > One of the qemu machines we use has KVM enabled, but we don't want the > > CONFIG_ARM_VIRT enabled as it pulls in emulation of a variety of physical > > hardware that we don't

Re: [PATCH] MAINTAINERS: replace Huawei's email to personal one

2021-03-22 Thread Dongjiu Geng
ping...sorry for the noise. On 3/11/2021 19:29,Dongjiu Geng wrote: In order to conveniently receive email, replace the Huaweiemail address with my personal one.Signed-off-by: Dongjiu Geng --- MAINTAINERS | 2 +- 1 file changed, 1

[PATCH] MAINTAINERS: replace Huawei's email to personal one

2021-03-11 Thread Dongjiu Geng
In order to conveniently receive email, replace the Huawei email address with my personal one. Signed-off-by: Dongjiu Geng --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e04ae21..823b98b 100644 --- a/MAINTAINERS +++ b

Re: [PATCH] hw/arm: Restrict APEI tables generation to the 'virt' machine

2020-09-30 Thread Dongjiu Geng
On 2020/9/30 18:35, Philippe Mathieu-Daudé wrote: > On 9/30/20 7:08 AM, Dongjiu Geng wrote: >> On 2020/9/29 20:56, Philippe Mathieu-Daudé wrote: >>> As only the Virt machine uses the RAS Virtualization feature (see >>> commit 2afa8c8519: "hw/arm/virt

Re: [PATCH] hw/arm: Restrict APEI tables generation to the 'virt' machine

2020-09-29 Thread Dongjiu Geng
ot;) > Signed-off-by: Philippe Mathieu-Daudé > --- > Cc: Laszlo Ersek > Cc: Xiang Zheng > Cc: Jonathan Cameron > Cc: Igor Mammedov > Cc: Dongjiu Geng > Cc: Michael S. Tsirkin > --- > default-configs/arm-softmmu.mak | 1 - > hw/arm/Kconfig

[PATCH] ACPI: Assert that we don't run out of the preallocated memory

2020-06-22 Thread Dongjiu Geng
data_length is a constant value, so we use assert instead of condition check. Signed-off-by: Dongjiu Geng --- 1. Address Peter and Michael's comments to use assert instead of if(). https://lore.kernel.org/qemu-devel/ca79ea28-9ea9-18a5-99ad-25c3eb744...@huawei.com/ --- hw/acpi/ghes.c | 12

Re: [PULL 26/45] ACPI: Record Generic Error Status Block(GESB) table

2020-06-19 Thread Dongjiu Geng
On 2020/6/20 1:21, Peter Maydell wrote: > On Thu, 21 May 2020 at 16:31, Michael S. Tsirkin wrote: >> >> On Thu, May 21, 2020 at 02:03:36PM +0100, Peter Maydell wrote: >>> On Thu, 14 May 2020 at 15:22, Peter Maydell >>> wrote: >>>> >>>&

[PATCH v27 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-05-11 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH v27 05/10] ACPI: Build Hardware Error Source Table

2020-05-11 Thread Dongjiu Geng
Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 126

[PATCH v27 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-05-11 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 219 + include/hw/acpi/ghes.h | 1 + 2 files changed, 220 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c

[PATCH v27 06/10] ACPI: Record the Generic Error Status Block address

2020-05-11 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Acked-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/generic_event_device.c | 19 +++ hw/acpi/ghes.c | 14 ++ hw/arm/virt-acpi

[PATCH v27 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-05-11 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng Reviewed-by: Peter Maydell Reviewed-by: Igor Mammedov --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm

[PATCH v27 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-05-11 Thread Dongjiu Geng
Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Signed-off-by: Dongjiu Geng Reviewed-by: Michael S. Tsirkin --- default-configs/arm-softmmu.mak

[PATCH v27 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-05-11 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v27 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-05-11 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Reviewed-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- Change since v25: 1. Address Peter's comments to add a proper doc-comment comment for UUID_LE macros

[PATCH v27 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-05-11 Thread Dongjiu Geng
r]: 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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/a

[PATCH v27 03/10] docs: APEI GHES generation and CPER record description

2020-05-11 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH v27 02/10] hw/arm/virt: Introduce a RAS machine option

2020-05-11 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- hw/arm/virt.c | 23

[PATCH RESEND v26 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-05-07 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 219 + include/hw/acpi/ghes.h | 1 + 2 files changed, 220 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c

[PATCH RESEND v26 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-05-07 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng Reviewed-by: Peter Maydell Reviewed-by: Igor Mammedov --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm

[PATCH RESEND v26 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-05-07 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH RESEND v26 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-05-07 Thread Dongjiu Geng
Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Signed-off-by: Dongjiu Geng Reviewed-by: Michael S. Tsirkin --- default-configs/arm-softmmu.mak

[PATCH RESEND v26 06/10] ACPI: Record the Generic Error Status Block address

2020-05-07 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Acked-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/generic_event_device.c | 19 +++ hw/acpi/ghes.c | 14 ++ hw/arm/virt-acpi

[PATCH RESEND v26 03/10] docs: APEI GHES generation and CPER record description

2020-05-07 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH RESEND v26 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-05-07 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Reviewed-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- Change since v25: 1. Address Peter's comments to add a proper doc-comment comment for UUID_LE macros

[PATCH RESEND v26 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-05-07 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH RESEND v26 05/10] ACPI: Build Hardware Error Source Table

2020-05-07 Thread Dongjiu Geng
Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 126

[PATCH RESEND v26 02/10] hw/arm/virt: Introduce a RAS machine option

2020-05-07 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- hw/arm/virt.c | 23

[PATCH RESEND v26 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-05-07 Thread Dongjiu Geng
r]: 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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/a

[PATCH v26 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-05-07 Thread Dongjiu Geng
Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Signed-off-by: Dongjiu Geng Reviewed-by: Michael S. Tsirkin --- default-configs/arm-softmmu.mak

[PATCH v26 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-05-07 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng Reviewed-by: Peter Maydell Reviewed-by: Igor Mammedov --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm

[PATCH v26 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-05-07 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 219 + include/hw/acpi/ghes.h | 1 + 2 files changed, 220 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c

[PATCH v26 06/10] ACPI: Record the Generic Error Status Block address

2020-05-07 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Acked-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/generic_event_device.c | 19 +++ hw/acpi/ghes.c | 14 ++ hw/arm/virt-acpi

[PATCH v26 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-05-07 Thread Dongjiu Geng
r]: 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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/a

[PATCH v26 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-05-07 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Reviewed-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- Change since v25: 1. Address Peter's comments to add a proper doc-comment comment for UUID_LE macros

[PATCH v26 05/10] ACPI: Build Hardware Error Source Table

2020-05-07 Thread Dongjiu Geng
Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Xiang Zheng Signed-off-by: Dongjiu Geng Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 126

[PATCH v26 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-05-07 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH v26 02/10] hw/arm/virt: Introduce a RAS machine option

2020-05-07 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- hw/arm/virt.c | 23

[PATCH v26 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-05-07 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v26 03/10] docs: APEI GHES generation and CPER record description

2020-05-07 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH v25 03/10] docs: APEI GHES generation and CPER record description

2020-04-10 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH v25 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-04-10 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- change since v24: 1. Using g_array_append_vals() to replace build_append_int_noprefix() to build FRU Text. 2. Remove the judgement that judge whether acpi_ged_state is NULL. 3. Add le64_to_cpu() to error_block_address --- hw/acpi/ghes.c | 219

[PATCH v25 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-04-10 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v25 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-04-10 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng Reviewed-by: Peter Maydell --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm/helper.c | 2 +- target/arm

[PATCH v25 05/10] ACPI: Build Hardware Error Source Table

2020-04-10 Thread Dongjiu Geng
Notification to ACPI tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- change since v24: 1. Add acpi_add_table() before acpi_build_hest() 2. Pass NULL for oem_table_id in build_header

[PATCH v25 06/10] ACPI: Record the Generic Error Status Block address

2020-04-10 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Acked-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- change since v24: 1. Use s->ghes_state.ghes_addr_le to check in ghes_needed() 2. Using hardware_error->len instead of request_block_size to calculate in acpi_ghes_add_fw_cfg() 3. Remove assert(vms->

[PATCH v25 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-04-10 Thread Dongjiu Geng
r]: 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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/a

[PATCH v25 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-04-10 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH v25 02/10] hw/arm/virt: Introduce a RAS machine option

2020-04-10 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- hw/arm/virt.c | 23 +++ include/hw/arm

[PATCH v25 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-04-10 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Reviewed-by: Xiang Zheng Signed-off-by: Dongjiu Geng --- hw/acpi/nvdimm.c| 10 +++--- include/qemu/uuid.h | 9 + 2 files changed, 12 insertions(+), 7

[PATCH v25 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-04-10 Thread Dongjiu Geng
Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Signed-off-by: Dongjiu Geng --- change since v24: 1.move acpi_add_table() to the patch that adds

[PATCH v24 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-02-17 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH v24 06/10] ACPI: Record the Generic Error Status Block address

2020-02-17 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Signed-off-by: Dongjiu Geng Acked-by: Xiang Zheng --- hw/acpi/generic_event_device.c | 18 ++ hw/acpi/ghes.c | 17 + hw/arm/virt-acpi-build.c | 10 ++ include/hw/acpi

[PATCH v24 05/10] ACPI: Build Hardware Error Source Table

2020-02-17 Thread Dongjiu Geng
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 Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- hw/acpi/ghes.c | 126 +++ hw/arm

[PATCH v24 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-02-17 Thread Dongjiu Geng
/acpi_hest_ghes.rst Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Kconfig | 4 ++ hw

[PATCH v24 03/10] docs: APEI GHES generation and CPER record description

2020-02-17 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH v24 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-02-17 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm/helper.c | 2 +- target/arm/internals.h | 5

[PATCH v24 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-02-17 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- hw/acpi/ghes.c | 218 + include/hw/acpi/ghes.h | 1 + 2 files changed, 219 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index cea2bff..41ddad9 100644 --- a/hw/acpi/ghes.c +++ b/hw/acpi

[PATCH v24 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-02-17 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v24 02/10] hw/arm/virt: Introduce a RAS machine option

2020-02-17 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- hw/arm/virt.c | 23 +++ include/hw/arm

[PATCH v24 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-02-17 Thread Dongjiu Geng
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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/a

[PATCH v24 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-02-17 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Signed-off-by: Dongjiu Geng Reviewed-by: Xiang Zheng --- hw/acpi/nvdimm.c| 8 ++-- include/qemu/uuid.h | 5 + 2 files changed, 7 insertions(+), 6

[PATCH RESEND v23 08/10] ACPI: Record Generic Error Status Block(GESB) table

2020-02-16 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- hw/acpi/ghes.c | 218 + include/hw/acpi/ghes.h | 1 + 2 files changed, 219 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index cea2bff..8e114ee 100644 --- a/hw/acpi/ghes.c +++ b/hw/acpi

[PATCH RESEND v23 10/10] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-02-16 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH RESEND v23 09/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-02-16 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm/helper.c | 2 +- target/arm/internals.h | 5

[PATCH RESEND v23 05/10] ACPI: Build Hardware Error Source Table

2020-02-16 Thread Dongjiu Geng
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 Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- hw/acpi/ghes.c | 126 +++ hw/arm

[PATCH RESEND v23 06/10] ACPI: Record the Generic Error Status Block address

2020-02-16 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Signed-off-by: Dongjiu Geng Acked-by: Xiang Zheng --- hw/acpi/generic_event_device.c | 18 ++ hw/acpi/ghes.c | 17 + hw/arm/virt-acpi-build.c | 10 ++ include/hw/acpi

[PATCH RESEND v23 04/10] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-02-16 Thread Dongjiu Geng
/acpi_hest_ghes.rst Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Kconfig | 4 ++ hw

[PATCH RESEND v23 03/10] docs: APEI GHES generation and CPER record description

2020-02-16 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH RESEND v23 02/10] hw/arm/virt: Introduce a RAS machine option

2020-02-16 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- hw/arm/virt.c | 23 +++ include/hw/arm

[PATCH RESEND v23 01/10] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-02-16 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Signed-off-by: Dongjiu Geng Reviewed-by: Xiang Zheng --- hw/acpi/nvdimm.c| 8 ++-- include/qemu/uuid.h | 5 + 2 files changed, 7 insertions(+), 6

[PATCH RESEND v23 07/10] KVM: Move hwpoison page related functions into kvm-all.c

2020-02-16 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH RESEND v23 00/10] Add ARMv8 RAS virtualization support in QEMU

2020-02-16 Thread Dongjiu Geng
51] 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): acpi: nvdimm: change NVDIMM_UUID_LE to a common macro hw/arm/virt: Introduce a RAS machine opt

[PATCH v23 7/9] ACPI: Record Generic Error Status Block(GESB) table

2020-02-16 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- hw/acpi/ghes.c | 218 + include/hw/acpi/ghes.h | 1 + 2 files changed, 219 insertions(+) diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c index cea2bff..8e114ee 100644 --- a/hw/acpi/ghes.c +++ b/hw/acpi

[PATCH v23 9/9] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-02-16 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin --- MAINTAINERS | 9 + 1 file changed, 9

[PATCH v23 0/9] Add ARMv8 RAS virtualization support in QEMU

2020-02-16 Thread Dongjiu Geng
555.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 (9): hw/arm/virt: Introduce a RAS machine option docs: APEI GHES generation and CPER record descr

[PATCH v23 3/9] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-02-16 Thread Dongjiu Geng
/acpi_hest_ghes.rst Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Kconfig | 4 ++ hw

[PATCH v23 4/9] ACPI: Build Hardware Error Source Table

2020-02-16 Thread Dongjiu Geng
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 Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- hw/acpi/ghes.c | 126 +++ hw/arm

[PATCH v23 2/9] docs: APEI GHES generation and CPER record description

2020-02-16 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed

[PATCH v23 5/9] ACPI: Record the Generic Error Status Block address

2020-02-16 Thread Dongjiu Geng
, then this address will be migrated to target QEMU. Signed-off-by: Dongjiu Geng Acked-by: Xiang Zheng --- hw/acpi/generic_event_device.c | 18 ++ hw/acpi/ghes.c | 17 + hw/arm/virt-acpi-build.c | 10 ++ include/hw/acpi

[PATCH v1] acpi: nvdimm: change NVDIMM_UUID_LE to a common macro

2020-02-16 Thread Dongjiu Geng
The little end UUID is used in many places, so make NVDIMM_UUID_LE to a common macro to convert the UUID to a little end array. Signed-off-by: Dongjiu Geng Reviewed-by: Xiang Zheng --- hw/acpi/nvdimm.c| 8 ++-- include/qemu/uuid.h | 5 + 2 files changed, 7 insertions(+), 6

[PATCH v23 6/9] KVM: Move hwpoison page related functions into kvm-all.c

2020-02-16 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v23 8/9] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-02-16 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng --- include/sysemu/kvm.h| 3 +- target/arm/cpu.h| 4 +++ target/arm/helper.c | 2 +- target/arm/internals.h | 5

[PATCH v23 1/9] hw/arm/virt: Introduce a RAS machine option

2020-02-16 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Jonathan Cameron --- hw/arm/virt.c | 23 +++ include/hw/arm

[PATCH v22 0/9] Add ARMv8 RAS virtualization support in QEMU

2020-01-08 Thread Dongjiu Geng
[Hardware Error]: physical_address: 0x40fa6000 [ 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: Reco

[PATCH v22 3/9] ACPI: Build related register address fields via hardware error fw_cfg blob

2020-01-08 Thread Dongjiu Geng
/acpi_hest_ghes.rst Now we only support one Error source, if necessary, we can extend to support more. Suggested-by: Laszlo Ersek Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin --- default-configs/arm-softmmu.mak | 1 + hw/acpi/Kconfig | 4

[PATCH v22 7/9] ACPI: Record Generic Error Status Block(GESB) table

2020-01-08 Thread Dongjiu Geng
-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin --- hw/acpi/ghes.c | 224 - include/hw/acpi/ghes.h | 3 + include/qemu/uuid.h| 5 ++ 3 files changed, 230 insertions(+), 2 deletions(-) diff --git a/hw

[PATCH v22 9/9] MAINTAINERS: Add ACPI/HEST/GHES entries

2020-01-08 Thread Dongjiu Geng
I and Xiang are willing to review the APEI-related patches and volunteer as the reviewers for the HEST/GHES part. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 387879a..5af70a5

[PATCH v22 5/9] ACPI: Record the Generic Error Status Block address

2020-01-08 Thread Dongjiu Geng
Record the GHEB address via fw_cfg file, when recording a error to CPER, it will use this address to find out Generic Error Data Entries and write the error. Make the HEST GHES to a GED device. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng --- hw/acpi/generic_event_device.c

[PATCH v22 4/9] ACPI: Build Hardware Error Source Table

2020-01-08 Thread Dongjiu Geng
tables without using packed C structures and avoid endianness issues as API doesn't need explicit conversion. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng --- hw/acpi/ghes.c | 118

[PATCH v22 2/9] docs: APEI GHES generation and CPER record description

2020-01-08 Thread Dongjiu Geng
Add APEI/GHES detailed design document Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin --- docs/specs/acpi_hest_ghes.rst | 110 ++ docs/specs/index.rst | 1 + 2 files changed, 111 insertions(+) create

[PATCH v22 8/9] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2020-01-08 Thread Dongjiu Geng
structures through KVM_SET_ONE_REG IOCTL. Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Reviewed-by: Michael S. Tsirkin Acked-by: Xiang Zheng --- include/sysemu/kvm.h| 3 +-- target/arm/cpu.h| 4 +++ target/arm/helper.c | 2 +- target/arm/internals.h | 5

[PATCH v22 6/9] KVM: Move hwpoison page related functions into kvm-all.c

2020-01-08 Thread Dongjiu Geng
s register the kvm_unpoison_all() function in the generic kvm_init() function. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- accel/kvm/kvm-all.c | 36 include/sysemu/kvm_int.h | 12 target/

[PATCH v22 1/9] hw/arm/virt: Introduce a RAS machine option

2020-01-08 Thread Dongjiu Geng
RAS Virtualization feature is not supported now, so add a RAS machine option and disable it by default. Reviewed-by: Peter Maydell Signed-off-by: Dongjiu Geng Signed-off-by: Xiang Zheng Acked-by: Xiang Zheng --- hw/arm/virt.c | 23 +++ include/hw/arm/virt.h | 1

[Qemu-devel] [PATCH] hw/arm/boot: Load the Non Linux initrd to the memory

2019-08-27 Thread Dongjiu Geng
Except support linux operation system, qemu also supports other operation system which is non linux, such as microkernel system. But now Qemu only load linux initrd, so change it to load both linux and Non-linux initrd Image. Signed-off-by: Dongjiu Geng --- hw/arm/boot.c | 45

  1   2   3   >