From: Zongyao Chen <[email protected]>

KVM rejects guest_memfd bindings that overlap an existing binding, but
currently reports -EINVAL from the generic error path.  Return -EEXIST for
binding conflicts and adjust the selftest so it actually reaches the
guest_memfd binding overlap check instead of failing earlier on GPA memslot
overlap.

Zongyao Chen (2):
  KVM: guest_memfd: Return -EEXIST for overlapping bindings
  KVM: selftests: Test guest_memfd binding overlap without GPA overlap

 .../testing/selftests/kvm/set_memory_region_test.c | 14 +++++++-------
 virt/kvm/guest_memfd.c                             |  1 +
 2 files changed, 8 insertions(+), 7 deletions(-)


base-commit: 1d5dcaa3bd65f2e8c9baa14a393d3a2dc5db7524
-- 
2.47.3


Reply via email to