Re: [Qemu-devel] [PATCH 3/3] memory: pass RAMBlock as a agrument

2016-04-29 Thread Gonglei (Arei)
> From: Fam Zheng [mailto:f...@redhat.com] > Sent: Friday, April 29, 2016 4:07 PM > To: Gonglei (Arei) > Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; Huangpeng (Peter) > Subject: Re: [PATCH 3/3] memory: pass RAMBlock as a agrument > > On Wed, 04/20 11:34, Gonglei wrote: > > In this way, we can

Re: [Qemu-devel] [PATCH 3/3] memory: pass RAMBlock as a agrument

2016-04-29 Thread Fam Zheng
On Wed, 04/20 11:34, Gonglei wrote: > In this way, we can avoid to invoke qemu_get_ram_block() > at most time, which can save cpu cycle. > > Signed-off-by: Gonglei > --- > exec.c | 48 ++-- > hw/misc/ivshmem.c | 6 -- > hw/v

[Qemu-devel] [PATCH 3/3] memory: pass RAMBlock as a agrument

2016-04-19 Thread Gonglei
In this way, we can avoid to invoke qemu_get_ram_block() at most time, which can save cpu cycle. Signed-off-by: Gonglei --- exec.c | 48 ++-- hw/misc/ivshmem.c | 6 -- hw/virtio/vhost-user.c | 11 ++- include/exec/r