[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 18/18] hw/arm/virt: Disable LPA2 for -machine virt-6.2
From: |
Peter Maydell |
Subject: |
Re: [PATCH v4 18/18] hw/arm/virt: Disable LPA2 for -machine virt-6.2 |
Date: |
Fri, 4 Mar 2022 11:52:39 +0000 |
On Tue, 1 Mar 2022 at 22:00, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> There is a Linux kernel bug present until v5.12 that prevents
> booting with FEAT_LPA2 enabled. As a workaround for TCG,
> disable this feature for machine versions prior to 7.0.
>
> Cc: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/hw/arm/virt.h | 1 +
> hw/arm/virt.c | 7 +++++++
> 2 files changed, 8 insertions(+)
Is it not possible to implement this in the usual "change
property for older versioned machines" way of adding to
the hw_compat arrays?
diff --git a/hw/core/machine.c b/hw/core/machine.c
index d856485cb4d..dac82a709ba 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -37,7 +37,9 @@
#include "hw/virtio/virtio.h"
#include "hw/virtio/virtio-pci.h"
-GlobalProperty hw_compat_6_2[] = {};
+GlobalProperty hw_compat_6_2[] = {
+ { "arm-cpu-max", "lpa2", "false" },
+};
const size_t hw_compat_6_2_len = G_N_ELEMENTS(hw_compat_6_2);
GlobalProperty hw_compat_6_1[] = {
thanks
-- PMM
- [PATCH v4 12/18] target/arm: Introduce tlbi_aa64_get_range, (continued)
- [PATCH v4 12/18] target/arm: Introduce tlbi_aa64_get_range, Richard Henderson, 2022/03/01
- [PATCH v4 11/18] target/arm: Extend arm_fi_to_lfsc to level -1, Richard Henderson, 2022/03/01
- [PATCH v4 14/18] target/arm: Validate tlbi TG matches translation granule in use, Richard Henderson, 2022/03/01
- [PATCH v4 13/18] target/arm: Fix TLBIRange.base for 16k and 64k pages, Richard Henderson, 2022/03/01
- [PATCH v4 17/18] target/arm: Provide cpu property for controling FEAT_LPA2, Richard Henderson, 2022/03/01
- [PATCH v4 15/18] target/arm: Advertise all page sizes for -cpu max, Richard Henderson, 2022/03/01
- [PATCH v4 16/18] target/arm: Implement FEAT_LPA2, Richard Henderson, 2022/03/01
- [PATCH v4 18/18] hw/arm/virt: Disable LPA2 for -machine virt-6.2, Richard Henderson, 2022/03/01
- Re: [PATCH v4 18/18] hw/arm/virt: Disable LPA2 for -machine virt-6.2,
Peter Maydell <=
Re: [PATCH v4 00/18] target/arm: Implement LVA, LPA, LPA2 features, Peter Maydell, 2022/03/02