guest agent: remove g_strcmp0 usage
g_strcmp0 isn't in all version of glib 2.0, so don't use it to avoidbuild breakage on older distros.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
guest agent: remove uneeded dependencies
This patch tries to cull any uneeded library dependencies from the guestagent to improve portability across various distros. We do so by beingas explicit as possible about in-tree dependencies rather than relying...
memory: abstract cracking of write access ops into a function
The memory API automatically cracks large reads and writes into smallerones when needed. Factor out this mechanism, which is now duplicated betweenmemory reads and memory writes, into a function....
memory: crack wide ioport accesses into smaller ones when needed
The memory API supports cracking wide accesses into narrower oneswhen needed; but this was no implemented for the pio address space,causing lsi53c895a's IO BAR to malfunction.
Fix by correctly cracking wide accesses when needed....
escc: replace DPRINTFs with tracepoints
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
m48t59: avoid structure holes spotted by pahole
Report from pahole on amd64 host:struct M48t59State { uint32_t type; /* 0 4 */
/* XXX 4 bytes hole, try to pack */
qemu_irq IRQ; /* 8 8 */...
escc: avoid structure holes spotted by pahole
Edited report from pahole on amd64 host:struct ChannelState {... ChnType type; /* 32 4 */
/* XXX 4 bytes hole, try to pack /... uint8_t rregs[16]; / 66 16 */...
fdc: avoid structure holes spotted by pahole
Edited report from pahole on amd64 host:struct FDCtrl { uint8_t version; /* 0 1 */
/* XXX 7 bytes hole, try to pack */
qemu_irq irq; /* 8 8 */...
pcnet: avoid structure holes spotted by pahole
Edited report from pahole on amd64 host:struct PCNetState_st {... uint16_t bcr32; /* 340 64 */
/* XXX 4 bytes hole, try to pack /... int tx_busy; / 4520 4 */...
esp: avoid structure holes spotted by pahole
Report from pahole on amd64 host:struct ESPState { SysBusDevice busdev; /* 0 5648 / / --- cacheline 88 boundary (5632 bytes) was 16 bytes ago --- / uint32_t it_shift; / 5648 4 */...
View all revisions | View revisions
Also available in: Atom