From: Isaku Yamahata <isaku.yamahata@xxxxxxxxx> This patch series for KVM guest memfd is to have common code base for SEV and TDX. Several minor fixes. Based on this patch series, TDX KVM can defer page clearing without mmu lock. Isaku Yamahata (6): KVM: gmem: Make kvm_gmem_bind return EBADF on wrong fd KVM: gmem: removed duplicated kvm_gmem_init() KVM: gmem: Fix kvm_gmem_issue_arch_invalidate() KVM: gmem: protect kvm_mmu_invalidate_end() KVM: gmem: Avoid race with kvm_gmem_release and mmu notifier RFC: KVM: gmem: Guarantee the order of destruction Michael Roth (2): KVM: gmem, x86: Add gmem hook for initializing private memory KVM: gmem, x86: Add gmem hook for invalidating private memory arch/x86/include/asm/kvm-x86-ops.h | 2 ++ arch/x86/include/asm/kvm_host.h | 4 +++ arch/x86/kvm/mmu/mmu.c | 12 ++++++-- arch/x86/kvm/x86.c | 6 ++++ include/linux/kvm_host.h | 27 ++++++++++++++++++ virt/kvm/guest_mem.c | 46 ++++++++++++++++++++++++++++-- virt/kvm/kvm_main.c | 46 ++++++++++++++++++++++++++++-- 7 files changed, 136 insertions(+), 7 deletions(-) base-commit: 89b6a7b873d72280e85976bbb8fe4998b2ababa8 -- 2.25.1