[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 4/4] spapr: SPLPAR Characteristics
From: |
Bharata B Rao |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 4/4] spapr: SPLPAR Characteristics |
Date: |
Fri, 3 Jul 2015 11:40:33 +0530 |
On Fri, Jul 3, 2015 at 9:12 AM, Sam Bobroff <address@hidden> wrote:
> 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>
> ---
> 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 0f1ae55..a08254b 100644
> --- a/hw/ppc/spapr_rtas.c
> +++ b/hw/ppc/spapr_rtas.c
> @@ -33,6 +33,7 @@
> #include "hw/ppc/spapr.h"
> #include "hw/ppc/spapr_vio.h"
> #include "qapi-event.h"
> +#include "hw/boards.h"
>
> #include <libfdt.h>
>
> @@ -190,8 +191,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=%lu,"
> + "DesProcs=%d,"
> + "MaxPlatProcs=%d",
> + max_cpus,
> + current_machine->ram_size / 1024 /
> 1024,
May be you could use M_BYTE definition from qemu-common.h ?
Regards,
Bharata.
- [Qemu-ppc] [PATCH 0/4] spapr: Small PAPR compliance fixes, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 4/4] spapr: SPLPAR Characteristics, Sam Bobroff, 2015/07/02
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 4/4] spapr: SPLPAR Characteristics,
Bharata B Rao <=
- [Qemu-ppc] [PATCH 3/4] spapr: Make ibm, change-msi respect 3 return values, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 1/4] spapr: Add /ibm,partition-name, Sam Bobroff, 2015/07/02
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes, David Gibson, 2015/07/07