]> git.proxmox.com Git - qemu.git/commit - target-ppc/kvm.c
spapr-tce: make sPAPRTCETable a proper device
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 18 Jul 2013 19:32:58 +0000 (14:32 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jul 2013 15:37:08 +0000 (10:37 -0500)
commita83000f5e3fac30a7f213af1ba6a8f827622854d
tree7bf4b793f453f37a241d0dbd147f5ec258cfb217
parentdb1b58e937fd80513a4bb14432808495a5846ffe
spapr-tce: make sPAPRTCETable a proper device

Model TCE tables as a device that's hooked up as a child object to
the owner.  Besides the code cleanup, we get a few nice benefits:

1) free actually works now (it was dead code before)

2) the TCE information is visible in the device tree

3) we can expose table information as properties such that if we
   change the window_size, we can use globals to keep migration
   working.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-id: 1374175984-8930-6-git-send-email-aliguori@us.ibm.com
[dwg: pseries: savevm support for PAPR TCE tables]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[alexey: ppc kvm: fix to compile]
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ppc/spapr.c
hw/ppc/spapr_iommu.c
hw/ppc/spapr_pci.c
hw/ppc/spapr_vio.c
include/hw/ppc/spapr.h
target-ppc/kvm.c