Commit 30ee198c authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Paolo Bonzini

KVM: Reference to kvm_userspace_memory_region in doc and comments

There are still references to the removed kvm_memory_region data structure
but the doc and comments should mention struct kvm_userspace_memory_region
instead, since that is what's used by the ioctl that replaced the old one
and this data structure support the same set of flags.
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Message-Id: <20221202105011.185147-4-javierm@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 66a9221d
...@@ -1309,7 +1309,7 @@ yet and must be cleared on entry. ...@@ -1309,7 +1309,7 @@ yet and must be cleared on entry.
__u64 userspace_addr; /* start of the userspace allocated memory */ __u64 userspace_addr; /* start of the userspace allocated memory */
}; };
/* for kvm_memory_region::flags */ /* for kvm_userspace_memory_region::flags */
#define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0)
#define KVM_MEM_READONLY (1UL << 1) #define KVM_MEM_READONLY (1UL << 1)
......
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
#endif #endif
/* /*
* The bit 16 ~ bit 31 of kvm_memory_region::flags are internally used * The bit 16 ~ bit 31 of kvm_userspace_memory_region::flags are internally
* in kvm, other bits are visible for userspace which are defined in * used in kvm, other bits are visible for userspace which are defined in
* include/linux/kvm_h. * include/linux/kvm_h.
*/ */
#define KVM_MEMSLOT_INVALID (1UL << 16) #define KVM_MEMSLOT_INVALID (1UL << 16)
......
...@@ -96,9 +96,9 @@ struct kvm_userspace_memory_region { ...@@ -96,9 +96,9 @@ struct kvm_userspace_memory_region {
}; };
/* /*
* The bit 0 ~ bit 15 of kvm_memory_region::flags are visible for userspace, * The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for
* other bits are reserved for kvm internal use which are defined in * userspace, other bits are reserved for kvm internal use which are defined
* include/linux/kvm_host.h. * in include/linux/kvm_host.h.
*/ */
#define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0)
#define KVM_MEM_READONLY (1UL << 1) #define KVM_MEM_READONLY (1UL << 1)
......
...@@ -96,9 +96,9 @@ struct kvm_userspace_memory_region { ...@@ -96,9 +96,9 @@ struct kvm_userspace_memory_region {
}; };
/* /*
* The bit 0 ~ bit 15 of kvm_memory_region::flags are visible for userspace, * The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for
* other bits are reserved for kvm internal use which are defined in * userspace, other bits are reserved for kvm internal use which are defined
* include/linux/kvm_host.h. *in include/linux/kvm_host.h.
*/ */
#define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0) #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0)
#define KVM_MEM_READONLY (1UL << 1) #define KVM_MEM_READONLY (1UL << 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment