[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 12/25] spapr: SPLPAR Characteristics
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 12/25] spapr: SPLPAR Characteristics |
Date: |
Thu, 3 Sep 2015 14:28:03 +1000 |
From: Sam Bobroff <address@hidden>
Improve the SPLPAR Characteristics information:
Add MaxPlatProcs: set to max_cpus, the maximum CPUs that could be
addded to the system.
Add DesMem: set to the initial memory of the system.
Add DesProcs: set to smp_cpus, the inital number of CPUs in the
system.
These tokens and values are specified by PAPR.
Signed-off-by: Sam Bobroff <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr_rtas.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c
index 2986f94..e99e25f 100644
--- a/hw/ppc/spapr_rtas.c
+++ b/hw/ppc/spapr_rtas.c
@@ -34,6 +34,7 @@
#include "hw/ppc/spapr.h"
#include "hw/ppc/spapr_vio.h"
#include "qapi-event.h"
+#include "hw/boards.h"
#include <libfdt.h>
#include "hw/ppc/spapr_drc.h"
@@ -240,8 +241,14 @@ static void rtas_ibm_get_system_parameter(PowerPCCPU *cpu,
switch (parameter) {
case RTAS_SYSPARM_SPLPAR_CHARACTERISTICS: {
- char *param_val = g_strdup_printf("MaxEntCap=%d,MaxPlatProcs=%d",
- max_cpus, smp_cpus);
+ char *param_val = g_strdup_printf("MaxEntCap=%d,"
+ "DesMem=%llu,"
+ "DesProcs=%d,"
+ "MaxPlatProcs=%d",
+ max_cpus,
+ current_machine->ram_size / M_BYTE,
+ smp_cpus,
+ max_cpus);
rtas_st_buffer(buffer, length, (uint8_t *)param_val,
strlen(param_val));
g_free(param_val);
break;
--
2.4.3
- [Qemu-ppc] [PATCH 00/25] sPAPR (pseries) patch backlog 2015-00-03, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 01/25] spapr: Provide an error message when migration fails due to htab_shift mismatch, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 11/25] spapr: Make ibm, change-msi respect 3 return values, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 06/25] spapr: Make hash table size a factor of maxram_size, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 10/25] spapr: Add /rtas/ibm,change-msix-capable, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 13/25] spapr_drc: Fix potential undefined behaviour, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 02/25] spapr: Create pseries-2.5 machine, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 12/25] spapr: SPLPAR Characteristics,
David Gibson <=
- [Qemu-ppc] [PATCH 14/25] spapr: add dumpdtb support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 04/25] spapr: Add LMB DR connectors, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 22/25] spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 03/25] spapr: Initialize hotplug memory address space, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 07/25] spapr: Memory hotplug support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 08/25] spapr: Don't allow memory hotplug to memory less nodes, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 09/25] spapr: Add /ibm,partition-name, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 17/25] spapr: Provide better error message when slots exceed max allowed, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 20/25] spapr: Support hotplug by specifying DRC count, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 16/25] spapr: Use QEMU limit for maximum CPUs number, David Gibson, 2015/09/03