|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v13 5/5] xen/acpi: Do not pass ACPI PPTT to Dom0
On 30-Nov-26 07:57, Hirokazu Takahashi wrote:
> The PPTT received by Xen shows the topology of the physical CPUs,
> rather than the vCPUs used by Dom0. Leave topology-aware
> scheduling to Xen.
>
> Signed-off-by: Hirokazu Takahashi <taka@xxxxxxxxxxxxx>
> ---
> Changes in v13:
> - Do not pass ACPI PPTT to Dom0, as PPTT does not represent the
> topology of Dom0 vCPUs.
>
> xen/arch/arm/acpi/domain_build.c | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
>
> diff --git a/xen/arch/arm/acpi/domain_build.c
> b/xen/arch/arm/acpi/domain_build.c
> index db16f7fa94..89c69e647d 100644
> --- a/xen/arch/arm/acpi/domain_build.c
> +++ b/xen/arch/arm/acpi/domain_build.c
> @@ -263,6 +263,34 @@ static void __init acpi_xsdt_modify_entry(u64 entry[],
> }
> }
>
> +static bool __init acpi_xsdt_remove_entry(u64 entry[],
> + unsigned long *entry_count,
> + const char *signature)
> +{
> + unsigned long i;
> + struct acpi_table_header *table;
> + u64 size = sizeof(*table);
> +
> + for ( i = 0; i < *entry_count; i++ )
> + {
> + table = acpi_os_map_memory(entry[i], size);
> + if ( !table )
> + continue;
> +
> + if ( ACPI_COMPARE_NAME(table->signature, signature) )
> + {
> + acpi_os_unmap_memory(table, size);
> + memmove(&entry[i], &entry[i + 1],
> + (*entry_count - i - 1) * sizeof(u64));
> + (*entry_count)--;
> + return true;
> + }
> + acpi_os_unmap_memory(table, size);
> + }
> +
> + return false;
> +}
> +
> static int __init acpi_create_xsdt(struct domain *d, struct membank
> tbl_add[])
> {
> struct acpi_table_header *table = NULL;
> @@ -298,6 +326,9 @@ static int __init acpi_create_xsdt(struct domain *d,
> struct membank tbl_add[])
> ACPI_SIG_FADT, tbl_add[TBL_FADT].start);
> acpi_xsdt_modify_entry(xsdt->table_offset_entry, entry_count,
> ACPI_SIG_MADT, tbl_add[TBL_MADT].start);
> + if ( acpi_xsdt_remove_entry(xsdt->table_offset_entry, &entry_count,
> + "PPTT") )
ACPI_SIG_PPTT
This patch can go in as a standalone change.
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
~Michal
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |