On 21/10/2024 4:45 pm, Alejandro Vallejo wrote:
> diff --git a/tools/include/xenguest.h b/tools/include/xenguest.h
> index e01f494b772a..aa50b78dfb89 100644
> --- a/tools/include/xenguest.h
> +++ b/tools/include/xenguest.h
> @@ -22,6 +22,8 @@
> #ifndef XENGUEST_H
> #define XENGUEST_H
>
> +#include "xen/hvm/hvm_info_table.h"
> +
> #define XC_NUMA_NO_NODE (~0U)
>
> #define XCFLAGS_LIVE (1 << 0)
> @@ -236,6 +238,9 @@ struct xc_dom_image {
> #if defined(__i386__) || defined(__x86_64__)
> struct e820entry *e820;
> unsigned int e820_entries;
> +
> + /* LUT mapping cpu id to (x2)APIC ID */
> + uint32_t cpu_to_apicid[HVM_MAX_VCPUS];
Same note as the previous patch.
This needs to be a plain dynamically allocated array, because it mustn't
use HVM_MAX_VCPUS.
~Andrew