On Mon, Aug 17, 2026 at 06:05:45AM +0200, Philippe Mathieu-Daudé wrote: > I'd rather avoid kvm_enabled() checks in kvm-specific API (accel/kvm/). > > If ram_block_rebind() is KVM-specific, why expose it as RAMBlock API?
I only started to remember why this patch existed.. after this series applied, kvm_create_guest_memfd() can be invoked from hostmem code, so we need this patch to fail on old kernels that do not support init shared (old kernel case, user triggerable). -- Peter Xu
