WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 03/22] Remove some trivial code duplication in gnttab

Signed-off-by: Steven Smith <steven.smith@xxxxxxxxxx>
---
 drivers/xen/core/gnttab.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/xen/core/gnttab.c b/drivers/xen/core/gnttab.c
index 7605c45..9a8fc89 100644
--- a/drivers/xen/core/gnttab.c
+++ b/drivers/xen/core/gnttab.c
@@ -152,11 +152,7 @@ int gnttab_grant_foreign_access(domid_t domid, unsigned 
long frame,
        if (unlikely((ref = get_free_entry()) < 0))
                return -ENOSPC;
 
-       shared[ref].frame = frame;
-       shared[ref].domid = domid;
-       wmb();
-       BUG_ON(flags & (GTF_accept_transfer | GTF_reading | GTF_writing));
-       shared[ref].flags = GTF_permit_access | flags;
+       gnttab_grant_foreign_access_ref(ref, domid, frame, flags);
 
        return ref;
 }
-- 
1.6.3.1


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

<Prev in Thread] Current Thread [Next in Thread>