[Qemu-devel] The WCE issue in guest when i enable WCE in Qemu side.

2019-07-23 Thread Zhong, Yang
Hello all, I am using the Qemu/SPDK to do vhost-user-blk verification, and the qemu command as below: ./qemu-system-x86_64 \ -machine q35,accel=kvm \ -cpu host -m 1024,maxmem=20G,slots=2 -smp 6 \ -kernel ./../linux-stable/arch/x86/boot/bzImage \ -append 'root=/dev/vdb3 rw rootfs

Re: [Qemu-devel] [PATCH v3] rcu: reduce more than 7MB heap memory by malloc_trim()

2017-11-26 Thread Zhong Yang
On Sun, Nov 26, 2017 at 02:17:18PM +0800, Shannon Zhao wrote: > Hi, > > On 2017/11/24 14:30, Yang Zhong wrote: > > Since there are some issues in memory alloc/free machenism > > in glibc for little chunk memory, if Qemu frequently > > alloc/free little chunk memory, the glibc doesn't alloc > > lit

Re: [Qemu-devel] [PATCH v2] rcu: reduce more than 7MB heap memory by malloc_trim()

2017-11-23 Thread Zhong Yang
On Thu, Nov 23, 2017 at 11:19:43AM +, Stefan Hajnoczi wrote: > On Thu, Nov 23, 2017 at 02:41:16PM +0800, Yang Zhong wrote: > > Since there are some issues in memory alloc/free machenism > > in glibc for little chunk memory, if Qemu frequently > > alloc/free little chunk memory, the glibc doesn'

Re: [Qemu-devel] [PATCH] rcu: reduce half heap memory size by malloc_trim()

2017-11-20 Thread Zhong Yang
On Mon, Nov 20, 2017 at 02:14:50PM +, Daniel P. Berrange wrote: > On Mon, Nov 20, 2017 at 04:54:42PM +0800, Zhong Yang wrote: > > On Fri, Nov 17, 2017 at 02:06:20PM +, Daniel P. Berrange wrote: > > > On Fri, Nov 17, 2017 at 01:54:09PM +, Stefan Hajnoczi wrote: >

Re: [Qemu-devel] [PATCH] rcu: reduce half heap memory size by malloc_trim()

2017-11-20 Thread Zhong Yang
On Mon, Nov 20, 2017 at 02:03:44PM +, Stefan Hajnoczi wrote: > On Mon, Nov 20, 2017 at 04:41:41PM +0800, Zhong Yang wrote: > > On Fri, Nov 17, 2017 at 01:54:09PM +, Stefan Hajnoczi wrote: > > > On Fri, Nov 17, 2017 at 02:23:34PM +0800, Yang Zhong wrote: > > > &

Re: [Qemu-devel] [PATCH] rcu: reduce half heap memory size by malloc_trim()

2017-11-20 Thread Zhong Yang
On Mon, Nov 20, 2017 at 10:28:28PM +0800, Fam Zheng wrote: > On Fri, 11/17 14:23, Yang Zhong wrote: > > diff --git a/util/rcu.c b/util/rcu.c > > index ca5a63e..8d491a6 100644 > > --- a/util/rcu.c > > +++ b/util/rcu.c > > @@ -26,6 +26,7 @@ > > * IBM's contributions to this file may be relicensed u

Re: [Qemu-devel] [PATCH] rcu: reduce half heap memory size by malloc_trim()

2017-11-20 Thread Zhong Yang
On Fri, Nov 17, 2017 at 02:06:20PM +, Daniel P. Berrange wrote: > On Fri, Nov 17, 2017 at 01:54:09PM +, Stefan Hajnoczi wrote: > > On Fri, Nov 17, 2017 at 02:23:34PM +0800, Yang Zhong wrote: > > > diff --git a/util/rcu.c b/util/rcu.c > > > index ca5a63e..8d491a6 100644 > > > --- a/util/rcu.

Re: [Qemu-devel] [PATCH] rcu: reduce half heap memory size by malloc_trim()

2017-11-20 Thread Zhong Yang
On Fri, Nov 17, 2017 at 01:54:09PM +, Stefan Hajnoczi wrote: > On Fri, Nov 17, 2017 at 02:23:34PM +0800, Yang Zhong wrote: > > diff --git a/util/rcu.c b/util/rcu.c > > index ca5a63e..8d491a6 100644 > > --- a/util/rcu.c > > +++ b/util/rcu.c > > @@ -26,6 +26,7 @@ > > * IBM's contributions to th

Re: [Qemu-devel] [Question] Qemu's Heap Becomes Very Large and Never Reduce Down

