Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: Fix guest_memfd binding overlap errno and selftest
@ 2026-05-18  7:09 ZongYao.Chen
  2026-05-18  7:09 ` [PATCH 1/2] KVM: guest_memfd: Return -EEXIST for overlapping bindings ZongYao.Chen
  2026-05-18  7:09 ` [PATCH 2/2] KVM: selftests: Test guest_memfd binding overlap without GPA overlap ZongYao.Chen
  0 siblings, 2 replies; 9+ messages in thread
From: ZongYao.Chen @ 2026-05-18  7:09 UTC (permalink / raw)
  To: Paolo Bonzini, kvm
  Cc: Shuah Khan, Sean Christopherson, Kirill A . Shutemov, Chao Peng,
	Xiaoyao Li, Ackerley Tng, Tianjia Zhang, Zongyao Chen,
	linux-kselftest, linux-kernel

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-05-19 19:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18  7:09 [PATCH 0/2] KVM: Fix guest_memfd binding overlap errno and selftest ZongYao.Chen
2026-05-18  7:09 ` [PATCH 1/2] KVM: guest_memfd: Return -EEXIST for overlapping bindings ZongYao.Chen
2026-05-18 18:32   ` Sean Christopherson
2026-05-18 20:11   ` Ackerley Tng
2026-05-18  7:09 ` [PATCH 2/2] KVM: selftests: Test guest_memfd binding overlap without GPA overlap ZongYao.Chen
2026-05-18 20:05   ` Ackerley Tng
2026-05-18 20:39     ` Sean Christopherson
2026-05-19 18:35       ` Ackerley Tng
2026-05-19 19:54         ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox