ia64/xen-unstable

changeset 18344:0cf244daf3c4

ioemu: Fix unmapping issue on hot-removing pass-thru device

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 20 09:02:15 2008 +0100 (2008-08-20)
parents a864ba2f0aa5
children b5396a87a64a
files tools/ioemu/hw/pass-through.c
line diff
     1.1 --- a/tools/ioemu/hw/pass-through.c	Tue Aug 19 19:45:27 2008 +0100
     1.2 +++ b/tools/ioemu/hw/pass-through.c	Wed Aug 20 09:02:15 2008 +0100
     1.3 @@ -1423,7 +1423,7 @@ static void pt_unregister_regions(struct
     1.4      for ( i = 0; i < PCI_NUM_REGIONS; i++ )
     1.5      {
     1.6          e_size = assigned_device->bases[i].e_size;
     1.7 -        if ( e_size == 0 )
     1.8 +        if ( (e_size == 0) || (assigned_device->bases[i].e_physbase == -1) )
     1.9              continue;
    1.10  
    1.11          type = d->io_regions[i].type;