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] Re: [Xen-staging] [xen-unstable] Dynamic grant-table

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Re: [Xen-staging] [xen-unstable] Dynamic grant-table sizing.
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Thu, 15 Feb 2007 08:32:07 -0700
Cc: xen-staging@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Feb 2007 07:31:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200702151056.l1FAuI07000397@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: HP OSLO R&D
References: <200702151056.l1FAuI07000397@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-02-15 at 10:56 +0000, Xen staging patchbot-unstable wrote:
> diff -r 047b3e9f9032 -r 70f05d642a2e xen/arch/ia64/xen/mm.c
> --- a/xen/arch/ia64/xen/mm.c  Thu Feb 15 10:34:21 2007 +0000
> +++ b/xen/arch/ia64/xen/mm.c  Thu Feb 15 10:54:12 2007 +0000
> @@ -2077,8 +2077,10 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
>                  mfn = virt_to_mfn(d->shared_info);
>              break;
>          case XENMAPSPACE_grant_table:
> -            if (xatp.idx < NR_GRANT_FRAMES)
> +            spin_lock(d->grant_table->lock);
> +            if ( xatp.idx < nr_grant_frames(d->grant_table) )
>                  mfn = virt_to_mfn(d->grant_table->shared) + xatp.idx;
> +            spin_unlock(d->grant_table->lock);

Typo fix, spin_lock needs a pointer.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---

diff -r 5916fc1f9b16 xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Thu Feb 15 14:58:43 2007 +0000
+++ b/xen/arch/ia64/xen/mm.c    Thu Feb 15 08:22:16 2007 -0700
@@ -2077,10 +2077,10 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(
                 mfn = virt_to_mfn(d->shared_info);
             break;
         case XENMAPSPACE_grant_table:
-            spin_lock(d->grant_table->lock);
-            if ( xatp.idx < nr_grant_frames(d->grant_table) )
+            spin_lock(&d->grant_table->lock);
+            if (xatp.idx < nr_grant_frames(d->grant_table))
                 mfn = virt_to_mfn(d->grant_table->shared) + xatp.idx;
-            spin_unlock(d->grant_table->lock);
+            spin_unlock(&d->grant_table->lock);
             break;
         default:
             break;



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Re: [Xen-staging] [xen-unstable] Dynamic grant-table sizing., Alex Williamson <=