From: Haibo Xu <haibo.xu@linaro.org>
To: peter.maydell@linaro.org
Cc: drjones@redhat.com, qemu-arm@nongnu.org, philmd@redhat.com,
qemu-devel@nongnu.org, Haibo Xu <haibo.xu@linaro.org>
Subject: [PATCH 4/7] target/arm/kvm: spe: Unify device attr operatioin helper
Date: Fri, 7 Aug 2020 08:10:34 +0000 [thread overview]
Message-ID: <3cc31df5191ae6b03e060ccd8e82df74416a3ef5.1596768588.git.haibo.xu@linaro.org> (raw)
In-Reply-To: <cover.1596768588.git.haibo.xu@linaro.org>
Rename kvm_arm_pmu_set_attr() to kvm_arm_dev_set_attr(),
So both the vPMU and vSPE device can share the same API.
Signed-off-by: Haibo Xu <haibo.xu@linaro.org>
---
target/arm/kvm64.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
index 1169237905..75a417d65c 100644
--- a/target/arm/kvm64.c
+++ b/target/arm/kvm64.c
@@ -398,7 +398,7 @@ static CPUWatchpoint *find_hw_watchpoint(CPUState *cpu, target_ulong addr)
return NULL;
}
-static bool kvm_arm_pmu_set_attr(CPUState *cs, struct kvm_device_attr *attr)
+static bool kvm_arm_dev_set_attr(CPUState *cs, struct kvm_device_attr *attr)
{
int err;
@@ -427,7 +427,7 @@ void kvm_arm_pmu_init(CPUState *cs)
if (!ARM_CPU(cs)->has_pmu) {
return;
}
- if (!kvm_arm_pmu_set_attr(cs, &attr)) {
+ if (!kvm_arm_dev_set_attr(cs, &attr)) {
error_report("failed to init PMU");
abort();
}
@@ -444,7 +444,7 @@ void kvm_arm_pmu_set_irq(CPUState *cs, int irq)
if (!ARM_CPU(cs)->has_pmu) {
return;
}
- if (!kvm_arm_pmu_set_attr(cs, &attr)) {
+ if (!kvm_arm_dev_set_attr(cs, &attr)) {
error_report("failed to set irq for PMU");
abort();
}
--
2.17.1
next prev parent reply other threads:[~2020-08-07 8:13 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 8:10 [PATCH 0/7] target/arm: Add vSPE support to KVM guest Haibo Xu
2020-08-07 8:10 ` [PATCH 1/7] update Linux headers with new vSPE macros Haibo Xu
2020-08-07 8:10 ` [PATCH 2/7] target/arm/kvm: spe: Add helper to detect SPE when using KVM Haibo Xu
2020-08-14 19:16 ` Richard Henderson
2020-08-07 8:10 ` [PATCH 3/7] target/arm/cpu: spe: Add an option to turn on/off vSPE support Haibo Xu
2020-08-07 8:28 ` Philippe Mathieu-Daudé
2020-08-10 3:03 ` Haibo Xu
2020-08-10 10:14 ` Philippe Mathieu-Daudé
2020-08-10 10:50 ` Andrew Jones
2020-08-14 19:03 ` Richard Henderson
2020-08-14 19:15 ` Richard Henderson
2020-08-07 8:10 ` Haibo Xu [this message]
2020-08-07 8:19 ` [PATCH 4/7] target/arm/kvm: spe: Unify device attr operatioin helper Philippe Mathieu-Daudé
2020-08-10 2:48 ` Haibo Xu
2020-08-10 10:29 ` Andrew Jones
2020-08-11 1:13 ` Haibo Xu
2020-08-07 8:10 ` [PATCH 5/7] target/arm/kvm: spe: Add device init and set_irq operations Haibo Xu
2020-08-07 8:10 ` [PATCH 6/7] hw/arm/virt: spe: Add SPE fdt binding for virt machine Haibo Xu
2020-08-10 11:05 ` Andrew Jones
2020-08-11 2:38 ` Haibo Xu
2020-08-11 16:38 ` Andrew Jones
2020-08-12 0:42 ` Haibo Xu
2020-08-29 15:21 ` Auger Eric
2020-08-31 6:27 ` Haibo Xu
2020-08-07 8:10 ` [PATCH 7/7] target/arm/cpu: spe: Enable spe to work with host cpu Haibo Xu
2020-08-10 11:16 ` Andrew Jones
2020-08-11 3:15 ` Haibo Xu
2020-08-11 16:49 ` Andrew Jones
2020-08-12 0:54 ` Haibo Xu
2020-08-14 19:28 ` Richard Henderson
2020-08-15 7:17 ` Andrew Jones
2020-08-10 10:43 ` [PATCH 0/7] target/arm: Add vSPE support to KVM guest Andrew Jones
2020-08-31 7:56 ` Auger Eric
2020-09-01 2:26 ` Haibo Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3cc31df5191ae6b03e060ccd8e82df74416a3ef5.1596768588.git.haibo.xu@linaro.org \
--to=haibo.xu@linaro.org \
--cc=drjones@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.