[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/21] target/arm/kvm: Unexport kvm_arm_vcpu_init
From: |
Richard Henderson |
Subject: |
[PATCH 15/21] target/arm/kvm: Unexport kvm_arm_vcpu_init |
Date: |
Wed, 22 Nov 2023 22:42:13 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/kvm_arm.h | 12 ------------
target/arm/kvm.c | 12 +++++++++++-
2 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h
index 1043123cc7..b96ff35e34 100644
--- a/target/arm/kvm_arm.h
+++ b/target/arm/kvm_arm.h
@@ -18,18 +18,6 @@
#define KVM_ARM_VGIC_V2 (1 << 0)
#define KVM_ARM_VGIC_V3 (1 << 1)
-/**
- * kvm_arm_vcpu_init:
- * @cs: CPUState
- *
- * Initialize (or reinitialize) the VCPU by invoking the
- * KVM_ARM_VCPU_INIT ioctl with the CPU type and feature
- * bitmask specified in the CPUState.
- *
- * Returns: 0 if success else < 0 error code
- */
-int kvm_arm_vcpu_init(CPUState *cs);
-
/**
* kvm_arm_vcpu_finalize:
* @cs: CPUState
diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 466b848156..a864d0852f 100644
--- a/target/arm/kvm.c
+++ b/target/arm/kvm.c
@@ -58,7 +58,17 @@ typedef struct ARMHostCPUFeatures {
static ARMHostCPUFeatures arm_host_cpu_features;
-int kvm_arm_vcpu_init(CPUState *cs)
+/**
+ * kvm_arm_vcpu_init:
+ * @cs: CPUState
+ *
+ * Initialize (or reinitialize) the VCPU by invoking the
+ * KVM_ARM_VCPU_INIT ioctl with the CPU type and feature
+ * bitmask specified in the CPUState.
+ *
+ * Returns: 0 if success else < 0 error code
+ */
+static int kvm_arm_vcpu_init(CPUState *cs)
{
ARMCPU *cpu = ARM_CPU(cs);
struct kvm_vcpu_init init;
--
2.34.1
- Re: [PATCH 16/21] target/arm/kvm: Unexport kvm_arm_vcpu_finalize, (continued)
- [PATCH 13/21] target/arm/kvm: Move kvm_arm_reg_syncs_via_cpreg_list and unexport, Richard Henderson, 2023/11/22
- [PATCH 19/21] target/arm/kvm: Unexport kvm_{get,put}_vcpu_events, Richard Henderson, 2023/11/22
- [PATCH 20/21] target/arm/kvm: Unexport and tidy kvm_arm_sync_mpstate_to_{kvm, qemu}, Richard Henderson, 2023/11/22
- [PATCH 15/21] target/arm/kvm: Unexport kvm_arm_vcpu_init,
Richard Henderson <=
- [PATCH 21/21] target/arm/kvm: Unexport kvm_arm_vm_state_change, Richard Henderson, 2023/11/22
- [PATCH 18/21] target/arm/kvm: Init cap_has_inject_serror_esr in kvm_arch_init, Richard Henderson, 2023/11/22
- Re: [PATCH for-9.0 00/21] target/arm: kvm cleanups, Philippe Mathieu-Daudé, 2023/11/23