ia64/xen-unstable

changeset 17992:f14dbf6a4118

Fix passthrough of PCI capability structures.
Signed-off-by: Naoki Nishiguchi <nisiguti@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 08 09:26:58 2008 +0100 (2008-07-08)
parents 0d707feab01e
children bd97e45e073a
files tools/ioemu/hw/pass-through.c
line diff
     1.1 --- a/tools/ioemu/hw/pass-through.c	Mon Jul 07 16:13:53 2008 +0100
     1.2 +++ b/tools/ioemu/hw/pass-through.c	Tue Jul 08 09:26:58 2008 +0100
     1.3 @@ -827,7 +827,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
     1.4      if ( e_size == 0 )
     1.5          return;
     1.6  
     1.7 -    if ( !first_map )
     1.8 +    if ( !first_map && old_ebase != -1 )
     1.9      {
    1.10          add_msix_mapping(assigned_device, i);
    1.11          /* Remove old mapping */
    1.12 @@ -883,7 +883,7 @@ void pt_ioport_map(PCIDevice *d, int i,
    1.13      if ( e_size == 0 )
    1.14          return;
    1.15  
    1.16 -    if ( !first_map )
    1.17 +    if ( !first_map && old_ebase != -1 )
    1.18      {
    1.19          /* Remove old mapping */
    1.20          ret = xc_domain_ioport_mapping(xc_handle, domid, old_ebase,