yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-target-arm-kvm64-kvm64-cpus-have-timer-registers.patch

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