ia64/xen-unstable

changeset 16391:5a72a99be911

hvm passthru: Uses of XC_PAGE_MASK should be XC_PAGE_SIZE-1.
Signed-off-by: Weidong Han <weidong.han@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Nov 16 17:09:53 2007 +0000 (2007-11-16)
parents e2f5b5b24e07
children 2052364cb456
files tools/ioemu/hw/pass-through.c
line diff
     1.1 --- a/tools/ioemu/hw/pass-through.c	Fri Nov 16 17:08:05 2007 +0000
     1.2 +++ b/tools/ioemu/hw/pass-through.c	Fri Nov 16 17:09:53 2007 +0000
     1.3 @@ -130,7 +130,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
     1.4          ret = xc_domain_memory_mapping(xc_handle, domid,
     1.5                  old_ebase >> XC_PAGE_SHIFT,
     1.6                  assigned_device->bases[i].access.maddr >> XC_PAGE_SHIFT,
     1.7 -                (e_size+XC_PAGE_MASK) >> XC_PAGE_SHIFT,
     1.8 +                (e_size+XC_PAGE_SIZE-1) >> XC_PAGE_SHIFT,
     1.9                  DPCI_REMOVE_MAPPING);
    1.10          if ( ret != 0 )
    1.11          {
    1.12 @@ -143,7 +143,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
    1.13      ret = xc_domain_memory_mapping(xc_handle, domid,
    1.14              assigned_device->bases[i].e_physbase >> XC_PAGE_SHIFT,
    1.15              assigned_device->bases[i].access.maddr >> XC_PAGE_SHIFT,
    1.16 -            (e_size+XC_PAGE_MASK) >> XC_PAGE_SHIFT,
    1.17 +            (e_size+XC_PAGE_SIZE-1) >> XC_PAGE_SHIFT,
    1.18              DPCI_ADD_MAPPING);
    1.19      if ( ret != 0 )
    1.20          PT_LOG("Error: create new mapping failed!\n");