2017-11-16 Thread Zhong Yang
On Wed, Nov 15, 2017 at 02:18:55PM +0100, Paolo Bonzini wrote: > On 15/11/2017 04:14, Xulei (Stone) wrote: > > Hi, guys > > > > I met a strange problem, with qemu 2.8.1: > > qemu consumes too many heap memory after several operations and can not > > release them anymore:  > > hot pulg/unplug disk

Re: [Qemu-devel] [PATCH] x86/cpufeatures: Enable new AVX512 cpu features

2017-10-18 Thread Zhong Yang
On Wed, Oct 18, 2017 at 12:32:42PM +0200, Paolo Bonzini wrote: > On 17/10/2017 11:34, Yang Zhong wrote: > > Intel IceLake cpu has added new cpu features,AVX512VBMI2/GFNI/ > > VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features > > need expose to guest VM. > > > > The bit definition: >

Re: [Qemu-devel] [PATCH 0/2] add "nopin" option in the memory-backend-file

2017-10-18 Thread Zhong Yang
On Wed, Oct 18, 2017 at 11:48:11AM +0200, Paolo Bonzini wrote: > On 18/10/2017 07:57, Zhong Yang wrote: > > Your suggestion can avoid DMA target to nvdimm if the nvdimm memory region > > was skipped during VFIO hotplug. It is valuable to try this solution. by > > the &g

Re: [Qemu-devel] [PATCH 0/2] add "nopin" option in the memory-backend-file

2017-10-17 Thread Zhong Yang
On Mon, Oct 16, 2017 at 01:58:59PM +0200, Paolo Bonzini wrote: > On 16/10/2017 12:20, Xiao Guangrong wrote: > > > >> Qemu does not need pin NVDIMM memory for VFIO device during VFIO > >> hotplug, what's more, if there is no NVDIMM hw in the test machine, > >> the VFIO hotplug operation will need a

Re: [Qemu-devel] [PATCH 0/2] add "nopin" option in the memory-backend-file

2017-10-17 Thread Zhong Yang
On Mon, Oct 16, 2017 at 06:20:32PM +0800, Xiao Guangrong wrote: > > > On 10/16/2017 04:56 PM, Yang Zhong wrote: > >Qemu does not need pin NVDIMM memory for VFIO device during VFIO > >hotplug, what's more, if there is no NVDIMM hw in the test machine, > >the VFIO hotplug operation will need at lea

Re: [Qemu-devel] About virtio device hotplug in Q35!

2017-07-24 Thread Zhong Yang
On Mon, Jul 24, 2017 at 08:05:54AM +0300, Marcel Apfelbaum wrote: + Anthony > On 24/07/2017 4:47, Zhong Yang wrote: > >Hello all, > > > > Hi, > > >When we did virtio device hotplug in Q35 platform, which always failed in > >hotplug. > > > >

[Qemu-devel] About virtio device hotplug in Q35!

2017-07-23 Thread Zhong Yang
Hello all, When we did virtio device hotplug in Q35 platform, which always failed in hotplug. Would you please tell me how to configure VM to make virtio device hotplug work in Q35 platform? Many thanks! Regards, Yang zhong

Re: [Qemu-devel] [PATCH v2 06/15] kvmvapic: remove tcg related code

2017-07-03 Thread Zhong Yang
On Mon, Jul 03, 2017 at 04:28:00PM +0200, Paolo Bonzini wrote: > > > On 03/07/2017 12:12, Yang Zhong wrote: > > Since Paolo's below patch has fixed A20 issue > > commit bbfa326fc8028e275eddf8c9965c2a1b59405b2e > > target/i386: enable A20 automatically in system management mod > > How is this pat

Re: [Qemu-devel] [PATCH 13/15] tcg: disable tcg in CPUX86State struct

2017-06-22 Thread Zhong Yang
On Wed, Jun 21, 2017 at 03:24:29PM -0700, Richard Henderson wrote: > On 06/21/2017 03:19 AM, Yang Zhong wrote: > >--- a/target/i386/cpu.h > >+++ b/target/i386/cpu.h > >@@ -52,7 +52,9 @@ > > #include "exec/cpu-defs.h" > >+#ifdef CONFIG_TCG > > #include "fpu/softfloat.h" > >+#endif > > #define R_E

Re: [Qemu-devel] [PATCH 11/15] tcg: split cpu_set_mxcsr()/cpu_set_fpuc()

2017-06-22 Thread Zhong Yang
On Wed, Jun 21, 2017 at 03:15:25PM +0200, Paolo Bonzini wrote: > > > On 21/06/2017 12:19, Yang Zhong wrote: > > Split the cpu_set_mxcsr()/cpu_set_fpuc() with specific tcg code. > > tcg_update_mxcsr()/tcg_set_fpuc() need be implemented in tcg-stub.c > > file if tcg is disabled. > > > > Signed-off

