All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] kvm: deliver async_pf to L1 only
@ 2016-12-12 14:32 Roman Kagan
  2016-12-12 14:32 ` [PATCH v2 1/5] kvm/x86: skip async_pf when in guest mode Roman Kagan
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Roman Kagan @ 2016-12-12 14:32 UTC (permalink / raw)
  To: Radim Krčmář, Paolo Bonzini, kvm; +Cc: Denis Lunev, Roman Kagan

Async pagefaults should only be injected into L1 guests.

This series tries to make certain that async_pfs are not injected when L2 is
executing on a vCPU, but also that L2 exits to L1 as soon as there are ready
pages, to allow L1 to make better scheduling decisions.

Roman Kagan (5):
  kvm/x86: skip async_pf when in guest mode
  kvm: add helper for testing ready async_pf's
  kvm: kick vcpu when async_pf is resolved
  kvm/vmx: kick L2 guest to L1 by ready async_pf
  kvm/svm: kick L2 guest to L1 by ready async_pf

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
---
v1 -> v2:
 - dropped bogus patch for async_pf msr check
 - included patch to skip async_pf in guest mode as it disappeard from
   kvm/queue
 - avoid breaking s390 build in patch 3

 include/linux/kvm_host.h |  7 +++++++
 arch/x86/kvm/mmu.c       |  2 +-
 arch/x86/kvm/svm.c       | 10 ++++++++++
 arch/x86/kvm/vmx.c       |  9 +++++----
 arch/x86/kvm/x86.c       |  5 +++--
 virt/kvm/async_pf.c      |  8 ++++++--
 6 files changed, 32 insertions(+), 9 deletions(-)

-- 
2.9.3


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

end of thread, other threads:[~2016-12-19 15:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-12 14:32 [PATCH v2 0/5] kvm: deliver async_pf to L1 only Roman Kagan
2016-12-12 14:32 ` [PATCH v2 1/5] kvm/x86: skip async_pf when in guest mode Roman Kagan
2016-12-14 21:21   ` Radim Krčmář
2016-12-15  6:55     ` Roman Kagan
2016-12-15 15:09       ` Radim Krčmář
2016-12-19  7:18         ` Roman Kagan
2016-12-19  9:53           ` Paolo Bonzini
2016-12-19 15:31           ` Radim Krčmář
2016-12-12 14:32 ` [PATCH v2 2/5] kvm: add helper for testing ready async_pf's Roman Kagan
2016-12-12 14:32 ` [PATCH v2 3/5] kvm: kick vcpu when async_pf is resolved Roman Kagan
2016-12-12 14:32 ` [PATCH v2 4/5] kvm/vmx: kick L2 guest to L1 by ready async_pf Roman Kagan
2016-12-12 14:32 ` [PATCH v2 5/5] kvm/svm: " Roman Kagan

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.