[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvm passthru: Uses of XC_PAGE_MASK should be XC_PAGE_SIZE-1.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1195232993 0
# Node ID 5a72a99be9115c793a2a24eb98ee6226aaa7c33b
# Parent  e2f5b5b24e07348d0f5e3d68569e00a978a251e8
hvm passthru: Uses of XC_PAGE_MASK should be XC_PAGE_SIZE-1.
Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
 tools/ioemu/hw/pass-through.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r e2f5b5b24e07 -r 5a72a99be911 tools/ioemu/hw/pass-through.c
--- a/tools/ioemu/hw/pass-through.c     Fri Nov 16 17:08:05 2007 +0000
+++ b/tools/ioemu/hw/pass-through.c     Fri Nov 16 17:09:53 2007 +0000
@@ -130,7 +130,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
         ret = xc_domain_memory_mapping(xc_handle, domid,
                 old_ebase >> XC_PAGE_SHIFT,
                 assigned_device->bases[i].access.maddr >> XC_PAGE_SHIFT,
-                (e_size+XC_PAGE_MASK) >> XC_PAGE_SHIFT,
+                (e_size+XC_PAGE_SIZE-1) >> XC_PAGE_SHIFT,
                 DPCI_REMOVE_MAPPING);
         if ( ret != 0 )
         {
@@ -143,7 +143,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
     ret = xc_domain_memory_mapping(xc_handle, domid,
             assigned_device->bases[i].e_physbase >> XC_PAGE_SHIFT,
             assigned_device->bases[i].access.maddr >> XC_PAGE_SHIFT,
-            (e_size+XC_PAGE_MASK) >> XC_PAGE_SHIFT,
+            (e_size+XC_PAGE_SIZE-1) >> XC_PAGE_SHIFT,
             DPCI_ADD_MAPPING);
     if ( ret != 0 )
         PT_LOG("Error: create new mapping failed!\n");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.