Re: [Qemu-devel] [PATCH 03/15] tcg: tcg_handle_interrupt() function

2017-06-22 Thread Zhong Yang
On Wed, Jun 21, 2017 at 03:10:55PM +0200, Paolo Bonzini wrote: > > > On 21/06/2017 12:19, Yang Zhong wrote: > > Move tcg_handle_interrupt() from translate-common.c to > > translate-all.c. > > > > Signed-off-by: Yang Zhong > > Why? > > Paolo > Hello Paolo, translate-common.c only include

Re: [Qemu-devel] [PATCH 02/15] vl: add CONFIG_TCG for tcg related code

2017-06-21 Thread Zhong Yang
On Wed, Jun 21, 2017 at 03:10:36PM +0200, Paolo Bonzini wrote: > > > On 21/06/2017 12:19, Yang Zhong wrote: > > @@ -3738,8 +3738,13 @@ int main(int argc, char **argv, char **envp) > > } > > break; > > case QEMU_OPTION_no_kvm: > > +#ifdef CONFIG_TCG

[Qemu-devel] About remove the TCG related code in hw/i386/kvmvapic.c!

2017-06-13 Thread Zhong Yang
Hello Paolo, About you below A20 fixed patch has been merged in QEMU latest release, commit bbfa326fc8028e275eddf8c9965c2a1b59405b2e target/i386: enable A20 automatically in system management mod I also disabled the kvmvapic rom with below patch and use qemu command to verify your patch #disa

Re: [Qemu-devel] [PATCH v3 0/4] tcg: split the tcg code and separate tcg files

2017-06-08 Thread Zhong Yang
O Wed, Jun 07, 2017 at 03:28:55PM +0200, Paolo Bonzini wrote: > > > On 02/06/2017 08:06, Yang Zhong wrote: > > In order to disable tcg, the first phase is to split some > > tcg code and separate those tcg related files into one > > directory. The next phase will disable tcg more easily and > > cl

Re: [Qemu-devel] [PATCH v2 0/6] tcg: move the tcg files into tcg/ subdirectory.

2017-06-01 Thread Zhong Yang
On Thu, Jun 01, 2017 at 10:14:34AM +0200, Paolo Bonzini wrote: > > > On 01/06/2017 07:27, Zhong Yang wrote: > > In the first phase, there are three patchsets to > > deal with split code and separate the files. > > 1) split the tcg exec code. > >

Re: [Qemu-devel] [PATCH v2 0/6] tcg: move the tcg files into tcg/ subdirectory.

2017-05-31 Thread Zhong Yang
Wed, May 31, 2017 at 02:54:05PM +0200, Paolo Bonzini wrote: > > > On 31/05/2017 08:28, Yang Zhong wrote: > > Move the tcg related files into tcg/ subdirectory, which will make > > the code more clean in qemu. Next step, we will base on those changes > > to disable tcg. > > You should also move

Re: [Qemu-devel] [PATCH v0 0/6] move the tcg files into tcg directory.

2017-05-22 Thread Zhong Yang
O Fri, May 19, 2017 at 05:14:19PM -0500, Eric Blake wrote: > On 05/19/2017 02:30 AM, Yang Zhong wrote: > > Move the tcg relative files into tcg directory, which will make > > the code more clean in qemu. > > Titling a patch series v0 is a bit unusual (typically, the first version > is untitled, an

Re: [Qemu-devel] [PATCH v1 2/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-15 Thread Zhong, Yang
also release hole memory below top of heap. Thanks! ZhongYang -Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: Thursday, March 16, 2017 4:22 AM To: Xu, Anthony Cc: Zhong, Yang ; Peng, Chao P ; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH v1 2/2] reduce q

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Zhong, Yang
aydell [mailto:peter.mayd...@linaro.org] Sent: Wednesday, March 15, 2017 6:42 PM To: Paolo Bonzini Cc: Zhong, Yang ; QEMU Developers ; Xu, Anthony Subject: Re: [PATCH v3] memory: reduce heap Rss size around 3M On 15 March 2017 at 08:12, Paolo Bonzini wrote: > > > On 15/03/2017 14:39

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Zhong, Yang
e_memory)) { as->ref_count++; return as; } Regards, ZhongYang -Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: Wednesday, March 15, 2017 4:13 PM To: Zhong, Yang ; qemu-devel@nongnu.org Cc: Xu, Anthony ; Peter Maydell Subject: Re: [PATCH