[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/02/2016 10:05 AM, Jan Beulich wrote: >>>> 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. I think that's because hvm_info is initialized in libxl very late, after ACPI is already set. Let me see whether there was a reason for this order and if there wasn't then yes, I can point to hvm_info. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |