[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/43] target/arm/kvm: Move kvm_arm_hw_debug_active and unexport
From: |
Peter Maydell |
Subject: |
[PULL 06/43] target/arm/kvm: Move kvm_arm_hw_debug_active and unexport |
Date: |
Tue, 19 Dec 2023 19:12:30 +0000 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/kvm_arm.h | 8 --------
target/arm/kvm.c | 11 +++++++++++
target/arm/kvm64.c | 5 -----
3 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h
index 207b7f21b0a..ac4856cb46e 100644
--- a/target/arm/kvm_arm.h
+++ b/target/arm/kvm_arm.h
@@ -454,12 +454,4 @@ static inline uint32_t kvm_arm_sve_get_vls(CPUState *cs)
*/
bool kvm_arm_handle_debug(CPUState *cs, struct kvm_debug_exit_arch
*debug_exit);
-/**
- * kvm_arm_hw_debug_active:
- * @cs: CPU State
- *
- * Return: TRUE if any hardware breakpoints in use.
- */
-bool kvm_arm_hw_debug_active(CPUState *cs);
-
#endif
diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 2898e680fc5..4608bea7df4 100644
--- a/target/arm/kvm.c
+++ b/target/arm/kvm.c
@@ -1021,6 +1021,17 @@ int kvm_arch_process_async_events(CPUState *cs)
return 0;
}
+/**
+ * kvm_arm_hw_debug_active:
+ * @cs: CPU State
+ *
+ * Return: TRUE if any hardware breakpoints in use.
+ */
+static bool kvm_arm_hw_debug_active(CPUState *cs)
+{
+ return ((cur_hw_wps > 0) || (cur_hw_bps > 0));
+}
+
/**
* kvm_arm_copy_hw_debug_data:
* @ptr: kvm_guest_debug_arch structure
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
index ac3120adaff..352643e0665 100644
--- a/target/arm/kvm64.c
+++ b/target/arm/kvm64.c
@@ -73,11 +73,6 @@ void kvm_arch_remove_all_hw_breakpoints(void)
}
}
-bool kvm_arm_hw_debug_active(CPUState *cs)
-{
- return ((cur_hw_wps > 0) || (cur_hw_bps > 0));
-}
-
static bool kvm_arm_set_device_attr(CPUState *cs, struct kvm_device_attr *attr,
const char *name)
{
--
2.34.1
- [PULL 00/43] target-arm queue, Peter Maydell, 2023/12/19
- [PULL 02/43] target/arm: kvm64: remove a redundant KVM_CAP_SET_GUEST_DEBUG probe, Peter Maydell, 2023/12/19
- [PULL 04/43] target/arm/kvm: Move kvm_arm_verify_ext_dabt_pending and unexport, Peter Maydell, 2023/12/19
- [PULL 03/43] target/arm/kvm: Merge kvm_arm_init_debug into kvm_arch_init, Peter Maydell, 2023/12/19
- [PULL 05/43] target/arm/kvm: Move kvm_arm_copy_hw_debug_data and unexport, Peter Maydell, 2023/12/19
- [PULL 01/43] accel/kvm: Make kvm_has_guest_debug static, Peter Maydell, 2023/12/19
- [PULL 06/43] target/arm/kvm: Move kvm_arm_hw_debug_active and unexport,
Peter Maydell <=
- [PULL 09/43] target/arm/kvm: Inline kvm_arm_steal_time_supported, Peter Maydell, 2023/12/19
- [PULL 11/43] target/arm/kvm: Use a switch for kvm_arm_cpreg_level, Peter Maydell, 2023/12/19
- [PULL 13/43] target/arm/kvm: Move kvm_arm_reg_syncs_via_cpreg_list and unexport, Peter Maydell, 2023/12/19
- [PULL 15/43] target/arm/kvm: Unexport kvm_arm_vcpu_init, Peter Maydell, 2023/12/19
- [PULL 08/43] target/arm/kvm: Unexport kvm_arm_{get, put}_virtual_time, Peter Maydell, 2023/12/19
- [PULL 07/43] target/arm/kvm: Move kvm_arm_handle_debug and unexport, Peter Maydell, 2023/12/19
- [PULL 12/43] target/arm/kvm: Move kvm_arm_cpreg_level and unexport, Peter Maydell, 2023/12/19
- [PULL 10/43] target/arm/kvm: Move kvm_arm_get_host_cpu_features and unexport, Peter Maydell, 2023/12/19
- [PULL 19/43] target/arm/kvm: Unexport kvm_{get,put}_vcpu_events, Peter Maydell, 2023/12/19
- [PULL 23/43] target/arm/kvm: Remove unused includes, Peter Maydell, 2023/12/19