]> xenbits.xensource.com Git - libvirt.git/commit
send default USB controller in xml to destination during migration
authorShivaprasad G Bhat <shivaprasadbhat@gmail.com>
Fri, 29 Apr 2016 14:01:51 +0000 (19:31 +0530)
committerCole Robinson <crobinso@redhat.com>
Mon, 2 May 2016 14:06:04 +0000 (10:06 -0400)
commit192a53e07c5fefd9dad2f310886209b76dcc5d83
treead21bcd449a9203d6191f40c32b6b7cf27ce2319
parent601531d6eadde981abde6b3b976ad91641e32787
send default USB controller in xml to destination during migration

The default USB controller is not sent to destination as the older versions
of libvirt(0.9.4 or earlier as I see in commit log of 409b5f54) didn't
support them. For some archs where the support started much later can
safely send the USB controllers without this worry. So, send the controller
to destination for all archs except x86. Moreover this is not very applicable
to x86 as the USB controller has model ich9_ehci1 on q35 and for pc-i440fx,
there cant be any slots before USB as it is fixed on slot 1.

The patch fixes a bug that, if the USB controller happens to occupy
a slot after disks/interfaces and one of them is hot-unplugged, then
the default USB controller added on destination takes the smallest slot
number and that would lead to savestate mismatch and migration
failure. Seen and verified on PPC64.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
src/qemu/qemu_domain.c