pseries: dlpar: Create base structure for DLPAR capability

This commit introduces the base structures to provide DLPAR capacity on QEMU
pseries machines. All possible reconfigurable resources are divided in units
called connectors. Each connector will then be presented  to the guest system.

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: Adds QMP/HMP command parsing

Now we can send specific parameters to spapr_dlpar telling what we want to do.
From QEMU HMP we use:

dlpar {cpu | mem} {add | remove} {val}

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: Show pseries hotplug info in QEMU monitor

Now we can use the command 'info dlpar' in QEMU monitor to see DLPAR
info and stats

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: RTAS: get-sensor-state

This is part of PAPR base requeriments for enabling DLPAR capacity

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: RTAS: set-indicator

This is part of PAPR base requeriments for enabling DLPAR capacity

Signed-off-by:  Victor Toso <victor.carvalho@fit-tecnologia.org.br>
pseries: dlpar: Implements h_read hcall

This h_call is invoked by the guest when DLPAR memory is removed. Given
an index it fetches the corresponding PTE stored in the htab.

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: Uses ibm,dynamic-memory to map machime memory

So far, pseries machine allocated memory on DT /memory@** nodes. This patch
makes the allocatation/mapping of guest memory similar to that used in PowerVM
machines. Now the /memory@0 node contains the RMA area, while the remaining
memory is exposed in DT drc-indexes and in ibm,dynamic-memory.

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: Implements PAPR hotplug memory

Implement host side HMP/QMP memory add commands. This include fixing the
initial sensor/indicator state. After adding memory in the monitor,
the drmgr command must be run in the guest so it adds the memory to the
system.

Signed-off-by: Erlon Cruz <erlon.cruz@br.flextronics.com>
pseries: dlpar: DT Properties for cpu connectors

For each OF device tree node which supports DR operations on its
children we must provide ibm,drc-* properties.

This patch create those properties at cpu node and also do a small
fix to set the number of cpu connectors as the value received from
command line parameter.

Signed-off-by: Victor Toso de Carvalho <victor.carvalho@fit-tecnologia.org.br>