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

2022-04-08 Thread Sean Christopherson
On Fri, Apr 08, 2022, Chao Peng wrote: > On Mon, Mar 28, 2022 at 09:56:33PM +, Sean Christopherson wrote: > > 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 > > >

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

2022-04-08 Thread Chao Peng
On Mon, Mar 28, 2022 at 09:56:33PM +, Sean Christopherson wrote: > On Thu, Mar 10, 2022, Chao Peng wrote: > > Extend the memslot definition to provide fd-based private memory support > > by adding two new fields (private_fd/private_offset). The memslot then > > can maintain memory for both shar

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

2022-04-08 Thread Chao Peng
On Mon, Mar 28, 2022 at 09:27:32PM +, Sean Christopherson wrote: > On Thu, Mar 10, 2022, Chao Peng wrote: > > Extend the memslot definition to provide fd-based private memory support > > by adding two new fields (private_fd/private_offset). The memslot then > > can maintain memory for both shar

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

2022-03-28 Thread Sean Christopherson
On Thu, Mar 10, 2022, Chao Peng wrote: > Extend the memslot definition to provide fd-based private memory support > by adding two new fields (private_fd/private_offset). The memslot then > can maintain memory for both shared pages and private pages in a single > memslot. Shared pages are provided b

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

2022-03-28 Thread Sean Christopherson
On Thu, Mar 10, 2022, Chao Peng wrote: > Extend the memslot definition to provide fd-based private memory support > by adding two new fields (private_fd/private_offset). The memslot then > can maintain memory for both shared pages and private pages in a single > memslot. Shared pages are provided b

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

2022-03-10 Thread Chao Peng
Extend the memslot definition to provide fd-based private memory support by adding two new fields (private_fd/private_offset). The memslot then can maintain memory for both shared pages and private pages in a single memslot. Shared pages are provided by existing userspace_addr(hva) field and privat