xemu/hw
Suraj Jitindar Singh 9861bb3efd target/ppc: Add patb_entry to sPAPRMachineState
ISA v3.00 adds the idea of a partition table which is used to store the
address translation details for all partitions on the system. The partition
table consists of double word entries indexed by partition id where the second
double word contains the location of the process table in guest memory. The
process table is registered by the guest via a h-call.

We need somewhere to store the address of the process table so we add an entry
to the sPAPRMachineState struct called patb_entry to represent the second
doubleword of a single partition table entry corresponding to the current
guest. We need to store this value so we know if the guest is using radix or
hash translation and the location of the corresponding process table in guest
memory. Since we only have a single guest per qemu instance, we only need one
entry.

Since the partition table is technically a hypervisor resource we require that
access to it is abstracted by the virtual hypervisor through the get_patbe()
call. Currently the value of the entry is never set (and thus
defaults to 0 indicating hash), but it will be required to both implement
POWER9 kvm support and tcg radix support.

We also add this field to be migrated as part of the sPAPRMachineState as we
will need it on the receiving side as the guest will never tell us this
information again and we need it to perform translation.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-03-03 11:30:59 +11:00
..
9pfs This pull request have all the fixes for CVE-2016-9602, so that it can 2017-03-01 13:53:20 +00:00
acpi bus: do not unref hotplug handler 2017-03-01 11:51:28 +04:00
adc
alpha
arm
audio
block
bt
char
core Migration pull 2017-03-02 17:39:12 +00:00
cpu
cris
display
dma
gpio
i2c
i386 pc: pcihp: avoid adding ACPI_PCIHP_PROP_BSEL twice 2017-03-01 11:51:05 +04:00
ide
input
intc ppc patch queue for 2017-03-01 2017-03-02 13:50:55 +00:00
ipack
ipmi
isa
lm32
m68k
mem
microblaze
mips
misc
moxie
net
nios2
nvram
openrisc
pci
pci-bridge
pci-host
pcmcia
ppc target/ppc: Add patb_entry to sPAPRMachineState 2017-03-03 11:30:59 +11:00
s390x
scsi
sd Block layer patches 2017-03-01 23:09:46 +00:00
sh4
smbios
sparc
sparc64
ssi
timer
tpm
tricore
unicore32
usb Migration pull 2017-03-02 17:39:12 +00:00
vfio
virtio
watchdog
xen
xenpv
xtensa
Makefile.objs