[PATCH 0/2] KVM: Fix guest_memfd binding overlap errno and selftest

ZongYao.Chen@linux.alibaba.com posted 2 patches 6 days, 22 hours ago
There is a newer version of this series
.../testing/selftests/kvm/set_memory_region_test.c | 14 +++++++-------
virt/kvm/guest_memfd.c                             |  1 +
2 files changed, 8 insertions(+), 7 deletions(-)
[PATCH 0/2] KVM: Fix guest_memfd binding overlap errno and selftest
Posted by ZongYao.Chen@linux.alibaba.com 6 days, 22 hours ago
From: Zongyao Chen <ZongYao.Chen@linux.alibaba.com>

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