From: Julien Grall <julien.grall@linaro.org>
To: Christoph Egger <chegger@amazon.de>, xen-devel@lists.xen.org
Cc: Keir Fraser <keir@xen.org>, Matt Wilson <msw@amazon.com>,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH 1/2] gnttab: Introduce rwlock to protect updates to grant table state
Date: Tue, 02 Dec 2014 12:35:38 +0000 [thread overview]
Message-ID: <547DB21A.3090009@linaro.org> (raw)
In-Reply-To: <1417514784-15749-2-git-send-email-chegger@amazon.de>
Hi Christoph,
On 02/12/14 10:06, Christoph Egger wrote:
> diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
> index 522c43d..37c13b1 100644
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -4565,7 +4565,7 @@ int xenmem_add_to_physmap_one(
> mfn = virt_to_mfn(d->shared_info);
> break;
> case XENMAPSPACE_grant_table:
> - spin_lock(&d->grant_table->lock);
> + write_lock(&d->grant_table->lock);
>
> if ( d->grant_table->gt_version == 0 )
> d->grant_table->gt_version = 1;
> @@ -4587,7 +4587,7 @@ int xenmem_add_to_physmap_one(
> mfn = virt_to_mfn(d->grant_table->shared_raw[idx]);
> }
>
> - spin_unlock(&d->grant_table->lock);
> + write_unlock(&d->grant_table->lock);
> break;
> case XENMAPSPACE_gmfn_range:
> case XENMAPSPACE_gmfn:
You forgot to modify the ARM bits which is using the spinlock. See
arch/arm/mm.c
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-12-02 12:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 10:06 [PATCH 0/2] gnttab: Improve scaleability Christoph Egger
2014-12-02 10:06 ` [PATCH 1/2] gnttab: Introduce rwlock to protect updates to grant table state Christoph Egger
2014-12-02 11:28 ` Andrew Cooper
2014-12-02 12:35 ` Julien Grall [this message]
2014-12-02 13:03 ` Egger, Christoph
2014-12-02 13:08 ` Julien Grall
2014-12-02 13:18 ` Egger, Christoph
2014-12-02 10:06 ` [PATCH 2/2] gnttab: refactor locking for scalability Christoph Egger
2014-12-02 11:00 ` [PATCH 0/2] gnttab: Improve scaleability Andrew Cooper
2014-12-02 11:08 ` Egger, Christoph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547DB21A.3090009@linaro.org \
--to=julien.grall@linaro.org \
--cc=chegger@amazon.de \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=msw@amazon.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.