[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 06/20] acpi/hvmloader: Collect processor and NUMA info in hvmloader



>>> On 06.04.16 at 03:25, <boris.ostrovsky@xxxxxxxxxx> wrote:
> @@ -485,6 +494,10 @@ struct acpi_config {
>          unsigned long acpi_pt_addr;
>          uint32_t acpi_pt_length;
>      } pt;
> +    uint32_t nr_vcpus;
> +    uint8_t  *vcpu_online;
> +    int apic_mode;

Instead of copying those fields, how about simply adding a pointer
to struct hvm_info_table here?

> +    struct acpi_numa numa;

Same for this one - perhaps better a pointer, and an instance of the
structure could then replace all those individual global variables.

> @@ -910,6 +911,16 @@ void hvmloader_acpi_build_tables(struct acpi_config 
> *config,
>      if ( !strncmp(xenstore_read("platform/acpi_s4", "1"), "1", 1)  )
>          config->table_flags |= ACPI_BUILD_SSDT_S4;
>  
> +    config->nr_vcpus = hvm_info->nr_vcpus;
> +    config->vcpu_online = hvm_info->vcpu_online;
> +    config->apic_mode = 1;

Why is this a hard coded 1? It was hvm_info->apic_mode before.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.