diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-20 09:02:15 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-20 09:02:15 +0100 |
commit | 97b6b26dad7f0f68cdd15690fab93a3e89cbc33f (patch) | |
tree | 8c23bc6b87c28897b65fdc81538b7426829c1bd1 | |
parent | 724fc2e33fc7540daae83f04c4afe43ffc15e3b6 (diff) | |
download | xen-97b6b26dad7f0f68cdd15690fab93a3e89cbc33f.tar.gz xen-97b6b26dad7f0f68cdd15690fab93a3e89cbc33f.tar.bz2 xen-97b6b26dad7f0f68cdd15690fab93a3e89cbc33f.zip |
ioemu: Fix unmapping issue on hot-removing pass-thru device
Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
-rw-r--r-- | tools/ioemu/hw/pass-through.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ioemu/hw/pass-through.c b/tools/ioemu/hw/pass-through.c index ab1bc774b2..1c00b624b9 100644 --- a/tools/ioemu/hw/pass-through.c +++ b/tools/ioemu/hw/pass-through.c @@ -1423,7 +1423,7 @@ static void pt_unregister_regions(struct pt_dev *assigned_device) for ( i = 0; i < PCI_NUM_REGIONS; i++ ) { e_size = assigned_device->bases[i].e_size; - if ( e_size == 0 ) + if ( (e_size == 0) || (assigned_device->bases[i].e_physbase == -1) ) continue; type = d->io_regions[i].type; |