* [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD
@ 2024-04-24 10:33 Carlos López
2024-04-24 15:44 ` Sean Christopherson
2024-05-03 22:13 ` Sean Christopherson
0 siblings, 2 replies; 3+ messages in thread
From: Carlos López @ 2024-04-24 10:33 UTC (permalink / raw)
To: linux-kernel, kvm, linux-doc
Cc: Carlos López, Paolo Bonzini, Jonathan Corbet
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>
---
Documentation/virt/kvm/api.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst
index 0b5a33ee71ee..57bd2b2b1532 100644
--- a/Documentation/virt/kvm/api.rst
+++ b/Documentation/virt/kvm/api.rst
@@ -6316,7 +6316,7 @@ The "flags" field is reserved for future extensions and must be '0'.
:Architectures: none
:Type: vm ioctl
:Parameters: struct kvm_create_guest_memfd(in)
-:Returns: 0 on success, <0 on error
+:Returns: A file descriptor on success, <0 on error
KVM_CREATE_GUEST_MEMFD creates an anonymous file and returns a file descriptor
that refers to it. guest_memfd files are roughly analogous to files created
--
2.35.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD
2024-04-24 10:33 [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD Carlos López
@ 2024-04-24 15:44 ` Sean Christopherson
2024-05-03 22:13 ` Sean Christopherson
1 sibling, 0 replies; 3+ messages in thread
From: Sean Christopherson @ 2024-04-24 15:44 UTC (permalink / raw)
To: Carlos López
Cc: linux-kernel, kvm, linux-doc, Paolo Bonzini, Jonathan Corbet
On Wed, Apr 24, 2024, Carlos López wrote:
> 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>
Ugh, copy+paste fail. Good job me. In case want this backported,
Fixes: a7800aa80ea4 ("KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory")
Reviewed-by: Sean Christopherson <seanjc@google.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD
2024-04-24 10:33 [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD Carlos López
2024-04-24 15:44 ` Sean Christopherson
@ 2024-05-03 22:13 ` Sean Christopherson
1 sibling, 0 replies; 3+ messages in thread
From: Sean Christopherson @ 2024-05-03 22:13 UTC (permalink / raw)
To: Sean Christopherson, linux-kernel, kvm, linux-doc,
Carlos López
Cc: Paolo Bonzini, Jonathan Corbet
On Wed, 24 Apr 2024 12:33:16 +0200, Carlos López wrote:
> 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.
>
>
Applied to kvm-x86 generic, thanks!
[1/1] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD
https://github.com/kvm-x86/linux/commit/2098acaf2445
--
https://github.com/kvm-x86/linux/tree/next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-03 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24 10:33 [PATCH] KVM: fix documentation for KVM_CREATE_GUEST_MEMFD Carlos López
2024-04-24 15:44 ` Sean Christopherson
2024-05-03 22:13 ` Sean Christopherson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).