# Re: \[RFC PATCH v11 12/29\] KVM: Add KVM\_CREATE\_GUEST\_MEMFD ioctl() for guest-specific backing memory

- From: Paolo Bonzini \<pbonzini@redhat.com\>
- Date: 2023-07-21 17:18:26 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2023/07/256010
- Thread: https://ratatoskr.run/kvm/2023/07/255721/t.md

```text
On 7/19/23 01:44, Sean Christopherson wrote:
> +	inode = alloc_anon_inode(mnt->mnt_sb);
> +	if (IS_ERR(inode))
> +		return PTR_ERR(inode);
> +
> +	err = security_inode_init_security_anon(inode, &qname, NULL);
> +	if (err)
> +		goto err_inode;
> +

I don't understand the need to have a separate filesystem.  If it is to fully setup the inode before it's given a struct file, why not just export anon_inode_make_secure_inode instead of security_inode_init_security_anon?

Paolo


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
