[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Yuanhan Liu
On Tue, Aug 23, 2016 at 03:25:33PM +0200, Maxime Coquelin wrote: > > > On 08/23/2016 02:32 PM, Yuanhan Liu wrote: > >>>+ > >+ /* FIXME */ > >+ RTE_LOG(INFO, VHOST_CONFIG, ":: %u ::\n", pre_read); > >>> For my information, what is the purpose of pre_read? > >Again, I put a FI

[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Yuanhan Liu
On Tue, Aug 23, 2016 at 11:58:42AM +0200, Maxime Coquelin wrote: > > > >+/* Convert guest physical address to host physical address */ > >+static inline phys_addr_t __attribute__((always_inline)) > >+gpa_to_hpa(struct virtio_net *dev, uint64_t gpa, uint64_t size) > >+{ > >+uint32_t i; > >+s

[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Yuanhan Liu
So that we can convert a guest physical address to host physical address, which will be used in later Tx zero copy implementation. Signed-off-by: Yuanhan Liu --- lib/librte_vhost/vhost.h | 30 +++ lib/librte_vhost/vhost_user.c | 86 +++ 2

[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 03:49 PM, Yuanhan Liu wrote: > On Tue, Aug 23, 2016 at 03:25:33PM +0200, Maxime Coquelin wrote: >> >> >> On 08/23/2016 02:32 PM, Yuanhan Liu wrote: > + >>> + /* FIXME */ >>> + RTE_LOG(INFO, VHOST_CONFIG, ":: %u ::\n", pre_read); > For my information, what

[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 02:32 PM, Yuanhan Liu wrote: >>> + >>> > >+/* FIXME */ >>> > >+RTE_LOG(INFO, VHOST_CONFIG, ":: %u ::\n", pre_read); >> > For my information, what is the purpose of pre_read? > Again, I put a FIXME here, but I forgot to add some explanation. > > Here is the thing: the

[dpdk-dev] [PATCH 2/6] vhost: get guest/host physical address mappings

2016-08-23 Thread Maxime Coquelin
On 08/23/2016 10:10 AM, Yuanhan Liu wrote: > So that we can convert a guest physical address to host physical > address, which will be used in later Tx zero copy implementation. > > Signed-off-by: Yuanhan Liu > --- > lib/librte_vhost/vhost.h | 30 +++ > lib/librte_vhost/vhost_u