aboutsummaryrefslogtreecommitdiffstats
path: root/virt
AgeCommit message (Expand)AuthorFilesLines
14 daysMerge branch 'kvm-lockdep-common' into HEADPaolo Bonzini1-0/+59
2025-05-27KVM: add kvm_lock_all_vcpus and kvm_trylock_all_vcpusMaxim Levitsky1-0/+59
2025-05-27Merge tag 'kvm-x86-svm-6.16' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-4/+15
2025-05-08KVM: Remove obsolete comment about locking for kvm_io_bus_read/writeLi RongQing1-3/+0
2025-04-24KVM: SVM: Fix SNP AP destroy race with VMRUNTom Lendacky1-4/+15
2025-04-07Merge branch 'kvm-tdx-initial' into HEADPaolo Bonzini2-22/+15
2025-04-07Merge branch 'kvm-6.15-rc2-fixes' into HEADPaolo Bonzini2-6/+6
2025-04-04KVM: Allow building irqbypass.ko as as module when kvm.ko is a moduleSean Christopherson2-6/+6
2025-03-25Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds2-24/+44
2025-03-24Merge tag 'vfs-6.15-rc1.misc' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-7/+4
2025-03-20Merge branch 'kvm-nvmx-and-vm-teardown' into HEADPaolo Bonzini1-1/+8
2025-03-14KVM: TDX: Handle TDX PV MMIO hypercallSean Christopherson1-0/+1
2025-03-14KVM: Add parameter "kvm" to kvm_cpu_dirty_log_size() and its callersYan Zhao2-7/+8
2025-03-14KVM: VMX: Initialize TDX during KVM module loadKai Huang1-1/+2
2025-03-14KVM: Export hardware virtualization enabling/disabling functionsKai Huang1-14/+4
2025-02-26KVM: Drop kvm_arch_sync_events() now that all implementations are nopsSean Christopherson1-1/+0
2025-02-26KVM: Assert that a destroyed/freed vCPU is no longer visibleSean Christopherson1-0/+8
2025-02-21make use of anon_inode_getfile_fmode()Al Viro1-7/+4
2025-02-14KVM: Allow lockless walk of SPTEs when handing aging mmu_notifier eventJames Houghton2-7/+20
2025-02-12KVM: Rename kvm_handle_hva_range()James Houghton1-16/+16
2025-02-04KVM: remove kvm_arch_post_init_vmPaolo Bonzini1-15/+0
2025-01-31KVM: Do not restrict the size of KVM-internal memory regionsSean Christopherson1-1/+9
2025-01-20Merge branch 'kvm-mirror-page-tables' into HEADPaolo Bonzini2-13/+37
2025-01-20Merge tag 'kvm-x86-vcpu_array-6.14' of https://github.com/kvm-x86/linux into ...Paolo Bonzini1-16/+52
2025-01-14KVM: Disallow all flags for KVM-internal memslotsSean Christopherson1-0/+3
2025-01-14KVM: x86: Drop double-underscores from __kvm_set_memory_region()Sean Christopherson1-4/+4
2025-01-14KVM: Add a dedicated API for setting KVM-internal memslotsSean Christopherson1-3/+12
2025-01-14KVM: Assert slots_lock is held when setting memory regionsSean Christopherson1-8/+2
2025-01-14KVM: Open code kvm_set_memory_region() into its sole caller (ioctl() API)Sean Christopherson1-13/+2
2024-12-23KVM: Add member to struct kvm_gfn_range to indicate private/sharedIsaku Yamahata2-0/+16
2024-12-23KVM: guest_memfd: Remove RCU-protected attribute from slot->gmem.fileYan Zhao1-13/+21
2024-12-16KVM: Drop hack that "manually" informs lockdep of kvm->lock vs. vcpu->mutexSean Christopherson1-7/+2
2024-12-16KVM: Don't BUG() the kernel if xa_insert() fails with -EBUSYSean Christopherson1-1/+1
2024-12-16Revert "KVM: Fix vcpu_array[0] races"Sean Christopherson1-9/+5
2024-12-16KVM: Grab vcpu->mutex across installing the vCPU's fd and bumping online_vcpusSean Christopherson1-1/+46
2024-11-27Merge tag 'vfio-v6.13-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds1-1/+1
2024-11-23Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds5-557/+373
2024-11-18Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds2-22/+7
2024-11-14KVM: x86: switch hugepage recovery thread to vhost_taskPaolo Bonzini1-103/+0
2024-11-13Merge tag 'kvm-x86-mmu-6.13' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini2-14/+10
2024-11-13Merge tag 'kvm-x86-generic-6.13' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-60/+83
2024-11-08Merge tag 'kvm-riscv-6.13-1' of https://github.com/kvm-riscv/linux into HEADPaolo Bonzini1-1/+1
2024-11-03assorted variants of irqfd setup: convert to CLASS(fd)Al Viro1-12/+3
2024-11-03fdget(), more trivial conversionsAl Viro1-4/+2
2024-11-03fdget(), trivial conversionsAl Viro1-6/+2
2024-10-30KVM: Allow arch code to elide TLB flushes when aging a young pageSean Christopherson2-14/+10
2024-10-30KVM: Protect vCPU's "last run PID" with rwlock, not RCUSean Christopherson1-14/+25
2024-10-30KVM: Return '0' directly when there's no task to yield toSean Christopherson1-2/+2
2024-10-30KVM: Rework core loop of kvm_vcpu_on_spin() to use a single for-loopSean Christopherson1-44/+56
2024-10-30kvm/vfio: Constify struct kvm_device_opsChristophe JAILLET1-1/+1
2024-10-25KVM: Don't grab reference on VM_MIXEDMAP pfns that have a "struct page"Sean Christopherson1-73/+2
2024-10-25KVM: Drop APIs that manipulate "struct page" via pfnsSean Christopherson1-55/+0
2024-10-25KVM: Make kvm_follow_pfn.refcounted_page a required fieldSean Christopherson1-2/+4
2024-10-25KVM: Drop gfn_to_pfn() APIs now that all users are goneSean Christopherson1-53/+0
2024-10-25KVM: Add support for read-only usage of gfn_to_page()Sean Christopherson1-7/+8
2024-10-25KVM: Convert gfn_to_page() to use kvm_follow_pfn()Sean Christopherson1-7/+9
2024-10-25KVM: guest_memfd: Provide "struct page" as output from kvm_gmem_get_pfn()Sean Christopherson1-2/+6
2024-10-25KVM: guest_memfd: Pass index, not gfn, to __kvm_gmem_get_pfn()Sean Christopherson1-7/+13
2024-10-25KVM: Add kvm_faultin_pfn() to specifically service guest page faultsSean Christopherson1-0/+22
2024-10-25KVM: Disallow direct access (w/o mmu_notifier) to unpinned pfn by defaultSean Christopherson1-0/+18
2024-10-25KVM: Get writable mapping for __kvm_vcpu_map() only when necessarySean Christopherson1-1/+1
2024-10-25KVM: Pass in write/dirty to kvm_vcpu_map(), not kvm_vcpu_unmap()Sean Christopherson1-5/+7
2024-10-25KVM: Pin (as in FOLL_PIN) pages during kvm_vcpu_map()Sean Christopherson2-15/+46
2024-10-25KVM: Migrate kvm_vcpu_map() to kvm_follow_pfn()David Stevens1-10/+16
2024-10-25KVM: pfncache: Precisely track refcounted pagesSean Christopherson1-4/+7
2024-10-25KVM: Move kvm_{set,release}_page_{clean,dirty}() helpers up in kvm_main.cSean Christopherson1-41/+41
2024-10-25KVM: Provide refcounted page as output field in struct kvm_follow_pfnSean Christopherson2-52/+56
2024-10-25KVM: Use plain "struct page" pointer instead of single-entry arraySean Christopherson1-3/+3
2024-10-25KVM: Use NULL for struct page pointer to indicate mremapped memorySean Christopherson1-2/+2
2024-10-25KVM: Explicitly initialize all fields at the start of kvm_vcpu_map()Sean Christopherson1-18/+10
2024-10-25KVM: Remove pointless sanity check on @map param to kvm_vcpu_(un)map()Sean Christopherson1-6/+0
2024-10-25KVM: Introduce kvm_follow_pfn() to eventually replace "gfn_to_pfn" APIsDavid Stevens3-80/+107
2024-10-25KVM: Drop unused "hva" pointer from __gfn_to_pfn_memslot()Sean Christopherson1-6/+3
2024-10-25KVM: Replace "async" pointer in gfn=>pfn with "no_wait" and error codeDavid Stevens3-16/+17
2024-10-25KVM: Drop extra GUP (via check_user_page_hwpoison()) to detect poisoned pageSean Christopherson1-15/+2
2024-10-25KVM: Return ERR_SIGPENDING from hva_to_pfn() if GUP returns -EGAINSean Christopherson1-1/+1
2024-10-25KVM: Annotate that all paths in hva_to_pfn() might sleepSean Christopherson1-2/+2
2024-10-25KVM: Drop @atomic param from gfn=>pfn and hva=>pfn APIsSean Christopherson3-28/+11
2024-10-25KVM: Rename gfn_to_page_many_atomic() to kvm_prefetch_pages()Sean Christopherson1-3/+3
2024-10-25KVM: Allow calling kvm_release_page_{clean,dirty}() on a NULL page pointerSean Christopherson1-2/+2
2024-10-25KVM: Drop KVM_ERR_PTR_BAD_PAGE and instead return NULL to indicate an errorSean Christopherson1-9/+6
2024-10-21Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds1-12/+0
2024-10-20KVM: Remove unused kvm_vcpu_gfn_to_pfn_atomicDr. David Alan Gilbert1-6/+0
2024-10-20KVM: Remove unused kvm_vcpu_gfn_to_pfnDr. David Alan Gilbert1-6/+0
2024-10-14sched/fair: Fix external p->on_rq usersPeter Zijlstra1-1/+1
2024-09-28Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds2-160/+152
2024-09-27[tree-wide] finally take no_llseek outAl Viro1-1/+0
2024-09-23Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds2-7/+7
2024-09-17Merge tag 'kvm-x86-generic-6.12' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini2-24/+18
2024-09-17KVM: use follow_pfnmap APIPeter Xu1-12/+7
2024-09-09KVM: Harden guest memory APIs against out-of-bounds accessesSean Christopherson1-0/+9
2024-09-09KVM: Write the per-page "segment" when clearing (part of) a guest pageSean Christopherson1-1/+1
2024-09-04KVM: Add arch hooks for enabling/disabling virtualizationSean Christopherson1-0/+14
2024-09-04KVM: Add a module param to allow enabling virtualization when KVM is loadedSean Christopherson1-0/+35
2024-09-04KVM: Rename arch hooks related to per-CPU virtualization enablingSean Christopherson1-2/+2
2024-09-04KVM: Rename symbols related to enabling virtualization hardwareSean Christopherson1-21/+21
2024-09-04KVM: Register cpuhp and syscore callbacks when enabling hardwareSean Christopherson1-113/+61
2024-09-04KVM: Use dedicated mutex to protect kvm_usage_count to avoid deadlockSean Christopherson1-15/+16
2024-08-29KVM: Clean up coalesced MMIO ring full checkSean Christopherson1-21/+8
2024-08-23KVM: Fix coalesced_mmio_has_room() to avoid premature userspace exitIlias Stamatis1-3/+1
2024-08-14KVM: x86: Disallow read-only memslots for SEV-ES and SEV-SNP (and TDX)Sean Christopherson1-3/+2
2024-08-13KVM: eventfd: Use synchronize_srcu_expedited() on shutdownLi RongQing1-6/+7
2024-08-12introduce fd_file(), convert all accessors to it.Al Viro2-7/+7
2024-07-26KVM: guest_memfd: abstract how prepared folios are recordedPaolo Bonzini1-13/+20
2024-07-26KVM: guest_memfd: let kvm_gmem_populate() operate only on private gfnsPaolo Bonzini1-0/+12
2024-07-26KVM: extend kvm_range_has_memory_attributes() to check subset of attributesPaolo Bonzini1-6/+7
2024-07-26KVM: cleanup and add shortcuts to kvm_range_has_memory_attributes()Paolo Bonzini1-22/+20
2024-07-26KVM: guest_memfd: move check for already-populated page to common codePaolo Bonzini1-0/+7
2024-07-26KVM: remove kvm_arch_gmem_prepare_needed()Paolo Bonzini1-10/+3
2024-07-26KVM: guest_memfd: make kvm_gmem_prepare_folio() operate on a single struct kvmPaolo Bonzini1-30/+19
2024-07-26KVM: guest_memfd: delay kvm_gmem_prepare_folio() until the memory is passed t...Paolo Bonzini1-44/+66
2024-07-26KVM: guest_memfd: return locked folio from __kvm_gmem_get_pfnPaolo Bonzini1-1/+4
2024-07-26KVM: rename CONFIG_HAVE_KVM_GMEM_* to CONFIG_HAVE_KVM_ARCH_GMEM_*Paolo Bonzini2-5/+5
2024-07-26KVM: guest_memfd: do not go through struct pagePaolo Bonzini1-10/+17
2024-07-26KVM: guest_memfd: delay folio_mark_uptodate() until after successful preparationPaolo Bonzini1-2/+4
2024-07-26KVM: guest_memfd: return folio from __kvm_gmem_get_pfn()Paolo Bonzini1-17/+20
2024-07-16Merge tag 'kvm-x86-generic-6.11' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini3-25/+58
2024-07-16Merge tag 'kvm-x86-fixes-6.10-11' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-0/+3
2024-07-12Merge tag 'loongarch-kvm-6.11' of git://git.kernel.org/pub/scm/linux/kernel/g...Paolo Bonzini1-3/+5
2024-07-12Merge branch 'kvm-prefault' into HEADPaolo Bonzini2-0/+63
2024-07-12KVM: Add KVM_PRE_FAULT_MEMORY vcpu ioctl to pre-populate guest memoryIsaku Yamahata2-0/+63
2024-07-12mm, virt: merge AS_UNMOVABLE and AS_INACCESSIBLEPaolo Bonzini1-2/+1
2024-06-28KVM: Add missing MODULE_DESCRIPTION()Jeff Johnson1-4/+2
2024-06-28KVM: Validate hva in kvm_gpc_activate_hva() to fix __kvm_gpc_refresh() WARNPei Li1-0/+3
2024-06-21Merge tag 'kvm-x86-fixes-6.10-rcN' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-3/+5
2024-06-20Merge branch 'kvm-6.10-fixes' into HEADPaolo Bonzini3-9/+11
2024-06-20KVM: interrupt kvm_gmem_populate() on signalsPaolo Bonzini1-0/+5
2024-06-20KVM: Discard zero mask with function kvm_dirty_ring_resetBibo Mao1-0/+3
2024-06-20virt: guest_memfd: fix reference leak on hwpoisoned pagePaolo Bonzini1-2/+3
2024-06-20kvm: do not account temporary allocations to kmemAlexey Dobriyan1-6/+5
2024-06-18KVM: Mark a vCPU as preempted/ready iff it's scheduled out while runningDavid Matlack1-1/+1
2024-06-18KVM: Ensure new code that references immediate_exit gets extra scrutinyDavid Matlack1-1/+1
2024-06-18KVM: Introduce vcpu->wants_to_runDavid Matlack1-0/+3
2024-06-18KVM: Reject overly excessive IDs in KVM_CREATE_VCPUMathias Krause1-1/+10
2024-06-18KVM: Stop processing *all* memslots when "null" mmu_notifier handler is foundBabu Moger1-1/+2
2024-06-14KVM: Fix a goof where kvm_create_vm() returns 0 instead of -ENOMEMDan Carpenter1-2/+3
2024-06-11KVM: Delete the now unused kvm_arch_sched_in()Sean Christopherson1-1/+0
2024-06-11KVM: Add a flag to track if a loaded vCPU is scheduled outSean Christopherson1-0/+4
2024-06-11KVM: Setup empty IRQ routing when creating a VMYi Wang2-0/+31
2024-06-05KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()Breno Leitao1-2/+3
2024-06-03Merge branch 'kvm-6.11-sev-snp' into HEADPaolo Bonzini2-23/+152
2024-06-03Revert "KVM: async_pf: avoid recursive flushing of work items"Sean Christopherson1-12/+1
2024-06-03KVM: Enable halt polling shrink parameter by defaultParshuram Sangle1-2/+2
2024-06-03KVM: Unexport kvm_debugfs_dirBorislav Petkov1-2/+1
2024-05-19Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-2/+2
2024-05-12KVM: SEV: Implement gmem hook for initializing private pagesMichael Roth1-2/+2
2024-05-12Merge branch 'kvm-coco-hooks' into HEADPaolo Bonzini2-23/+152
2024-05-12Merge tag 'kvm-x86-misc-6.10' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-1/+1
2024-05-12Merge tag 'kvm-x86-generic-6.10' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-19/+8
2024-05-12Merge tag 'kvmarm-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kv...Paolo Bonzini2-3/+13
2024-05-10Merge tag 'loongarch-kvm-6.10' of git://git.kernel.org/pub/scm/linux/kernel/g...Paolo Bonzini3-21/+38
2024-05-10KVM: guest_memfd: Add hook for invalidating memoryMichael Roth2-0/+18
2024-05-10KVM: guest_memfd: Add interface for populating gmem pages with user dataPaolo Bonzini1-0/+52
2024-05-10KVM: guest_memfd: extract __kvm_gmem_get_pfn()Paolo Bonzini1-16/+24
2024-05-10KVM: guest_memfd: Add hook for initializing memoryPaolo Bonzini2-3/+52
2024-05-10KVM: guest_memfd: limit overzealous WARNPaolo Bonzini1-1/+2
2024-05-10KVM: guest_memfd: pass error up from filemap_grab_folioPaolo Bonzini1-6/+6
2024-05-10KVM: guest_memfd: Use AS_INACCESSIBLE when creating guest_memfd inodeMichael Roth1-0/+1
2024-05-05mm: pass VMA instead of MM to follow_pte()David Hildenbrand1-2/+2
2024-05-02KVM: Remove kvm_make_all_cpus_request_except()Venkatesh Srinivas1-11/+2
2024-04-25KVM: Treat the device list as an rculistOliver Upton2-3/+13
2024-04-19KVM: Allow page-sized MMU caches to be initialized with custom 64-bit valuesSean Christopherson1-2/+14
2024-04-11KVM: Drop unused @may_block param from gfn_to_pfn_cache_invalidate_start()Sean Christopherson3-7/+4
2024-04-11KVM: remove unused argument of kvm_handle_hva_range()Paolo Bonzini1-6/+1
2024-04-11KVM: delete .change_pte MMU notifier callbackPaolo Bonzini1-43/+0
2024-04-09KVM: Simplify error handling in __gfn_to_pfn_memslot()Anish Moorthy1-7/+3
2024-04-09KVM: Add function comments for __kvm_read/write_guest_page()Anish Moorthy1-0/+2
2024-04-09KVM: Clarify meaning of hva_to_pfn()'s 'atomic' parameterAnish Moorthy1-1/+1
2024-04-09KVM: Use vfree for memory allocated by vcalloc()/__vcalloc()Li RongQing1-1/+1
2024-04-08KVM: Explicitly disallow activatating a gfn_to_pfn_cache with INVALID_GPASean Christopherson1-0/+7
2024-04-08KVM: Check validity of offset+length of gfn_to_pfn_cache prior to activationSean Christopherson1-7/+9
2024-04-08KVM: Add helpers to consolidate gfn_to_pfn_cache's page split checkSean Christopherson1-8/+19
2024-03-11Merge tag 'kvm-x86-xen-6.9' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-108/+143
2024-03-11Merge tag 'kvm-x86-misc-6.9' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-1/+20
2024-03-11Merge tag 'kvm-x86-generic-6.9' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-2/+4
2024-03-11Merge tag 'kvm-x86-asyncpf-6.9' of https://github.com/kvm-x86/linux into HEADPaolo Bonzini1-24/+49
2024-03-11Merge tag 'kvmarm-6.9' of https://git.kernel.org/pub/scm/linux/kernel/git/kvm...Paolo Bonzini1-6/+2
2024-03-09Merge tag 'kvm-x86-guest_memfd_fixes-6.8' of https://github.com/kvm-x86/linux...Paolo Bonzini1-1/+7
2024-03-04KVM: pfncache: simplify locking and make more self-containedDavid Woodhouse1-10/+11
2024-02-23KVM: Get rid of return value from kvm_arch_create_vm_debugfs()Oliver Upton1-6/+2
2024-02-22KVM: Make KVM_MEM_GUEST_MEMFD mutually exclusive with KVM_MEM_READONLYSean Christopherson1-1/+7
2024-02-22KVM: fix kvm_mmu_memory_cache allocation warningArnd Bergmann1-1/+1
2024-02-22KVM: Add a comment explaining the directed yield pending interrupt logicSean Christopherson1-0/+7
2024-02-22KVM: Add dedicated arch hook for querying if vCPU was preempted in-kernelSean Christopherson1-1/+13
2024-02-22KVM: pfncache: check the need for invalidation under read lock firstPaul Durrant1-3/+19
2024-02-20KVM: pfncache: allow a cache to be activated with a fixed (userspace) HVAPaul Durrant1-28/+70
2024-02-20KVM: pfncache: include page offset in uhva and use it consistentlyPaul Durrant1-8/+21
2024-02-20KVM: pfncache: stop open-coding offset_in_page()Paul Durrant1-3/+3
2024-02-20KVM: pfncache: remove KVM_GUEST_USES_PFN usagePaul Durrant1-52/+9
2024-02-20KVM: pfncache: remove unnecessary exportsPaul Durrant1-5/+0
2024-02-20KVM: pfncache: Add a map helper functionPaul Durrant1-18/+29
2024-02-08Merge branch 'kvm-kconfig'Paolo Bonzini1-3/+1
2024-02-08treewide: remove CONFIG_HAVE_KVMPaolo Bonzini1-3/+0
2024-02-08kvm: move "select IRQ_BYPASS_MANAGER" to common codePaolo Bonzini1-0/+1
2024-02-08kvm: replace __KVM_HAVE_READONLY_MEM with Kconfig symbolPaolo Bonzini2-1/+4
2024-02-06KVM: Nullify async #PF worker's "apf" pointer as soon as it might be freedSean Christopherson1-5/+6
2024-02-06KVM: Get reference to VM's address space in the async #PF workerSean Christopherson1-14/+18
2024-02-06KVM: Put mm immediately after async #PF worker completes remote gup()Sean Christopherson1-2/+1
2024-02-06KVM: Always flush async #PF workqueue when vCPU is being destroyedSean Christopherson1-5/+26
2024-01-29KVM: Harden against unpaired kvm_mmu_notifier_invalidate_range_end() callsSean Christopherson1-1/+3