All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Enable async page faults on s390
@ 2013-07-10 12:59 ` Dominik Dingel
  0 siblings, 0 replies; 26+ messages in thread
From: Dominik Dingel @ 2013-07-10 12:59 UTC (permalink / raw)
  To: Gleb Natapov, Paolo Bonzini
  Cc: Christian Borntraeger, Heiko Carstens, Martin Schwidefsky,
	Cornelia Huck, Xiantao Zhang, Alexander Graf, Christoffer Dall,
	Marc Zyngier, Ralf Baechle, kvm, linux-s390, linux-mm,
	linux-kernel, Dominik Dingel

Gleb, Paolo, 

based on the work from Martin and Carsten, this implementation enables async page faults.
To the guest it will provide the pfault interface, but internally it uses the
async page fault common code. 

The inital submission and it's discussion can be followed on http://www.mail-archive.com/kvm@vger.kernel.org/msg63359.html . 

There is a slight modification for common code to move from a pull to a push based approch on s390. 
As s390 we don't want to wait till we leave the guest state to queue the notification interrupts.

To use this feature the controlling userspace hase to enable the capability.
With that knob we can later on disable this feature for live migration.

v3 -> v4
 - Change "done" interrupts from local to floating
 - Add a comment for clarification
 - Change KVM_HAVE_ERR_BAD to move s390 implementation to s390 backend 

v2 -> v3
 - Reworked the architecture specific parts, to only provide on addtional
   implementation
 - Renamed function to kvm_async_page_present_(sync|async)
 - Fixing KVM_HVA_ERR_BAD handling

v1 -> v2:
 - Adding other architecture backends
 - Adding documentation for the ioctl
 - Improving the overall error handling
 - Reducing the needed modifications on the common code

Dominik Dingel (4):
  PF: Add FAULT_FLAG_RETRY_NOWAIT for guest fault
  PF: Make KVM_HVA_ERR_BAD usable on s390
  PF: Provide additional direct page notification
  PF: Async page fault support on s390

 Documentation/s390/kvm.txt        |  24 ++++++++
 arch/s390/include/asm/kvm_host.h  |  30 ++++++++++
 arch/s390/include/asm/pgtable.h   |   2 +
 arch/s390/include/asm/processor.h |   1 +
 arch/s390/include/uapi/asm/kvm.h  |  10 ++++
 arch/s390/kvm/Kconfig             |   2 +
 arch/s390/kvm/Makefile            |   2 +-
 arch/s390/kvm/diag.c              |  63 ++++++++++++++++++++
 arch/s390/kvm/interrupt.c         |  43 +++++++++++---
 arch/s390/kvm/kvm-s390.c          | 118 ++++++++++++++++++++++++++++++++++++++
 arch/s390/kvm/kvm-s390.h          |   4 ++
 arch/s390/kvm/sigp.c              |   6 ++
 arch/s390/mm/fault.c              |  26 +++++++--
 arch/x86/kvm/mmu.c                |   2 +-
 include/linux/kvm_host.h          |  10 +++-
 include/uapi/linux/kvm.h          |   2 +
 virt/kvm/Kconfig                  |   4 ++
 virt/kvm/async_pf.c               |  22 ++++++-
 18 files changed, 354 insertions(+), 17 deletions(-)

-- 
1.8.2.2


^ permalink raw reply	[flat|nested] 26+ messages in thread
* [PATCH v3 0/4] Enable async page faults on s390
@ 2013-07-09 13:56 Dominik Dingel
  2013-07-09 13:56   ` Dominik Dingel
  0 siblings, 1 reply; 26+ messages in thread
From: Dominik Dingel @ 2013-07-09 13:56 UTC (permalink / raw)
  To: Gleb Natapov, Paolo Bonzini
  Cc: Christian Borntraeger, Heiko Carstens, Martin Schwidefsky,
	Cornelia Huck, Xiantao Zhang, Alexander Graf, Christoffer Dall,
	Marc Zyngier, Ralf Baechle, kvm, linux-s390, linux-mm,
	linux-kernel, Dominik Dingel

