1. Jan 08, 2024
    • Paolo Bonzini's avatar
      Merge tag 'kvm-x86-hyperv-6.8' of https://github.com/kvm-x86/linux into HEAD · 0afdfd85
      Paolo Bonzini authored
      KVM x86 Hyper-V changes for 6.8:
      
       - Guard KVM-on-HyperV's range-based TLB flush hooks with an #ifdef on
         CONFIG_HYPERV as a minor optimization, and to self-document the code.
      
       - Add CONFIG_KVM_HYPERV to allow disabling KVM support for HyperV "emulation"
         at build time.
      0afdfd85
    • Paolo Bonzini's avatar
      Merge tag 'kvm-x86-generic-6.8' of https://github.com/kvm-x86/linux into HEAD · fb872da8
      Paolo Bonzini authored
      Common KVM changes for 6.8:
      
       - Use memdup_array_user() to harden against overflow.
      
       - Unconditionally advertise KVM_CAP_DEVICE_CTRL for all architectures.
      fb872da8
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD · 5f53d88f
      Paolo Bonzini authored
      KVM/arm64 updates for Linux 6.8
      
      - LPA2 support, adding 52bit IPA/PA capability for 4kB and 16kB
        base granule sizes. Branch shared with the arm64 tree.
      
      - Large Fine-Grained Trap rework, bringing some sanity to the
        feature, although there is more to come. This comes with
        a prefix branch shared with the arm64 tree.
      
      - Some additional Nested Virtualization groundwork, mostly
        introducing the NV2 VNCR support and retargetting the NV
        support to that version of the architecture.
      
      - A small set of vgic fixes and associated cleanups.
      5f53d88f
    • Paolo Bonzini's avatar
      KVM: x86: add missing "depends on KVM" · 78328801
      Paolo Bonzini authored
      Support for KVM software-protected VMs should not be configurable,
      if KVM is not available at all.
      
      Fixes: 89ea60c2
      
       ("KVM: x86: Add support for "protected VMs" that can utilize private memory")
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      78328801
    • Paolo Bonzini's avatar
      KVM: fix direction of dependency on MMU notifiers · 3a373e02
      Paolo Bonzini authored
      
      
      KVM_GENERIC_MEMORY_ATTRIBUTES requires the generic MMU notifier code, because
      it uses kvm_mmu_invalidate_begin/end.  However, it would not work with a bespoke
      implementation of MMU notifiers that does not use KVM_GENERIC_MMU_NOTIFIER,
      because most likely it would not synchronize correctly on invalidation.  So
      the right thing to do is to note the problematic configuration if the
      architecture does not select itself KVM_GENERIC_MMU_NOTIFIER; not to
      enable it blindly.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3a373e02
    • Paolo Bonzini's avatar
      KVM: introduce CONFIG_KVM_COMMON · caadf876
      Paolo Bonzini authored
      CONFIG_HAVE_KVM is currently used by some architectures to either
      enabled the KVM config proper, or to enable host-side code that is
      not part of the KVM module.  However, CONFIG_KVM's "select" statement
      in virt/kvm/Kconfig corresponds to a third meaning, namely to
      enable common Kconfigs required by all architectures that support
      KVM.
      
      These three meanings can be replaced respectively by an
      architecture-specific Kconfig, by IS_ENABLED(CONFIG_KVM), or by
      a new Kconfig symbol that is in turn selected by the
      architecture-specific "config KVM".
      
      Start by introducing such a new Kconfig symbol, CONFIG_KVM_COMMON.
      Unlike CONFIG_HAVE_KVM, it is selected by CONFIG_KVM, not by
      architecture code, and it brings in all dependencies of common
      KVM code.  In particular, INTERVAL_TREE was missing in loongarch
      and riscv, so that is another thing that is fixed.
      
      Fixes: 8132d887
      
       ("KVM: remove CONFIG_HAVE_KVM_EVENTFD", 2023-12-08)
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Closes: https://lore.kernel.org/all/44907c6b-c5bd-4e4a-a921-e4d3825539d8@infradead.org/
      
      
      Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      caadf876
  2. Jan 05, 2024
  3. Jan 03, 2024
  4. Dec 30, 2023
  5. Dec 29, 2023
  6. Dec 24, 2023