[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] i386/cpu: add IsDefined flag to smp-cache property
From: |
Jonathan Cameron |
Subject: |
Re: [PATCH 2/5] i386/cpu: add IsDefined flag to smp-cache property |
Date: |
Fri, 13 Sep 2024 11:21:28 +0100 |
On Thu, 12 Sep 2024 14:38:26 +0100
Alireza Sanaee <alireza.sanaee@huawei.com> wrote:
> This commit adds IsDefined flag to the object and this helps in avoiding
> extra checks for every single layer of caches in both x86 and ARM.
Hi Ali,
You mention x86 here, but no code changes to support that?
Jonathan
>
> Signed-off-by: Alireza Sanaee <alireza.sanaee@huawei.com>
> ---
> hw/core/machine-smp.c | 2 ++
> include/hw/boards.h | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/hw/core/machine-smp.c b/hw/core/machine-smp.c
> index 9a28194676..5a02bbf584 100644
> --- a/hw/core/machine-smp.c
> +++ b/hw/core/machine-smp.c
> @@ -371,6 +371,8 @@ bool machine_parse_smp_cache(MachineState *ms,
> return false;
> }
>
> + ms->smp_cache.IsDefined = true;
> +
> return true;
> }
>
> diff --git a/include/hw/boards.h b/include/hw/boards.h
> index db2aa2b706..2883a57084 100644
> --- a/include/hw/boards.h
> +++ b/include/hw/boards.h
> @@ -373,6 +373,7 @@ typedef struct CpuTopology {
>
> typedef struct SmpCache {
> SmpCacheProperties props[CACHE_LEVEL_AND_TYPE__MAX];
> + bool IsDefined;
> } SmpCache;
>
> /**
- [RFC PATCH 0/5] Specifying cache topology on ARM, Alireza Sanaee, 2024/09/12
- [PATCH 1/5] bios-tables-test: prepare to change ARM ACPI virt PPTT, Alireza Sanaee, 2024/09/12
- [PATCH 2/5] i386/cpu: add IsDefined flag to smp-cache property, Alireza Sanaee, 2024/09/12
- Re: [PATCH 2/5] i386/cpu: add IsDefined flag to smp-cache property,
Jonathan Cameron <=
- [PATCH 3/5] target/arm/tcg: increase cache level for cpu=max, Alireza Sanaee, 2024/09/12
- [PATCH 4/5] hw/acpi: add cache hierarchy node to pptt table, Alireza Sanaee, 2024/09/12
- [PATCH 5/5] tests/acpi/arm/virt/PPTT: update golden masters for PPTT update, Alireza Sanaee, 2024/09/12