Gleb, Paolo, 

based on the work from Martin and Carsten, this implementation enables async page faults.
To the guest it will provide the pfault interface, but internally it uses the
async page fault common code. 

The inital submission and it's discussion can be followed on http://www.mail-archive.com/kvm@vger.kernel.org/msg63359.html . 

There is a slight modification for common code to move from a pull to a push based approch on s390. 
As s390 we don't want to wait till we leave the guest state to queue the notification interrupts.

To use this feature the controlling userspace hase to enable the capability.
With that knob we can later on disable this feature for live migration.

v2 -> v3
 - Reworked the architecture specific parts, to only provide on addtional
   implementation
 - Renamed function to kvm_async_page_present_(sync|async)
 - Fixing KVM_HVA_ERR_BAD handling

v1 -> v2:
 - Adding other architecture backends
 - Adding documentation for the ioctl
 - Improving the overall error handling
 - Reducing the needed modifications on the common code


Dominik Dingel (4):
  PF: Add FAULT_FLAG_RETRY_NOWAIT for guest fault
  PF: Make KVM_HVA_ERR_BAD usable on s390
  PF: Provide additional direct page notification
  PF: Async page fault support on s390

 Documentation/s390/kvm.txt        |  24 +++++++++
 arch/s390/include/asm/kvm_host.h  |  22 ++++++++
 arch/s390/include/asm/pgtable.h   |   2 +
 arch/s390/include/asm/processor.h |   1 +
 arch/s390/include/uapi/asm/kvm.h  |  10 ++++
 arch/s390/kvm/Kconfig             |   2 +
 arch/s390/kvm/Makefile            |   2 +-
 arch/s390/kvm/diag.c              |  57 ++++++++++++++++++++
 arch/s390/kvm/interrupt.c         |  38 ++++++++++---
 arch/s390/kvm/kvm-s390.c          | 111 ++++++++++++++++++++++++++++++++++++++
 arch/s390/kvm/kvm-s390.h          |   4 ++
 arch/s390/kvm/sigp.c              |   2 +
 arch/s390/mm/fault.c              |  26 +++++++--
 arch/x86/kvm/mmu.c                |   2 +-
 include/linux/kvm_host.h          |  16 +++++-
 include/uapi/linux/kvm.h          |   2 +
 virt/kvm/Kconfig                  |   4 ++
 virt/kvm/async_pf.c               |  22 ++++++--
 18 files changed, 330 insertions(+), 17 deletions(-)

-- 
1.8.2.2


