diff mbox series

KVM: Change non-existent ioctl comment "KVM_CREATE_MEMORY_REGION" to "KVM_SET_MEMORY_REGION"

Message ID 20221130064325.386359-1-lei4.wang@intel.com (mailing list archive)
State New, archived
Headers show
Series KVM: Change non-existent ioctl comment "KVM_CREATE_MEMORY_REGION" to "KVM_SET_MEMORY_REGION" | expand

Commit Message

Lei Wang Nov. 30, 2022, 6:43 a.m. UTC
ioctl "KVM_CREATE_MEMORY_REGION" doesn't exist and should be
"KVM_SET_MEMORY_REGION", change the comment.

No functional change intended.

Signed-off-by: Lei Wang <lei4.wang@intel.com>
---
 include/uapi/linux/kvm.h       | 2 +-
 tools/include/uapi/linux/kvm.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Sean Christopherson Nov. 30, 2022, 3:36 p.m. UTC | #1
On Tue, Nov 29, 2022, Lei Wang wrote:
> ioctl "KVM_CREATE_MEMORY_REGION" doesn't exist and should be
> "KVM_SET_MEMORY_REGION", change the comment.

Heh, no need, KVM_SET_MEMORY_REGION will soon not exist either.

https://lore.kernel.org/all/Y4T+SY9SZIRFBdBM@google.com
Lei Wang Dec. 1, 2022, 1:01 a.m. UTC | #2
On 11/30/2022 11:36 PM, Sean Christopherson wrote:
> On Tue, Nov 29, 2022, Lei Wang wrote:
>> ioctl "KVM_CREATE_MEMORY_REGION" doesn't exist and should be
>> "KVM_SET_MEMORY_REGION", change the comment.
> 
> Heh, no need, KVM_SET_MEMORY_REGION will soon not exist either.
> 
> https://lore.kernel.org/all/Y4T+SY9SZIRFBdBM@google.com

Oh, didn't notice that, thanks!
diff mbox series

Patch

diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 0d5d4419139a..b1918e6a7f38 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -86,7 +86,7 @@  struct kvm_debug_guest {
 /* *** End of deprecated interfaces *** */
 
 
-/* for KVM_CREATE_MEMORY_REGION */
+/* for KVM_SET_MEMORY_REGION */
 struct kvm_memory_region {
 	__u32 slot;
 	__u32 flags;
diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h
index 0d5d4419139a..b1918e6a7f38 100644
--- a/tools/include/uapi/linux/kvm.h
+++ b/tools/include/uapi/linux/kvm.h
@@ -86,7 +86,7 @@  struct kvm_debug_guest {
 /* *** End of deprecated interfaces *** */
 
 
-/* for KVM_CREATE_MEMORY_REGION */
+/* for KVM_SET_MEMORY_REGION */
 struct kvm_memory_region {
 	__u32 slot;
 	__u32 flags;