[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 03/23] spapr: Consider max_cpus during xics i
From: |
Bharata B Rao |
Subject: |
[Qemu-devel] [RFC PATCH v2 03/23] spapr: Consider max_cpus during xics initialization |
Date: |
Mon, 23 Mar 2015 19:05:44 +0530 |
Use max_cpus instead of smp_cpus when intializating xics system. Also
report max_cpus in ibm,interrupt-server-ranges device tree property of
interrupt controller node.
Signed-off-by: Bharata B Rao <address@hidden>
Reviewed-by: David Gibson <address@hidden>
---
hw/ppc/spapr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 920e650..3b26ede 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -347,7 +347,7 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
GString *hypertas = g_string_sized_new(256);
GString *qemu_hypertas = g_string_sized_new(256);
uint32_t refpoints[] = {cpu_to_be32(0x4), cpu_to_be32(0x4)};
- uint32_t interrupt_server_ranges_prop[] = {0, cpu_to_be32(smp_cpus)};
+ uint32_t interrupt_server_ranges_prop[] = {0, cpu_to_be32(max_cpus)};
int smt = kvmppc_smt_threads();
unsigned char vec5[] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x80};
QemuOpts *opts = qemu_opts_find(qemu_find_opts("smp-opts"), NULL);
@@ -1495,7 +1495,7 @@ static void ppc_spapr_init(MachineState *machine)
}
/* Set up Interrupt Controller before we create the VCPUs */
- spapr->icp = xics_system_init(smp_cpus * kvmppc_smt_threads() /
smp_threads,
+ spapr->icp = xics_system_init(max_cpus * kvmppc_smt_threads() /
smp_threads,
XICS_IRQS);
/* init CPUs */
--
2.1.0
- [Qemu-devel] [RFC PATCH v2 00/23] CPU and Memory hotplug for PowerPC sPAPR guests, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 02/23] spapr: Add DRC dt entries for CPUs, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 01/23] spapr: enable PHB/CPU/LMB hotplug for pseries-2.3, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 05/23] spapr: Reorganize CPU dt generation code, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 04/23] spapr: Support ibm, lrdr-capacity device tree property, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 03/23] spapr: Consider max_cpus during xics initialization,
Bharata B Rao <=
- [Qemu-devel] [RFC PATCH v2 06/23] spapr: Consolidate cpu init code into a routine, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 07/23] cpu: Prepare Socket container type, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 08/23] ppc: Prepare CPU socket/core abstraction, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 10/23] ppc: Update cpu_model in MachineState, Bharata B Rao, 2015/03/23
- [Qemu-devel] [RFC PATCH v2 12/23] spapr: CPU hotplug support, Bharata B Rao, 2015/03/23