^ permalink raw reply	[flat|nested] 26+ messages in thread
* [RFC PATCH v2 0/4] Enable async page faults on s390
@ 2013-07-05 20:55 Dominik Dingel
  2013-07-05 20:55   ` Dominik Dingel
  0 siblings, 1 reply; 26+ messages in thread
From: Dominik Dingel @ 2013-07-05 20:55 UTC (permalink / raw)
  To: Gleb Natapov, Paolo Bonzini
  Cc: Christian Borntraeger, Heiko Carstens, Martin Schwidefsky,
	Xiantao Zhang, Alexander Graf, Christoffer Dall, Marc Zyngier,
	Ralf Baechle, kvm, linux-s390, linux-mm, linux-kernel,
	Dominik Dingel

Gleb, Paolo, 

based on the work from Martin and Carsten, this implementation enables async page faults.
To the guest it will provide the pfault interface, but internally it uses the
async page fault common code. 

The inital submission and it's discussion can be followed on http://www.mail-archive.com/kvm@vger.kernel.org/msg63359.html .

There is a slight modification for common code to move from a pull to a push based approch on s390. 
As s390 we don't want to wait till we leave the guest state to queue the notification interrupts.

To use this feature the controlling userspace hase to enable the capability.
With that knob we can later on disable this feature for live migration.

v1 -> v2:
 - Adding other architecture backends
 - Adding documentation for the ioctl
 - Improving the overall error handling
 - Reducing the needed modifications on the common code

Dominik Dingel (4):
  PF: Add FAULT_FLAG_RETRY_NOWAIT for guest fault
  PF: Move architecture specifics to the backends
  PF: Provide additional direct page notification
  PF: Async page fault support on s390

 Documentation/s390/kvm.txt          |  24 ++++++++
 arch/arm/include/asm/kvm_host.h     |   8 +++
 arch/ia64/include/asm/kvm_host.h    |   3 +
 arch/mips/include/asm/kvm_host.h    |   6 ++
 arch/powerpc/include/asm/kvm_host.h |   8 +++
 arch/s390/include/asm/kvm_host.h    |  34 +++++++++++
 arch/s390/include/asm/pgtable.h     |   2 +
 arch/s390/include/asm/processor.h   |   1 +
 arch/s390/include/uapi/asm/kvm.h    |  10 ++++
 arch/s390/kvm/Kconfig               |   2 +
 arch/s390/kvm/Makefile              |   2 +-
 arch/s390/kvm/diag.c                |  57 ++++++++++++++++++
 arch/s390/kvm/interrupt.c           |  38 +++++++++---
 arch/s390/kvm/kvm-s390.c            | 111 ++++++++++++++++++++++++++++++++++++
 arch/s390/kvm/kvm-s390.h            |   4 ++
 arch/s390/kvm/sigp.c                |   2 +
 arch/s390/mm/fault.c                |  26 +++++++--
 arch/x86/include/asm/kvm_host.h     |   8 +++
 arch/x86/kvm/mmu.c                  |   2 +-
 include/linux/kvm_host.h            |  10 +---
 include/uapi/linux/kvm.h            |   2 +
 virt/kvm/Kconfig                    |   4 ++
 virt/kvm/async_pf.c                 |  22 ++++++-
 23 files changed, 361 insertions(+), 25 deletions(-)

-- 
1.8.2.2


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

end of thread, other threads:[~2013-07-18 14:12 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-10 12:59 [PATCH v4 0/4] Enable async page faults on s390 Dominik Dingel
2013-07-10 12:59 ` Dominik Dingel
2013-07-10 12:59 ` [PATCH 1/4] PF: Add FAULT_FLAG_RETRY_NOWAIT for guest fault Dominik Dingel
2013-07-10 12:59   ` Dominik Dingel
2013-07-10 12:59 ` [PATCH 2/4] PF: Make KVM_HVA_ERR_BAD usable on s390 Dominik Dingel
2013-07-10 12:59   ` Dominik Dingel
2013-07-10 12:59 ` [PATCH 3/4] PF: Provide additional direct page notification Dominik Dingel
2013-07-10 12:59   ` Dominik Dingel
2013-07-10 12:59 ` [PATCH 4/4] PF: Async page fault support on s390 Dominik Dingel
2013-07-10 12:59   ` Dominik Dingel
2013-07-11  9:04   ` Gleb Natapov
2013-07-11  9:04     ` Gleb Natapov
2013-07-11 10:41     ` Christian Borntraeger
2013-07-11 10:41       ` Christian Borntraeger
2013-07-11 10:58       ` Gleb Natapov
2013-07-11 10:58         ` Gleb Natapov
2013-07-18 13:57       ` Paolo Bonzini
2013-07-18 13:57         ` Paolo Bonzini
2013-07-18 14:12         ` Christian Borntraeger
2013-07-18 14:12           ` Christian Borntraeger
  -- strict thread matches above, loose matches on Subject: below --
2013-07-09 13:56 [PATCH v3 0/4] Enable async page faults " Dominik Dingel
2013-07-09 13:56 ` [PATCH 4/4] PF: Async page fault support " Dominik Dingel
2013-07-09 13:56   ` Dominik Dingel
2013-07-10  8:18   ` Christian Borntraeger
2013-07-10  8:18     ` Christian Borntraeger
2013-07-05 20:55 [RFC PATCH v2 0/4] Enable async page faults " Dominik Dingel
2013-07-05 20:55 ` [PATCH 4/4] PF: Async page fault support " Dominik Dingel
2013-07-05 20:55   ` Dominik Dingel

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.