[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/5] target/arm: Do not allow setting 'pmu' for hvf
From: |
Akihiko Odaki |
Subject: |
[PATCH v2 3/5] target/arm: Do not allow setting 'pmu' for hvf |
Date: |
Tue, 16 Jul 2024 17:28:15 +0900 |
hvf currently does not support PMU.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
target/arm/cpu.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 8c180c679ce2..9e1d15701468 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1603,6 +1603,10 @@ static void arm_set_pmu(Object *obj, bool value, Error
**errp)
}
if (value) {
+ if (hvf_enabled()) {
+ error_setg(errp, "'pmu' feature not suported by hvf");
+ return;
+ }
if (kvm_enabled() && !kvm_arm_pmu_supported()) {
error_setg(errp, "'pmu' feature not supported by KVM on this
host");
return;
--
2.45.2