Re: [PATCH v3 00/17] KVM: Add Xen event channel acceleration

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

 



On 3/3/22 16:41, David Woodhouse wrote:
This series adds event channel acceleration for Xen guests. In particular
it allows guest vCPUs to send each other IPIs without having to bounce
all the way out to the userspace VMM in order to do so. Likewise, the
Xen singleshot timer is added, and a version of SCHEDOP_poll. Those
major features are based on Joao and Boris' patches from 2019.

Cleaning up the event delivery into the vcpu_info involved using the new
gfn_to_pfn_cache for that, and that means I ended up doing so for *all*
the places the guest can have a pvclock.

v0: Proof-of-concept RFC

v1:
  • Drop the runstate fix which is merged now.
  • Add Sean's gfn_to_pfn_cache API change at the start of the series.
  • Add KVM self tests
  • Minor bug fixes

v2:
  • Drop dirty handling from gfn_to_pfn_cache
  • Fix !CONFIG_KVM_XEN build and duplicate call to kvm_xen_init_vcpu()

v3:
  • Add KVM_XEN_EVTCHN_RESET to clear all outbound ports.
  • Clean up a stray #if	1 in a part of the the test case that was once
    being recalcitrant.
  • Check kvm_xen_has_pending_events() in kvm_vcpu_has_events() and *not*
    kvm_xen_has_pending_timer() which is checked from elsewhere.
  • Fix warnings noted by the kernel test robot <lkp@xxxxxxxxx>:
     • Make kvm_xen_init_timer() static.
     • Make timer delta calculation use an explicit s64 to fix 32-bit build.

Boris Ostrovsky (1):
       KVM: x86/xen: handle PV spinlocks slowpath

David Woodhouse (12):
       KVM: Remove dirty handling from gfn_to_pfn_cache completely
       KVM: x86/xen: Use gfn_to_pfn_cache for runstate area
       KVM: x86: Use gfn_to_pfn_cache for pv_time
       KVM: x86/xen: Use gfn_to_pfn_cache for vcpu_info
       KVM: x86/xen: Use gfn_to_pfn_cache for vcpu_time_info
       KVM: x86/xen: Make kvm_xen_set_evtchn() reusable from other places
       KVM: x86/xen: Support direct injection of event channel events
       KVM: x86/xen: Add KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID
       KVM: x86/xen: Kernel acceleration for XENVER_version
       KVM: x86/xen: Support per-vCPU event channel upcall via local APIC
       KVM: x86/xen: Advertise and document KVM_XEN_HVM_CONFIG_EVTCHN_SEND
       KVM: x86/xen: Add self tests for KVM_XEN_HVM_CONFIG_EVTCHN_SEND

Joao Martins (3):
       KVM: x86/xen: intercept EVTCHNOP_send from guests
       KVM: x86/xen: handle PV IPI vcpu yield
       KVM: x86/xen: handle PV timers oneshot mode

Sean Christopherson (1):
       KVM: Use enum to track if cached PFN will be used in guest and/or host

  Documentation/virt/kvm/api.rst                     |  133 +-
  arch/x86/include/asm/kvm_host.h                    |   23 +-
  arch/x86/kvm/irq.c                                 |   11 +-
  arch/x86/kvm/irq_comm.c                            |    2 +-
  arch/x86/kvm/x86.c                                 |  119 +-
  arch/x86/kvm/xen.c                                 | 1271 ++++++++++++++++----
  arch/x86/kvm/xen.h                                 |   67 +-
  include/linux/kvm_host.h                           |   26 +-
  include/linux/kvm_types.h                          |   11 +-
  include/uapi/linux/kvm.h                           |   44 +
  .../testing/selftests/kvm/x86_64/xen_shinfo_test.c |  337 +++++-
  virt/kvm/pfncache.c                                |   53 +-
  12 files changed, 1722 insertions(+), 375 deletions(-)




Queued, thanks.

Paolo



[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