Re: [PATCH v4 03/12] kvm: Provide explicit error for kvm_create_guest_memfd()

Peter Xu <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.