summary refs log tree commit diff stats
path: root/hw/sun4m_iommu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sun4m_iommu: convert to memory APIAvi Kivity2011-11-241-17/+16
| | | | Signed-off-by: Avi Kivity <avi@redhat.com>
* sun4m_iommu: avoid structure holes spotted by paholeBlue Swirl2011-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Report from pahole on amd64 host: struct IOMMUState { SysBusDevice busdev; /* 0 5648 */ /* --- cacheline 88 boundary (5632 bytes) was 16 bytes ago --- */ uint32_t regs[4096]; /* 5648 16384 */ /* --- cacheline 344 boundary (22016 bytes) was 16 bytes ago --- */ target_phys_addr_t iostart; /* 22032 8 */ uint32_t version; /* 22040 4 */ /* XXX 4 bytes hole, try to pack */ qemu_irq irq; /* 22048 8 */ /* size: 22056, cachelines: 345 */ /* sum members: 22052, holes: 1, sum holes: 4 */ /* last cacheline: 40 bytes */ }; /* definitions: 1 */ Fix by rearranging the structure to avoid padding. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix typo in code and commentsStefan Weil2011-05-061-1/+1
| | | | | | | Replace writeable -> writable Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* Add endianness as io mem parameterAlexander Graf2010-12-111-1/+2
| | | | | | | | | | | | | As stated before, devices can be little, big or native endian. The target endianness is not of their concern, so we need to push things down a level. This patch adds a parameter to cpu_register_io_memory that allows a device to choose its endianness. For now, all devices simply choose native endian, because that's the same behavior as before. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* sparc32: convert debug printf statements to tracepointsBlue Swirl2010-10-311-24/+9
| | | | | | Replace debug printf statements with tracepoints. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* sparc32: add IOMMU chipset doc linksBlue Swirl2010-04-031-1/+9
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* sparc32: rename iommu.c to sun4m_iommu.c to make room for other IOMMUsBlue Swirl2010-04-031-0/+384
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>