* [PATCH_V2 1/2] Adding ifdefs to call the respective routines only when their configs are enabled
@ 2021-05-25 2:33 Swetha Joshi
2021-05-25 2:33 ` [PATCH_V2 2/2] Removed double declaration Swetha Joshi
0 siblings, 1 reply; 2+ messages in thread
From: Swetha Joshi @ 2021-05-25 2:33 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Swetha
From: Swetha <swjoshi@microsoft.com>
Signed-off-by: Swetha <swjoshi@microsoft.com>
---
target/arm/kvm64.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
index dff85f6db9..724ce78265 100644
--- a/target/arm/kvm64.c
+++ b/target/arm/kvm64.c
@@ -1403,7 +1403,10 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)
hwaddr paddr;
Object *obj = qdev_get_machine();
VirtMachineState *vms = VIRT_MACHINE(obj);
+ bool acpi_enabled = false;
+#ifdef CONFIG_ARM_VIRT
bool acpi_enabled = virt_is_acpi_enabled(vms);
+ #endif /* CONFIG_ARM_VIRT */
assert(code == BUS_MCEERR_AR || code == BUS_MCEERR_AO);
@@ -1426,12 +1429,13 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)
*/
if (code == BUS_MCEERR_AR) {
kvm_cpu_synchronize_state(c);
- if (!acpi_ghes_record_errors(ACPI_HEST_SRC_ID_SEA, paddr)) {
- kvm_inject_arm_sea(c);
- } else {
- error_report("failed to record the error");
- abort();
+#ifdef CONFIG_ACPI_APEI
+ if (acpi_ghes_record_errors(ACPI_HEST_SRC_ID_SEA, paddr)) {
+ error_report("failed to record the error");
+ abort();
}
+#endif /* CONFIG_ACPI_APEI */
+ kvm_inject_arm_sea(c);
}
return;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH_V2 2/2] Removed double declaration
2021-05-25 2:33 [PATCH_V2 1/2] Adding ifdefs to call the respective routines only when their configs are enabled Swetha Joshi
@ 2021-05-25 2:33 ` Swetha Joshi
0 siblings, 0 replies; 2+ messages in thread
From: Swetha Joshi @ 2021-05-25 2:33 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Swetha Joshi
---
target/arm/kvm64.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
index 724ce78265..47a4d9d831 100644
--- a/target/arm/kvm64.c
+++ b/target/arm/kvm64.c
@@ -1405,8 +1405,8 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)
VirtMachineState *vms = VIRT_MACHINE(obj);
bool acpi_enabled = false;
#ifdef CONFIG_ARM_VIRT
- bool acpi_enabled = virt_is_acpi_enabled(vms);
- #endif /* CONFIG_ARM_VIRT */
+ acpi_enabled = virt_is_acpi_enabled(vms);
+#endif /* CONFIG_ARM_VIRT */
assert(code == BUS_MCEERR_AR || code == BUS_MCEERR_AO);
@@ -1431,8 +1431,8 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)
kvm_cpu_synchronize_state(c);
#ifdef CONFIG_ACPI_APEI
if (acpi_ghes_record_errors(ACPI_HEST_SRC_ID_SEA, paddr)) {
- error_report("failed to record the error");
- abort();
+ error_report("failed to record the error");
+ abort();
}
#endif /* CONFIG_ACPI_APEI */
kvm_inject_arm_sea(c);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-25 2:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-25 2:33 [PATCH_V2 1/2] Adding ifdefs to call the respective routines only when their configs are enabled Swetha Joshi
2021-05-25 2:33 ` [PATCH_V2 2/2] Removed double declaration Swetha Joshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).