From: Tim Deegan <tim@xen.org>
To: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Cc: george.dunlap@eu.citrix.com, andres@gridcentric.ca,
xen-devel@lists.xensource.com, keir.xen@gmail.com,
adin@gridcentric.ca
Subject: Re: [PATCH 4 of 5] Re-order calls to put_gfn() around wait queu invocations
Date: Thu, 2 Feb 2012 13:26:27 +0000 [thread overview]
Message-ID: <20120202132627.GN48883@ocelot.phlegethon.org> (raw)
In-Reply-To: <211872232129d7c6f4d0.1328126168@xdev.gridcentric.ca>
At 14:56 -0500 on 01 Feb (1328108168), Andres Lagar-Cavilla wrote:
> xen/arch/x86/hvm/emulate.c | 2 +-
> xen/arch/x86/hvm/hvm.c | 25 +++++++++++++------
> xen/arch/x86/mm.c | 10 +++---
> xen/arch/x86/mm/guest_walk.c | 2 +-
> xen/arch/x86/mm/hap/guest_walk.c | 6 +---
> xen/arch/x86/mm/mem_access.c | 10 +++++++
> xen/arch/x86/mm/mem_event.c | 5 +++
> xen/arch/x86/mm/p2m.c | 52 ++++++++++++++++++++++-----------------
> xen/common/grant_table.c | 2 +-
> xen/common/memory.c | 2 +-
> xen/include/asm-x86/mem_access.h | 1 +
> xen/include/asm-x86/mem_event.h | 3 ++
> xen/include/asm-x86/p2m.h | 6 +++-
> 13 files changed, 80 insertions(+), 46 deletions(-)
>
>
> Since we use wait queues to handle potential ring congestion cases,
> code paths that try to generate a mem event while holding a gfn lock
> would go to sleep in non-preemptible mode.
>
> Most such code paths can be fixed by simply postponing event generation until
> locks are released.
>
> Signed-off-by: Adin Scannell <adin@scannell.ca>
> Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Looks OK, once the preceding patches are sorted out. If you add some
comments to p2m_mem_access_check() describing its new argument and what
the caller's supposed to do about it, you can put my Ack on this next time.
Cheers,
Tim.
next prev parent reply other threads:[~2012-02-02 13:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 19:56 [PATCH 0 of 5] Synchronized p2m lookups Andres Lagar-Cavilla
2012-02-01 19:56 ` [PATCH 1 of 5] Make p2m lookups fully synchronized wrt modifications Andres Lagar-Cavilla
2012-02-02 13:08 ` Tim Deegan
2012-02-02 14:01 ` Andres Lagar-Cavilla
2012-02-01 19:56 ` [PATCH 2 of 5] Clean up locking now that p2m lockups are fully synchronized Andres Lagar-Cavilla
2012-02-02 13:10 ` Tim Deegan
2012-02-02 14:31 ` George Dunlap
2012-02-02 19:40 ` Andres Lagar-Cavilla
2012-02-01 19:56 ` [PATCH 3 of 5] Rework locking in the PoD layer Andres Lagar-Cavilla
2012-02-02 13:14 ` Tim Deegan
2012-02-02 14:04 ` Andres Lagar-Cavilla
2012-02-02 15:33 ` George Dunlap
2012-02-02 20:03 ` Andres Lagar-Cavilla
2012-02-01 19:56 ` [PATCH 4 of 5] Re-order calls to put_gfn() around wait queu invocations Andres Lagar-Cavilla
2012-02-02 13:26 ` Tim Deegan [this message]
2012-02-01 19:56 ` [PATCH 5 of 5] x86/mm: Revert changeset 24582:f6c33cfe7333 Andres Lagar-Cavilla
2012-02-02 13:27 ` Tim Deegan
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=20120202132627.GN48883@ocelot.phlegethon.org \
--to=tim@xen.org \
--cc=adin@gridcentric.ca \
--cc=andres@gridcentric.ca \
--cc=andres@lagarcavilla.org \
--cc=george.dunlap@eu.citrix.com \
--cc=keir.xen@gmail.com \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).