[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/43] target/arm/kvm: Unexport kvm_arm_{get, put}_virtual_time
From: |
Peter Maydell |
Subject: |
[PULL 08/43] target/arm/kvm: Unexport kvm_arm_{get, put}_virtual_time |
Date: |
Tue, 19 Dec 2023 19:12:32 +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 | 16 ----------------
target/arm/kvm.c | 16 ++++++++++++++--
2 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h
index 9fa9cb7f767..e7c32f6ed07 100644
--- a/target/arm/kvm_arm.h
+++ b/target/arm/kvm_arm.h
@@ -335,22 +335,6 @@ int kvm_arm_sync_mpstate_to_kvm(ARMCPU *cpu);
*/
int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu);
-/**
- * kvm_arm_get_virtual_time:
- * @cs: CPUState
- *
- * Gets the VCPU's virtual counter and stores it in the KVM CPU state.
- */
-void kvm_arm_get_virtual_time(CPUState *cs);
-
-/**
- * kvm_arm_put_virtual_time:
- * @cs: CPUState
- *
- * Sets the VCPU's virtual counter to the value stored in the KVM CPU state.
- */
-void kvm_arm_put_virtual_time(CPUState *cs);
-
void kvm_arm_vm_state_change(void *opaque, bool running, RunState state);
int kvm_arm_vgic_probe(void);
diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 55e1b4f26e9..84f300c602b 100644
--- a/target/arm/kvm.c
+++ b/target/arm/kvm.c
@@ -704,7 +704,13 @@ int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu)
return 0;
}
-void kvm_arm_get_virtual_time(CPUState *cs)
+/**
+ * kvm_arm_get_virtual_time:
+ * @cs: CPUState
+ *
+ * Gets the VCPU's virtual counter and stores it in the KVM CPU state.
+ */
+static void kvm_arm_get_virtual_time(CPUState *cs)
{
ARMCPU *cpu = ARM_CPU(cs);
int ret;
@@ -722,7 +728,13 @@ void kvm_arm_get_virtual_time(CPUState *cs)
cpu->kvm_vtime_dirty = true;
}
-void kvm_arm_put_virtual_time(CPUState *cs)
+/**
+ * kvm_arm_put_virtual_time:
+ * @cs: CPUState
+ *
+ * Sets the VCPU's virtual counter to the value stored in the KVM CPU state.
+ */
+static void kvm_arm_put_virtual_time(CPUState *cs)
{
ARMCPU *cpu = ARM_CPU(cs);
int ret;
--
2.34.1
- [PULL 02/43] target/arm: kvm64: remove a redundant KVM_CAP_SET_GUEST_DEBUG probe, (continued)
- [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, 2023/12/19
- [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 <=
- [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
- [PULL 17/43] target/arm/kvm: Unexport kvm_arm_init_cpreg_list, Peter Maydell, 2023/12/19
- [PULL 20/43] target/arm/kvm: Unexport and tidy kvm_arm_sync_mpstate_to_{kvm, qemu}, Peter Maydell, 2023/12/19
- [PULL 18/43] target/arm/kvm: Init cap_has_inject_serror_esr in kvm_arch_init, Peter Maydell, 2023/12/19
- [PULL 27/43] target/arm/kvm: Have kvm_arm_set_device_attr take a ARMCPU argument, Peter Maydell, 2023/12/19
- [PULL 16/43] target/arm/kvm: Unexport kvm_arm_vcpu_finalize, Peter Maydell, 2023/12/19