Skip to contentSkip to conversation

ioemu-remote&ioemu: Fix unmapping issue on hot-removing.

PATCH In review Yuji Shimada 2 participants 3 messages Aug 20, 2008 – Aug 21, 2008

lore
Share & tools
lore
#0 lore raw

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=1318

UHCI hotplug can not work on Montevina platform.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1319

With the attached patch, these 2 bugs would be gone.

Thanks,
-- Dexuan

hw/pass-through.c +4 -0
index 7b46234..a42bb20 100644
@@ -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

#1 lore raw

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

#2 lore raw

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