|
|
22c213 |
From 2740a84fe798ade5c1ce725d65cdaffb255da47c Mon Sep 17 00:00:00 2001
|
|
|
22c213 |
From: Andrew Jones <drjones@redhat.com>
|
|
|
22c213 |
Date: Fri, 31 Jan 2020 14:23:11 +0000
|
|
|
22c213 |
Subject: [PATCH 09/15] target/arm/kvm64: kvm64 cpus have timer registers
|
|
|
22c213 |
MIME-Version: 1.0
|
|
|
22c213 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c213 |
Content-Transfer-Encoding: 8bit
|
|
|
22c213 |
|
|
|
22c213 |
RH-Author: Andrew Jones <drjones@redhat.com>
|
|
|
22c213 |
Message-id: <20200131142314.13175-3-drjones@redhat.com>
|
|
|
22c213 |
Patchwork-id: 93621
|
|
|
22c213 |
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH 2/5] target/arm/kvm64: kvm64 cpus have timer registers
|
|
|
22c213 |
Bugzilla: 1647366
|
|
|
22c213 |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
22c213 |
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
|
|
|
22c213 |
RH-Acked-by: Gavin Shan <gshan@redhat.com>
|
|
|
22c213 |
|
|
|
22c213 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1647366
|
|
|
22c213 |
|
|
|
22c213 |
Author: Andrew Jones <drjones@redhat.com>
|
|
|
22c213 |
Date: Thu, 30 Jan 2020 16:02:06 +0000
|
|
|
22c213 |
|
|
|
22c213 |
target/arm/kvm64: kvm64 cpus have timer registers
|
|
|
22c213 |
|
|
|
22c213 |
Add the missing GENERIC_TIMER feature to kvm64 cpus.
|
|
|
22c213 |
|
|
|
22c213 |
We don't currently use these registers when KVM is enabled, but it's
|
|
|
22c213 |
probably best we add the feature flag for consistency and potential
|
|
|
22c213 |
future use. There's also precedent, as we add the PMU feature flag to
|
|
|
22c213 |
KVM enabled guests, even though we don't use those registers either.
|
|
|
22c213 |
|
|
|
22c213 |
This change was originally posted as a hunk of a different, never
|
|
|
22c213 |
merged patch from Bijan Mottahedeh.
|
|
|
22c213 |
|
|
|
22c213 |
Signed-off-by: Andrew Jones <drjones@redhat.com>
|
|
|
22c213 |
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
|
|
|
22c213 |
Message-id: 20200120101023.16030-4-drjones@redhat.com
|
|
|
22c213 |
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
|
22c213 |
|
|
|
22c213 |
(cherry picked from commit 65caa415487f4a6e265105446c6ef8f56bb0aa70)
|
|
|
22c213 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
22c213 |
---
|
|
|
22c213 |
target/arm/kvm64.c | 1 +
|
|
|
22c213 |
1 file changed, 1 insertion(+)
|
|
|
22c213 |
|
|
|
22c213 |
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
|
|
|
22c213 |
index e2da756..666a81a 100644
|
|
|
22c213 |
--- a/target/arm/kvm64.c
|
|
|
22c213 |
+++ b/target/arm/kvm64.c
|
|
|
22c213 |
@@ -605,6 +605,7 @@ bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
|
|
|
22c213 |
set_feature(&features, ARM_FEATURE_NEON);
|
|
|
22c213 |
set_feature(&features, ARM_FEATURE_AARCH64);
|
|
|
22c213 |
set_feature(&features, ARM_FEATURE_PMU);
|
|
|
22c213 |
+ set_feature(&features, ARM_FEATURE_GENERIC_TIMER);
|
|
|
22c213 |
|
|
|
22c213 |
ahcf->features = features;
|
|
|
22c213 |
|
|
|
22c213 |
--
|
|
|
22c213 |
1.8.3.1
|
|
|
22c213 |
|