All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] s390/kvm: add kvm support for guest page hinting v2
@ 2013-07-25  8:54 Martin Schwidefsky
  2013-07-25  8:54   ` Martin Schwidefsky
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Martin Schwidefsky @ 2013-07-25  8:54 UTC (permalink / raw)
  To: linux-mm, linux-kernel, kvm, Andrew Morton, Mel Gorman,
	Nick Piggin, Hugh Dickins, Rik van Riel
  Cc: Martin Schwidefsky

v1->v2:
 - found a way to simplify the common code patch

Linux on s390 as a guest under z/VM has been using the guest page
hinting interface (alias collaborative memory management) for a long
time. The full version with volatile states has been deemed to be too
complicated (see the old discussion about guest page hinting e.g. on
http://marc.info/?l=linux-mm&m=123816662017742&w=2).
What is currently implemented for the guest is the unused and stable
states to mark unallocated pages as freely available to the host.
This works just fine with z/VM as the host.

The two patches in this series implement the guest page hinting
interface for the unused and stable states in the KVM host.
Most of the code specific to s390 but there is a common memory
management part as well, see patch #1.

The code is working stable now, from my point of view this is ready
for prime-time.

Konstantin Weitz (2):
  mm: add support for discard of unused ptes
  s390/kvm: support collaborative memory management

 arch/s390/include/asm/kvm_host.h |    5 ++-
 arch/s390/include/asm/pgtable.h  |   24 ++++++++++++
 arch/s390/kvm/kvm-s390.c         |   25 +++++++++++++
 arch/s390/kvm/kvm-s390.h         |    2 +
 arch/s390/kvm/priv.c             |   41 ++++++++++++++++++++
 arch/s390/mm/pgtable.c           |   77 ++++++++++++++++++++++++++++++++++++++
 include/asm-generic/pgtable.h    |   13 +++++++
 mm/rmap.c                        |   10 +++++
 8 files changed, 196 insertions(+), 1 deletion(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 17+ messages in thread
* [RFC][PATCH 0/2] s390/kvm: add kvm support for guest page hinting
@ 2013-07-03 13:01 Martin Schwidefsky
  2013-07-03 13:01   ` Martin Schwidefsky
  0 siblings, 1 reply; 17+ messages in thread
From: Martin Schwidefsky @ 2013-07-03 13:01 UTC (permalink / raw)
  To: linux-mm, linux-kernel, Andrew Morton, Mel Gorman, Nick Piggin,
	Hugh Dickins, Rik van Riel
  Cc: Martin Schwidefsky

Linux on s390 as a guest under z/VM has been using the guest page
hinting interface (alias collaborative memory management) for a long
time. The full version with volatile states has been deemed to be too
complicated (see the old discussion about guest page hinting e.g. on
http://marc.info/?l=linux-mm&m=123816662017742&w=2).
What is currently implemented for the guest is the unused and stable
states to mark unallocated pages as freely available to the host.
This works just fine with z/VM as the host.

The two patches in this series implement the guest page hinting
interface for the unused and stable states in the KVM host.
Most of the code specific to s390 but there is a common memory
management part as well, see patch #1.

The circus is back ;-)

Konstantin Weitz (2):
  mm: add support for discard of unused ptes
  s390/kvm: support collaborative memory management

 arch/s390/include/asm/kvm_host.h |    8 +++-
 arch/s390/include/asm/pgtable.h  |   24 ++++++++++++
 arch/s390/kvm/kvm-s390.c         |   24 ++++++++++++
 arch/s390/kvm/kvm-s390.h         |    2 +
 arch/s390/kvm/priv.c             |   37 ++++++++++++++++++
 arch/s390/mm/pgtable.c           |   77 ++++++++++++++++++++++++++++++++++++++
 include/asm-generic/pgtable.h    |   13 +++++++
 include/linux/rmap.h             |    1 +
 mm/rmap.c                        |   28 +++++++++++++-
 mm/vmscan.c                      |    3 ++
 10 files changed, 214 insertions(+), 3 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2013-07-31  6:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25  8:54 [RFC][PATCH 0/2] s390/kvm: add kvm support for guest page hinting v2 Martin Schwidefsky
2013-07-25  8:54 ` [PATCH 1/2] mm: add support for discard of unused ptes Martin Schwidefsky
2013-07-25  8:54   ` Martin Schwidefsky
2013-07-25 10:46   ` Christian Borntraeger
2013-07-25 10:46     ` Christian Borntraeger
2013-07-30 20:44   ` Andrew Morton
2013-07-30 20:44     ` Andrew Morton
2013-07-31  6:26     ` Martin Schwidefsky
2013-07-31  6:26       ` Martin Schwidefsky
2013-07-25  8:54 ` [PATCH 2/2] s390/kvm: support collaborative memory management Martin Schwidefsky
2013-07-25  8:54   ` Martin Schwidefsky
2013-07-25 10:58   ` Christian Borntraeger
2013-07-25 10:58     ` Christian Borntraeger
2013-07-25 10:44 ` [RFC][PATCH 0/2] s390/kvm: add kvm support for guest page hinting v2 Christian Borntraeger
2013-07-25 10:44   ` Christian Borntraeger
  -- strict thread matches above, loose matches on Subject: below --
2013-07-03 13:01 [RFC][PATCH 0/2] s390/kvm: add kvm support for guest page hinting Martin Schwidefsky
2013-07-03 13:01 ` [PATCH 1/2] mm: add support for discard of unused ptes Martin Schwidefsky
2013-07-03 13:01   ` Martin Schwidefsky

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.