xen: Fix PV-on-HVM
commit4accd107d0fd4a6fd7d2ad4f3365c67623834262
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 16 May 2012 17:50:10 +0000 (16 18:50 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 May 2012 20:40:51 +0000 (21 15:40 -0500)
tree113510c7accdc9601121b648d6390a03dc83ebbd
parenta340046614644a8958883954b96e92a87a5e78f7
xen: Fix PV-on-HVM

In the context of PV-on-HVM under Xen, the emulated nics are supposed to be
unplug before the guest drivers are initialized, when the guest write to a
specific IO port.

Without this patch, the guest end up with two nics with the same MAC, the
emulated nic and the PV nic.

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/xen_platform.c