[PATCH v2 0/5] kvm: deliver async_pf to L1 only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux