Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-30 Thread David Hildenbrand
On 30.11.23 08:37, Xiaoyao Li wrote: On 11/20/2023 5:24 PM, David Hildenbrand wrote:   uint8_t memory_region_get_dirty_log_mask(MemoryRegion *mr)   {   uint8_t mask = mr->dirty_log_mask; diff --git a/system/physmem.c b/system/physmem.c index fc2b0fee0188..0af2213cbd9c 100644 --- a/system/

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-30 Thread Xiaoyao Li
On 11/18/2023 4:35 AM, Isaku Yamahata wrote: On Wed, Nov 15, 2023 at 02:14:11AM -0500, Xiaoyao Li wrote: diff --git a/system/physmem.c b/system/physmem.c index fc2b0fee0188..0af2213cbd9c 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -1841,6 +1841,20 @@ static void ram_block_add(RAMBl

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-29 Thread Xiaoyao Li
On 11/20/2023 5:24 PM, David Hildenbrand wrote:   uint8_t memory_region_get_dirty_log_mask(MemoryRegion *mr)   {   uint8_t mask = mr->dirty_log_mask; diff --git a/system/physmem.c b/system/physmem.c index fc2b0fee0188..0af2213cbd9c 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -1841

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-29 Thread Xiaoyao Li
On 11/20/2023 5:19 PM, David Hildenbrand wrote: On 16.11.23 03:45, Xiaoyao Li wrote: On 11/16/2023 1:54 AM, David Hildenbrand wrote: On 15.11.23 08:14, Xiaoyao Li wrote: Add KVM guest_memfd support to RAMBlock so both normal hva based memory and kvm guest memfd based private memory can be asso

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-20 Thread David Hildenbrand
uint8_t memory_region_get_dirty_log_mask(MemoryRegion *mr) { uint8_t mask = mr->dirty_log_mask; diff --git a/system/physmem.c b/system/physmem.c index fc2b0fee0188..0af2213cbd9c 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -1841,6 +1841,20 @@ static void ram_block_add(RAMBlock

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-20 Thread David Hildenbrand
On 16.11.23 03:45, Xiaoyao Li wrote: On 11/16/2023 1:54 AM, David Hildenbrand wrote: On 15.11.23 08:14, Xiaoyao Li wrote: Add KVM guest_memfd support to RAMBlock so both normal hva based memory and kvm guest memfd based private memory can be associated in one RAMBlock. Introduce new flag RAM_G

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-17 Thread Isaku Yamahata
On Wed, Nov 15, 2023 at 02:14:11AM -0500, Xiaoyao Li wrote: > diff --git a/system/physmem.c b/system/physmem.c > index fc2b0fee0188..0af2213cbd9c 100644 > --- a/system/physmem.c > +++ b/system/physmem.c > @@ -1841,6 +1841,20 @@ static void ram_block_add(RAMBlock *new_block, Error > **errp) >

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-15 Thread Xiaoyao Li
On 11/15/2023 6:20 PM, Daniel P. Berrangé wrote: On Wed, Nov 15, 2023 at 02:14:11AM -0500, Xiaoyao Li wrote: Add KVM guest_memfd support to RAMBlock so both normal hva based memory and kvm guest memfd based private memory can be associated in one RAMBlock. Introduce new flag RAM_GUEST_MEMFD. Wh

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-15 Thread Xiaoyao Li
On 11/16/2023 1:54 AM, David Hildenbrand wrote: On 15.11.23 08:14, Xiaoyao Li wrote: Add KVM guest_memfd support to RAMBlock so both normal hva based memory and kvm guest memfd based private memory can be associated in one RAMBlock. Introduce new flag RAM_GUEST_MEMFD. When it's set, it calls

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-15 Thread David Hildenbrand
On 15.11.23 08:14, Xiaoyao Li wrote: Add KVM guest_memfd support to RAMBlock so both normal hva based memory and kvm guest memfd based private memory can be associated in one RAMBlock. Introduce new flag RAM_GUEST_MEMFD. When it's set, it calls KVM ioctl to create private guest_memfd during RAMB

Re: [PATCH v3 02/70] RAMBlock: Add support of KVM private guest memfd

2023-11-15 Thread Daniel P . Berrangé
On Wed, Nov 15, 2023 at 02:14:11AM -0500, Xiaoyao Li wrote: > Add KVM guest_memfd support to RAMBlock so both normal hva based memory > and kvm guest memfd based private memory can be associated in one RAMBlock. > > Introduce new flag RAM_GUEST_MEMFD. When it's set, it calls KVM ioctl to > create