* [PATCH] Re: [Xen-staging] [xen-unstable] Dynamic grant-table sizing.
[not found] <200702151056.l1FAuI07000397@latara.uk.xensource.com>
@ 2007-02-15 15:32 ` Alex Williamson
0 siblings, 0 replies; only message in thread
From: Alex Williamson @ 2007-02-15 15:32 UTC (permalink / raw)
To: xen-devel; +Cc: xen-staging
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@hp.com>
---
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;
^ permalink raw reply [flat|nested] only message in thread