]> git.proxmox.com Git - mirror_qemu.git/commit
pseries: Adjust default VIO address allocations to play better with libvirt
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Jan 2013 17:20:43 +0000 (17:20 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 25 Jan 2013 21:02:55 +0000 (22:02 +0100)
commit1ea1ce8ac305d9e006bc8b0f5f3554793fd2fa43
tree1c68ee65c185f709e5b9135c8bf34a0b5c51761e
parentcaae58cba07efec5f0616f568531c9dfaf1e9179
pseries: Adjust default VIO address allocations to play better with libvirt

Currently, if VIO devices for pseries don't have addresses explicitly
allocated, they get automatically numbered from 0x1000.  This is in the
same general range that libvirt will typically assign VIO device addresses.

That means that if there is a device libvirt doesn't know about, and it
gets an address assigned before the libvirt assigned devices are processed,
we can end up with an address conflict (qemu will abort with an error).

While the real solution is to teach libvirt about the other devices, so it
can correctly manage the whole allocation, this patch reduces the interim
inconvenience by moving qemu allocations to a range that libvirt is less
likely to conflict with.

Because the guest gets the device addresses through the device tree, these
addresses are truly arbitrary and can be changed without breaking guests.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_vio.c