|
|
ddf19c |
From 11cb9cb7b1b56d5c9723e9c50bc2903281893bcc Mon Sep 17 00:00:00 2001
|
|
|
ddf19c |
From: Andrew Jones <drjones@redhat.com>
|
|
|
ddf19c |
Date: Fri, 31 Jan 2020 14:23:10 +0000
|
|
|
ddf19c |
Subject: [PATCH 08/15] target/arm/kvm: trivial: Clean up header documentation
|
|
|
ddf19c |
MIME-Version: 1.0
|
|
|
ddf19c |
Content-Type: text/plain; charset=UTF-8
|
|
|
ddf19c |
Content-Transfer-Encoding: 8bit
|
|
|
ddf19c |
|
|
|
ddf19c |
RH-Author: Andrew Jones <drjones@redhat.com>
|
|
|
ddf19c |
Message-id: <20200131142314.13175-2-drjones@redhat.com>
|
|
|
ddf19c |
Patchwork-id: 93625
|
|
|
ddf19c |
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH 1/5] target/arm/kvm: trivial: Clean up header documentation
|
|
|
ddf19c |
Bugzilla: 1647366
|
|
|
ddf19c |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Gavin Shan <gshan@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1647366
|
|
|
ddf19c |
|
|
|
ddf19c |
Author: Andrew Jones <drjones@redhat.com>
|
|
|
ddf19c |
Date: Thu, 30 Jan 2020 16:02:05 +0000
|
|
|
ddf19c |
|
|
|
ddf19c |
target/arm/kvm: trivial: Clean up header documentation
|
|
|
ddf19c |
|
|
|
ddf19c |
Signed-off-by: Andrew Jones <drjones@redhat.com>
|
|
|
ddf19c |
Message-id: 20200120101023.16030-2-drjones@redhat.com
|
|
|
ddf19c |
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
|
|
ddf19c |
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
|
ddf19c |
|
|
|
ddf19c |
(cherry picked from commit d1ebbc9d16297b54b153ee33abe05eb4f1df0c66)
|
|
|
ddf19c |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
ddf19c |
---
|
|
|
ddf19c |
target/arm/kvm_arm.h | 46 +++++++++++++++++++++++++++-------------------
|
|
|
ddf19c |
1 file changed, 27 insertions(+), 19 deletions(-)
|
|
|
ddf19c |
|
|
|
ddf19c |
diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h
|
|
|
ddf19c |
index 8e14d40..b48a9c9 100644
|
|
|
ddf19c |
--- a/target/arm/kvm_arm.h
|
|
|
ddf19c |
+++ b/target/arm/kvm_arm.h
|
|
|
ddf19c |
@@ -28,9 +28,9 @@
|
|
|
ddf19c |
int kvm_arm_vcpu_init(CPUState *cs);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_vcpu_finalize
|
|
|
ddf19c |
+ * kvm_arm_vcpu_finalize:
|
|
|
ddf19c |
* @cs: CPUState
|
|
|
ddf19c |
- * @feature: int
|
|
|
ddf19c |
+ * @feature: feature to finalize
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Finalizes the configuration of the specified VCPU feature by
|
|
|
ddf19c |
* invoking the KVM_ARM_VCPU_FINALIZE ioctl. Features requiring
|
|
|
ddf19c |
@@ -75,8 +75,8 @@ void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid, uint64_t group,
|
|
|
ddf19c |
int kvm_arm_init_cpreg_list(ARMCPU *cpu);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_reg_syncs_via_cpreg_list
|
|
|
ddf19c |
- * regidx: KVM register index
|
|
|
ddf19c |
+ * kvm_arm_reg_syncs_via_cpreg_list:
|
|
|
ddf19c |
+ * @regidx: KVM register index
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Return true if this KVM register should be synchronized via the
|
|
|
ddf19c |
* cpreg list of arbitrary system registers, false if it is synchronized
|
|
|
ddf19c |
@@ -85,8 +85,8 @@ int kvm_arm_init_cpreg_list(ARMCPU *cpu);
|
|
|
ddf19c |
bool kvm_arm_reg_syncs_via_cpreg_list(uint64_t regidx);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_cpreg_level
|
|
|
ddf19c |
- * regidx: KVM register index
|
|
|
ddf19c |
+ * kvm_arm_cpreg_level:
|
|
|
ddf19c |
+ * @regidx: KVM register index
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Return the level of this coprocessor/system register. Return value is
|
|
|
ddf19c |
* either KVM_PUT_RUNTIME_STATE, KVM_PUT_RESET_STATE, or KVM_PUT_FULL_STATE.
|
|
|
ddf19c |
@@ -148,6 +148,8 @@ void kvm_arm_init_serror_injection(CPUState *cs);
|
|
|
ddf19c |
* @cpu: ARMCPU
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Get VCPU related state from kvm.
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns: 0 if success else < 0 error code
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
int kvm_get_vcpu_events(ARMCPU *cpu);
|
|
|
ddf19c |
|
|
|
ddf19c |
@@ -156,6 +158,8 @@ int kvm_get_vcpu_events(ARMCPU *cpu);
|
|
|
ddf19c |
* @cpu: ARMCPU
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Put VCPU related state to kvm.
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns: 0 if success else < 0 error code
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
int kvm_put_vcpu_events(ARMCPU *cpu);
|
|
|
ddf19c |
|
|
|
ddf19c |
@@ -205,10 +209,12 @@ typedef struct ARMHostCPUFeatures {
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
* kvm_arm_get_host_cpu_features:
|
|
|
ddf19c |
- * @ahcc: ARMHostCPUClass to fill in
|
|
|
ddf19c |
+ * @ahcf: ARMHostCPUClass to fill in
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Probe the capabilities of the host kernel's preferred CPU and fill
|
|
|
ddf19c |
* in the ARMHostCPUClass struct accordingly.
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns true on success and false otherwise.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf);
|
|
|
ddf19c |
|
|
|
ddf19c |
@@ -242,7 +248,7 @@ void kvm_arm_set_cpu_features_from_host(ARMCPU *cpu);
|
|
|
ddf19c |
bool kvm_arm_aarch32_supported(CPUState *cs);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * bool kvm_arm_pmu_supported:
|
|
|
ddf19c |
+ * kvm_arm_pmu_supported:
|
|
|
ddf19c |
* @cs: CPUState
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Returns: true if the KVM VCPU can enable its PMU
|
|
|
ddf19c |
@@ -251,7 +257,7 @@ bool kvm_arm_aarch32_supported(CPUState *cs);
|
|
|
ddf19c |
bool kvm_arm_pmu_supported(CPUState *cs);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * bool kvm_arm_sve_supported:
|
|
|
ddf19c |
+ * kvm_arm_sve_supported:
|
|
|
ddf19c |
* @cs: CPUState
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Returns true if the KVM VCPU can enable SVE and false otherwise.
|
|
|
ddf19c |
@@ -259,26 +265,30 @@ bool kvm_arm_pmu_supported(CPUState *cs);
|
|
|
ddf19c |
bool kvm_arm_sve_supported(CPUState *cs);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_get_max_vm_ipa_size - Returns the number of bits in the
|
|
|
ddf19c |
- * IPA address space supported by KVM
|
|
|
ddf19c |
- *
|
|
|
ddf19c |
+ * kvm_arm_get_max_vm_ipa_size:
|
|
|
ddf19c |
* @ms: Machine state handle
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns the number of bits in the IPA address space supported by KVM
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
int kvm_arm_get_max_vm_ipa_size(MachineState *ms);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_sync_mpstate_to_kvm
|
|
|
ddf19c |
+ * kvm_arm_sync_mpstate_to_kvm:
|
|
|
ddf19c |
* @cpu: ARMCPU
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* If supported set the KVM MP_STATE based on QEMU's model.
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns 0 on success and -1 on failure.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
int kvm_arm_sync_mpstate_to_kvm(ARMCPU *cpu);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * kvm_arm_sync_mpstate_to_qemu
|
|
|
ddf19c |
+ * kvm_arm_sync_mpstate_to_qemu:
|
|
|
ddf19c |
* @cpu: ARMCPU
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* If supported get the MP_STATE from KVM and store in QEMU's model.
|
|
|
ddf19c |
+ *
|
|
|
ddf19c |
+ * Returns 0 on success and aborts on failure.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu);
|
|
|
ddf19c |
|
|
|
ddf19c |
@@ -292,7 +302,8 @@ int kvm_arm_set_irq(int cpu, int irqtype, int irq, int level);
|
|
|
ddf19c |
|
|
|
ddf19c |
static inline void kvm_arm_set_cpu_features_from_host(ARMCPU *cpu)
|
|
|
ddf19c |
{
|
|
|
ddf19c |
- /* This should never actually be called in the "not KVM" case,
|
|
|
ddf19c |
+ /*
|
|
|
ddf19c |
+ * This should never actually be called in the "not KVM" case,
|
|
|
ddf19c |
* but set up the fields to indicate an error anyway.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
cpu->kvm_target = QEMU_KVM_ARM_TARGET_NONE;
|
|
|
ddf19c |
@@ -377,23 +388,20 @@ bool kvm_arm_handle_debug(CPUState *cs, struct kvm_debug_exit_arch *debug_exit);
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Return: TRUE if any hardware breakpoints in use.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
-
|
|
|
ddf19c |
bool kvm_arm_hw_debug_active(CPUState *cs);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
* kvm_arm_copy_hw_debug_data:
|
|
|
ddf19c |
- *
|
|
|
ddf19c |
* @ptr: kvm_guest_debug_arch structure
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Copy the architecture specific debug registers into the
|
|
|
ddf19c |
* kvm_guest_debug ioctl structure.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
struct kvm_guest_debug_arch;
|
|
|
ddf19c |
-
|
|
|
ddf19c |
void kvm_arm_copy_hw_debug_data(struct kvm_guest_debug_arch *ptr);
|
|
|
ddf19c |
|
|
|
ddf19c |
/**
|
|
|
ddf19c |
- * its_class_name
|
|
|
ddf19c |
+ * its_class_name:
|
|
|
ddf19c |
*
|
|
|
ddf19c |
* Return the ITS class name to use depending on whether KVM acceleration
|
|
|
ddf19c |
* and KVM CAP_SIGNAL_MSI are supported
|
|
|
ddf19c |
--
|
|
|
ddf19c |
1.8.3.1
|
|
|
ddf19c |
|