Thread (116 messages) 116 messages, 15 authors, 2022-07-25

Re: [PATCH v5 05/13] KVM: Extend the memslot to support fd-based private memory

From: Sean Christopherson <seanjc@google.com>
Date: 2022-04-08 17:45:27
Also in: kvm, linux-fsdevel, linux-mm, lkml, qemu-devel

On Fri, Apr 08, 2022, Chao Peng wrote:
On Mon, Mar 28, 2022 at 09:56:33PM +0000, Sean Christopherson wrote:
quoted
struct kvm_userspace_memory_region_ext {
#ifdef __KERNEL__
Is this #ifndef? As I think anonymous struct is only for kernel?
Doh, yes, I inverted that.
Thanks,
Chao
quoted
	struct kvm_userspace_memory_region region;
#else
	struct kvm_userspace_memory_region;
#endif
	__u64 private_offset;
	__u32 private_fd;
	__u32 padding[5];
};

#ifdef __KERNEL__
#define kvm_user_mem_region kvm_userspace_memory_region_ext
#endif

[*] https://lore.kernel.org/all/20220301145233.3689119-1-arnd@kernel.org (local)
quoted
+	__u64 private_offset;
+	__u32 private_fd;
+	__u32 padding[5];
+};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help