Skip to content

Commit 2098aca

Browse files
00xcsean-jc
authored andcommitted
KVM: fix documentation for KVM_CREATE_GUEST_MEMFD
The KVM_CREATE_GUEST_MEMFD ioctl returns a file descriptor, and is documented as such in the description. However, the "Returns" field in the documentation states that the ioctl returns 0 on success. Update this to match the description. Signed-off-by: Carlos López <clopez@suse.de> Fixes: a7800aa ("KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory") Link: https://lore.kernel.org/r/20240424103317.28522-1-clopez@suse.de Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 82e9c84 commit 2098aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/virt/kvm/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6316,7 +6316,7 @@ The "flags" field is reserved for future extensions and must be '0'.
63166316
:Architectures: none
63176317
:Type: vm ioctl
63186318
:Parameters: struct kvm_create_guest_memfd(in)
6319-
:Returns: 0 on success, <0 on error
6319+
:Returns: A file descriptor on success, <0 on error
63206320

63216321
KVM_CREATE_GUEST_MEMFD creates an anonymous file and returns a file descriptor
63226322
that refers to it. guest_memfd files are roughly analogous to files created

0 commit comments

Comments
 (0)