[Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-26 Thread Damjan Marion
Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Here we are introducing following changes: - new function qemu_get_ram_block_host_ptr() returns host pointer to the ram block, it is needed to calculate offset of specific

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-26 Thread Nikolay Nikolaev
On Fri, Jun 27, 2014 at 12:01 AM, Damjan Marion wrote: > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introducing following changes: > - new function qemu_get_ram_block_host_ptr() returns host pointer

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-27 Thread Michael S. Tsirkin
On Fri, Jun 27, 2014 at 08:02:48AM +0300, Nikolay Nikolaev wrote: > > > > On Fri, Jun 27, 2014 at 12:01 AM, Damjan Marion wrote: > > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introduc

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
On Thu, Jun 26, 2014 at 11:01:32PM +0200, Damjan Marion wrote: > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introducing following changes: > - new function qemu_get_ram_block_host_ptr() returns host p

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
On Fri, Jun 27, 2014 at 08:02:48AM +0300, Nikolay Nikolaev wrote: > > > > On Fri, Jun 27, 2014 at 12:01 AM, Damjan Marion wrote: > > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introduc

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-29 Thread Michael S. Tsirkin
Subject has a typo. Fixed it up. On Thu, Jun 26, 2014 at 11:01:32PM +0200, Damjan Marion wrote: > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introducing following changes: > - new function qemu_get_

Re: [Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-07-01 Thread Michael S. Tsirkin
On Thu, Jun 26, 2014 at 11:01:32PM +0200, Damjan Marion wrote: > Old code was affected by memory gaps which resulted in buffer pointers > pointing to address outside of the mapped regions. > > Here we are introducing following changes: > - new function qemu_get_ram_block_host_ptr() returns host p