ioemu-remote&ioemu: Fix unmapping issue on hot-removing.
PATCH 1/1 ioemu-remote&ioemu: Fix unmapping issue on hot-removing.
This patch fixes unmapping issue on hot-removing. I believe my patch and Cui's patch together fix bug #1316 .
Quoted 2 lines
1. hot-plug attaching VT-d NIC to guest failed.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1316.
After applying this patch, following messages will disappear.
qemu-dm's message:pt_unregister_regions: Error: remove old io mapping failed!
Hypervisor's messages:
(XEN) p2m.c:1172:d0 clear_mmio_p2m_entry: gfn_to_mfn failed! gfn=000fffff (XEN) domctl.c:820:d0 ioport_map:invalid:gport=ffffffff mport=3000 nr_ports=40
Thanks,
--
Yuji Shimada
Quoted 10 lines · Dexuan
Quoted 5 lines
On PAE, failed to hotplug attach USB EHCI device to Linux guest.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1318UHCI hotplug can not work on Montevina platform.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1319With the attached patch, these 2 bugs would be gone.
Thanks,
-- Dexuan
hw/pass-through.c +4 -0
@@ -1424,6 +1424,10 @@ static void pt_unregister_regions(struct pt_dev *assigned_device)if ( e_size ==0 )continue ; +/* avoid unmapping for invalid physbase */ +if ( assigned_device->bases[i].e_physbase ==-1 ) +continue ; + type = d->io_regions[i].type; if ( type == PCI_ADDRESS_SPACE_MEM ||
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
The patch I had sent was applied to xen-unstable.hg (18344: 0cf244daf3c4).
I'd like you to apply the patch to ioemu-remote too.
--
Yuji Shimada
It already has been.
-- Keir
Quoted 11 lines · Yuji Shimada
The patch I had sent was applied to xen-unstable.hg (18344:
0cf244daf3c4).I'd like you to apply the patch to ioemu-remote too.
--
Yuji Shimada_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel