[0/5] KVM: GUEST_MEMFD fixes/restrictions

Message ID 20240222190612.2942589-1-seanjc@google.com
Headers
Series KVM: GUEST_MEMFD fixes/restrictions |

Message

Sean Christopherson Feb. 22, 2024, 7:06 p.m. UTC
  A few minor-ish fixes related to GUEST_MEMFD that I am hoping to squeeze
into 6.8 as the they affect KVM's ABI (especially patch 1).

Sean Christopherson (5):
  KVM: Make KVM_MEM_GUEST_MEMFD mutually exclusive with KVM_MEM_READONLY
  KVM: x86: Update KVM_SW_PROTECTED_VM docs to make it clear they're a
    WIP
  KVM: x86/mmu: Restrict KVM_SW_PROTECTED_VM to the TDP MMU
  KVM: selftests: Create GUEST_MEMFD for relevant invalid flags
    testcases
  KVM: selftests: Add a testcase to verify GUEST_MEMFD and READONLY are
    exclusive

 Documentation/virt/kvm/api.rst                       |  5 +++++
 arch/x86/kvm/Kconfig                                 |  7 ++++---
 arch/x86/kvm/x86.c                                   |  2 +-
 tools/testing/selftests/kvm/set_memory_region_test.c | 12 +++++++++++-
 virt/kvm/kvm_main.c                                  |  8 +++++++-
 5 files changed, 28 insertions(+), 6 deletions(-)


base-commit: 21dbc438dde69ff630b3264c54b94923ee9fcdcf
  

Comments

Sean Christopherson Feb. 23, 2024, 1:35 a.m. UTC | #1
On Thu, 22 Feb 2024 11:06:07 -0800, Sean Christopherson wrote:
> A few minor-ish fixes related to GUEST_MEMFD that I am hoping to squeeze
> into 6.8 as the they affect KVM's ABI (especially patch 1).
> 
> Sean Christopherson (5):
>   KVM: Make KVM_MEM_GUEST_MEMFD mutually exclusive with KVM_MEM_READONLY
>   KVM: x86: Update KVM_SW_PROTECTED_VM docs to make it clear they're a
>     WIP
>   KVM: x86/mmu: Restrict KVM_SW_PROTECTED_VM to the TDP MMU
>   KVM: selftests: Create GUEST_MEMFD for relevant invalid flags
>     testcases
>   KVM: selftests: Add a testcase to verify GUEST_MEMFD and READONLY are
>     exclusive
> 
> [...]

Applied ridiculously quickly to kvm-x86 guest_memfd_fixes, so as to get these
into -next before the weekend.  I purposely put these in a separate branch so
that I can squash fixes, reviews, etc., or drop the branch outright if Paolo
swoops in and grabs 'em.

[1/5] KVM: Make KVM_MEM_GUEST_MEMFD mutually exclusive with KVM_MEM_READONLY
      https://github.com/kvm-x86/linux/commit/e563592224e0
[2/5] KVM: x86: Update KVM_SW_PROTECTED_VM docs to make it clear they're a WIP
      https://github.com/kvm-x86/linux/commit/422692098c4c
[3/5] KVM: x86/mmu: Restrict KVM_SW_PROTECTED_VM to the TDP MMU
      https://github.com/kvm-x86/linux/commit/a1176ef5c92a
[4/5] KVM: selftests: Create GUEST_MEMFD for relevant invalid flags testcases
      https://github.com/kvm-x86/linux/commit/63e5c5a10559
[5/5] KVM: selftests: Add a testcase to verify GUEST_MEMFD and READONLY are exclusive
      https://github.com/kvm-x86/linux/commit/2dfd23830344

--
https://github.com/kvm-x86/linux/tree/next