numam-spdk/lib/vhost
Jim Harris f325e71c9d vhost: defer setting up new mem table
First step is do not destroy an existing device in
vhost_user_set_mem_table().  This is because we may
still be processing I/O via INT13 while QEMU is setting
up the mem tables for OS boot.

The primary part of this patch though is to defer
using the new mem table until after we receive the
first SET_VRING_ADDR message.  SET_VRING_ADDR will be
sent by QEMU when guest OS virtio-scsi driver starts
initialization.  At this point it is safe to invalidate
the old mem tables because there will be no more
INT13 I/O at this point.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I45fb5910f45e7fd2cf4a325341ad105a57d8ea40
2017-03-29 09:43:36 -07:00
..
linux vhost: add copy of virtio headers 2017-03-23 13:51:04 -07:00
rte_vhost vhost: defer setting up new mem table 2017-03-29 09:43:36 -07:00
Makefile vhost: add copy of virtio headers 2017-03-23 13:51:04 -07:00
task.c vhost: make dpdk_vid_mapping and g_need_iovecs static 2017-03-07 13:05:58 -07:00
task.h vhost: add a library and app for userspace vhost-scsi processing 2017-03-06 12:44:35 -07:00
vhost_rpc.c vhost: free string RPC parameters 2017-03-08 11:19:35 -07:00
vhost.c lib, vhost: check the numbers of reqs 2017-03-27 10:45:56 -07:00