]> git.proxmox.com Git - qemu.git/commit
pci: make each capability DWORD aligned
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Oct 2012 10:35:00 +0000 (12:35 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 15:59:06 +0000 (17:59 +0200)
commite26631b74663f59b5873a84ed5b92ee4ddf48255
tree138a67a5726ff83a10517e14d7fd8f186c632037
parentdc59944bc9a5ad784572eea57610de60e4a2f4e5
pci: make each capability DWORD aligned

PCI spec (see e.g. 6.7 Capabilities List in spec rev 3.0)
requires that each capability is DWORD aligned.
Ensure this when allocating space by rounding size up to 4.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c