Skip to contentSkip to conversation

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

PATCH In review Lei Wang 2 participants 3 messages Nov 30, 2022 – Dec 1, 2022 KVM

lore
Share & tools
lore

Lei Wang

author
#0 lore raw

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

ioctl "KVM_CREATE_MEMORY_REGION" doesn't exist and should be "KVM_SET_MEMORY_REGION", change the comment.

No functional change intended.

---
 include/uapi/linux/kvm.h       | 2 +-
 tools/include/uapi/linux/kvm.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/kvm.h +1 -1
index 0d5d4419139a..b1918e6a7f38 100644
@@ -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;
tools/include/uapi/linux/kvm.h +1 -1
index 0d5d4419139a..b1918e6a7f38 100644
@@ -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;
Signature · 1 line
2.34.1
author
#2 lore raw
Quoted 7 lines · Sean Christopherson
Quoted 2 lines · Lei Wang

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/[email protected]

Oh, didn't notice that, thanks!