All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] xen/arm: introduce GNTTABOP_cache_flush
@ 2014-10-03 14:47 Stefano Stabellini
  2014-10-03 14:50 ` [PATCH v2 1/4] xen/arm: introduce invalidate_xen_dcache_va_range Stefano Stabellini
                   ` (3 more replies)
  0 siblings, 4 replies; 34+ messages in thread
From: Stefano Stabellini @ 2014-10-03 14:47 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Ian Campbell, Stefano Stabellini

Hi all,
this patch series introduces a new hypercall to perform cache
maintenance operations on behalf of the guest. It is useful for dom0 to
be able to cache flush pages involved in a dma operation with
non-coherent devices.

It also removes XENFEAT_grant_map_identity as the feature is no longer
necessary: it was used to achieve the same goal but the guest can now
use the hypercall instead. Keeping the flag would also have a
significant performance impact as a new p2m mapping gets created and
then destroyed for every grant that is mapped and unmapped in dom0.



Changes in v2:
- make grant_map_exists static;
- remove the spin_lock in grant_map_exists;
- move the hypercall to GNTTABOP;
- do not check for mfn_to_page errors in GNTTABOP_cache_flush;
- take a reference to the page in GNTTABOP_cache_flush;
- replace printk with gdprintk in GNTTABOP_cache_flush;
- split long line in GNTTABOP_cache_flush;
- remove out label in GNTTABOP_cache_flush;
- move rcu_lock_current_domain down before the loop in
GNTTABOP_cache_flush;
- take a spin_lock before calling grant_map_exists in
GNTTABOP_cache_flush.


Stefano Stabellini (4):
      xen/arm: introduce invalidate_xen_dcache_va_range
      xen: introduce grant_map_exists
      xen/arm: introduce GNTTABOP_cache_flush
      Revert "xen/arm: introduce XENFEAT_grant_map_identity"

 xen/common/grant_table.c           |  133 +++++++++++++++++++++++++++++-------
 xen/common/kernel.c                |    2 -
 xen/drivers/passthrough/arm/smmu.c |   33 +++++++++
 xen/include/asm-arm/arm32/page.h   |    3 +
 xen/include/asm-arm/arm64/page.h   |    3 +
 xen/include/asm-arm/grant_table.h  |    3 +-
 xen/include/asm-arm/page.h         |   30 ++++++++
 xen/include/public/features.h      |    4 +-
 xen/include/public/grant_table.h   |   19 ++++++
 9 files changed, 201 insertions(+), 29 deletions(-)

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2014-10-08 13:01 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-03 14:47 [PATCH v2 0/4] xen/arm: introduce GNTTABOP_cache_flush Stefano Stabellini
2014-10-03 14:50 ` [PATCH v2 1/4] xen/arm: introduce invalidate_xen_dcache_va_range Stefano Stabellini
2014-10-03 14:50 ` [PATCH v2 2/4] xen: introduce grant_map_exists Stefano Stabellini
2014-10-03 15:02   ` Andrew Cooper
2014-10-03 16:20     ` Stefano Stabellini
2014-10-06  8:22   ` Jan Beulich
2014-10-06  9:37     ` Stefano Stabellini
2014-10-06 10:20       ` Jan Beulich
2014-10-06 13:08         ` Stefano Stabellini
2014-10-06 13:39           ` Jan Beulich
2014-10-06 13:46             ` Stefano Stabellini
2014-10-06 14:01               ` Jan Beulich
2014-10-06 14:34                 ` Stefano Stabellini
2014-10-06 14:56                   ` Jan Beulich
2014-10-06 14:57                     ` Stefano Stabellini
2014-10-06 15:09                       ` Jan Beulich
2014-10-06  9:41     ` Stefano Stabellini
2014-10-06 10:17       ` Jan Beulich
2014-10-03 14:50 ` [PATCH v2 3/4] xen/arm: introduce GNTTABOP_cache_flush Stefano Stabellini
2014-10-03 14:53   ` Stefano Stabellini
2014-10-03 15:16   ` Andrew Cooper
2014-10-03 16:33     ` Stefano Stabellini
2014-10-03 16:37       ` Andrew Cooper
2014-10-03 16:37       ` Ian Campbell
2014-10-06  8:49       ` Jan Beulich
2014-10-06  9:00   ` Jan Beulich
2014-10-06 15:21   ` David Vrabel
2014-10-08 11:54     ` Stefano Stabellini
2014-10-08 12:06       ` David Vrabel
2014-10-08 12:52         ` Stefano Stabellini
2014-10-08 13:01           ` Ian Campbell
2014-10-08 12:17       ` Ian Campbell
2014-10-08 12:45         ` David Vrabel
2014-10-03 14:50 ` [PATCH v2 4/4] Revert "xen/arm: introduce XENFEAT_grant_map_identity" Stefano Stabellini

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.