RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-28 Thread Liu, Yuan1
Yuan1 > > > Cc: Daniel P. Berrangé ; faro...@suse.de; qemu- > > > de...@nongnu.org; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; > Zou, > > > Nanhai > > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement > initialization

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-28 Thread Peter Xu
dance.com; bryan.zh...@bytedance.com; Zou, > > Nanhai > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement initialization of > > qpl compression > > > > On Fri, Mar 22, 2024 at 12:40:32PM -0400, Peter Xu wrote: > > > > > void multifd_recv_zero_p

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-27 Thread Liu, Yuan1
> -Original Message- > From: Peter Xu > Sent: Thursday, March 28, 2024 3:26 AM > To: Liu, Yuan1 > Cc: Daniel P. Berrangé ; faro...@suse.de; qemu- > de...@nongnu.org; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, > Nanhai > Subject: Re: [PATCH v

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-27 Thread Peter Xu
On Fri, Mar 22, 2024 at 12:40:32PM -0400, Peter Xu wrote: > > > void multifd_recv_zero_page_process(MultiFDRecvParams *p) > > > { > > > for (int i = 0; i < p->zero_num; i++) { > > > void *page = p->host + p->zero[i]; > > > if (!buffer_is_zero(page, p->page_size)) { > > >

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-22 Thread Peter Xu
dance.com; bryan.zh...@bytedance.com; Zou, > > Nanhai > > Subject: RE: [PATCH v5 5/7] migration/multifd: implement initialization of > > qpl compression > > > > > -Original Message- > > > From: Peter Xu > > > Sent: Thursday, March 21, 2

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-22 Thread Liu, Yuan1
.xi...@bytedance.com; bryan.zh...@bytedance.com; > Zou, > > Nanhai > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement initialization > of > > qpl compression > > > > On Thu, Mar 21, 2024 at 01:37:36AM +, Liu, Yuan1 wrote: > > > > -O

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-21 Thread Liu, Yuan1
Yuan1 > > > Cc: Daniel P. Berrangé ; faro...@suse.de; qemu- > > > de...@nongnu.org; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; > Zou, > > > Nanhai > > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement > initialization of > > > qpl

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-21 Thread Peter Xu
dance.com; bryan.zh...@bytedance.com; Zou, > > Nanhai > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement initialization of > > qpl compression > > > > On Wed, Mar 20, 2024 at 04:23:01PM +, Liu, Yuan1 wrote: > > > let me explain here, during the

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Liu, Yuan1
> -Original Message- > From: Peter Xu > Sent: Thursday, March 21, 2024 4:32 AM > To: Liu, Yuan1 > Cc: Daniel P. Berrangé ; faro...@suse.de; qemu- > de...@nongnu.org; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, > Nanhai > Subject: Re: [PATCH v

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Peter Xu
On Wed, Mar 20, 2024 at 04:23:01PM +, Liu, Yuan1 wrote: > let me explain here, during the decompression operation of IAA, the > decompressed data can be directly output to the virtual address of the > guest memory by IAA hardware. It can avoid copying the decompressed data > to guest memory

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Liu, Yuan1
> -Original Message- > From: Peter Xu > Sent: Wednesday, March 20, 2024 11:35 PM > To: Liu, Yuan1 > Cc: Daniel P. Berrangé ; faro...@suse.de; qemu- > de...@nongnu.org; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, > Nanhai > Subject: Re: [PATCH v

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Liu, Yuan1
t; To: Liu, Yuan1 > > > Cc: pet...@redhat.com; faro...@suse.de; qemu-devel@nongnu.org; > > > hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, Nanhai > > > > > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement > initialization of > > >

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Peter Xu
On Wed, Mar 20, 2024 at 03:02:59PM +, Liu, Yuan1 wrote: > > > +static int alloc_zbuf(QplData *qpl, uint8_t chan_id, Error **errp) > > > +{ > > > +int flags = MAP_PRIVATE | MAP_POPULATE | MAP_ANONYMOUS; > > > +uint32_t size = qpl->job_num * qpl->data_size; > > > +uint8_t *buf; > > >

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Daniel P . Berrangé
t; hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, Nanhai > > > > Subject: Re: [PATCH v5 5/7] migration/multifd: implement initialization of > > qpl compression > > > > On Wed, Mar 20, 2024 at 12:45:25AM +0800, Yuan Liu wrote: > > > the qpl initiali

RE: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Liu, Yuan1
> -Original Message- > From: Daniel P. Berrangé > Sent: Wednesday, March 20, 2024 6:42 PM > To: Liu, Yuan1 > Cc: pet...@redhat.com; faro...@suse.de; qemu-devel@nongnu.org; > hao.xi...@bytedance.com; bryan.zh...@bytedance.com; Zou, Nanhai > > Subject: Re: [PATCH v

Re: [PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2024 at 12:45:25AM +0800, Yuan Liu wrote: > the qpl initialization includes memory allocation for compressed > data and the qpl job initialization. > > the qpl initialization will check whether the In-Memory Analytics > Accelerator(IAA) hardware is available, if the platform does

[PATCH v5 5/7] migration/multifd: implement initialization of qpl compression

2024-03-20 Thread Yuan Liu
the qpl initialization includes memory allocation for compressed data and the qpl job initialization. the qpl initialization will check whether the In-Memory Analytics Accelerator(IAA) hardware is available, if the platform does not have IAA hardware or the IAA hardware is not available, the QPL