All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [PVOPS] fix gntdev on PAE
@ 2010-02-01 15:11 Stefano Stabellini
  2010-02-01 15:46 ` Stefano Stabellini
  0 siblings, 1 reply; 15+ messages in thread
From: Stefano Stabellini @ 2010-02-01 15:11 UTC (permalink / raw)
  To: xen-devel; +Cc: Jeremy Fitzhardinge

Hi all,
this small patch fixes gntdev on Linux pvops kernels:
gnttab_set_map_op and gnttab_set_unmap_op shouldn't take unsigned long
as parameters for machine addresses because they are not big enough on
PAE systems.
This patch fixes the issue using phys_addr_t instead and enables
XEN_GNTDEV compilation again.


Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

---

diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index f6828c5..a2833bb 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -170,7 +170,7 @@ config XEN_S3
        
 config XEN_GNTDEV
 	tristate "userspace grant access device driver"
-	depends on XEN && BROKEN
+	depends on XEN
 	select MMU_NOTIFIER
 	help
 	  Allows userspace processes use grants.

diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h
index ef07e91..8552d7e 100644
--- a/include/xen/grant_table.h
+++ b/include/xen/grant_table.h
@@ -146,7 +146,7 @@ void gnttab_grant_foreign_transfer_ref(grant_ref_t, domid_t domid,
 				       unsigned long pfn);
 
 static inline void
-gnttab_set_map_op(struct gnttab_map_grant_ref *map, unsigned long addr,
+gnttab_set_map_op(struct gnttab_map_grant_ref *map, phys_addr_t addr,
 		  uint32_t flags, grant_ref_t ref, domid_t domid)
 {
 	if (flags & GNTMAP_contains_pte)
@@ -162,7 +162,7 @@ gnttab_set_map_op(struct gnttab_map_grant_ref *map, unsigned long addr,
 }
 
 static inline void
-gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, unsigned long addr,
+gnttab_set_unmap_op(struct gnttab_unmap_grant_ref *unmap, phys_addr_t addr,
 		    uint32_t flags, grant_handle_t handle)
 {
 	if (flags & GNTMAP_contains_pte)

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-06-09 19:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01 15:11 [PATCH] [PVOPS] fix gntdev on PAE Stefano Stabellini
2010-02-01 15:46 ` Stefano Stabellini
2010-02-09 21:57   ` Jeremy Fitzhardinge
2010-02-10 12:19     ` Stefano Stabellini
2010-02-10 23:12       ` Jeremy Fitzhardinge
2010-05-28 17:29       ` Jeremy Fitzhardinge
2010-06-01  9:38         ` Stefano Stabellini
2010-06-01 16:31           ` Jeremy Fitzhardinge
2010-06-01 16:36             ` Stefano Stabellini
2010-06-01 16:46               ` Jeremy Fitzhardinge
2010-06-02 14:11                 ` Stefano Stabellini
2010-06-02 17:11                   ` Jeremy Fitzhardinge
2010-06-03  9:32                     ` Stefano Stabellini
2010-06-09 19:38                       ` Jeremy Fitzhardinge
2010-02-09 22:24   ` Jeremy Fitzhardinge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.