Skip to content

Commit

Permalink
target/arm/kvm: Unexport kvm_arm_vcpu_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 authored and pm215 committed Dec 19, 2023
1 parent de3c960 commit 5a8a601
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
12 changes: 11 additions & 1 deletion target/arm/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,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;
Expand Down
12 changes: 0 additions & 12 deletions target/arm/kvm_arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a8a601

Please sign in to comment.