Spdk/lib
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
..
bdev bdev/nvme: Shorten the name of hot inserted NVMe device. 2017-03-29 09:17:08 -07:00
blob blob: remove duplicate call to _spdk_blob_free 2017-03-29 09:16:45 -07:00
blobfs blob: check memory allocation in check_readahead 2017-03-28 10:38:26 -07:00
conf conf: move structures out of public API header 2016-11-16 10:33:16 -07:00
copy ioat: print PCI addresses in hex for consistency 2017-02-14 10:27:47 -07:00
cunit eofnl: check for extra trailing newlines 2016-10-11 13:30:33 -07:00
env_dpdk lib/env_dpdk: exit if allocating dpdk_args fails 2017-03-23 14:33:10 -07:00
event reactor: make sure socket_count isn't zero 2017-03-24 10:52:28 -07:00
ioat util: move common helper functions to util.h 2017-02-10 09:38:52 -07:00
iscsi iscsi: check invalid flush timeout parameter 2017-03-28 13:05:10 -07:00
json json: make sure parse always sets *end 2017-02-15 16:31:07 -07:00
jsonrpc util: add SPDK_COUNTOF() array size macro 2017-03-07 12:43:42 -07:00
log util: add SPDK_COUNTOF() array size macro 2017-03-07 12:43:42 -07:00
net lib/net: Replace sprintf with snprintf 2017-03-23 13:30:09 -07:00
nvme nvme: Replace some strcpy with snprintf 2017-03-23 15:26:07 -07:00
nvmf nvmf: start even if no transports are available 2017-03-23 13:17:52 -07:00
rpc rpc: Remove event from module unload path 2017-02-28 19:36:43 -07:00
scsi scsi: use SOFT reset when reseting bdev 2017-03-29 09:17:26 -07:00
trace lib/trace: replace strncpy with snprintf 2017-03-28 09:14:17 -07:00
util string: make spdk_parse_ip_addr() params non-const 2017-02-14 10:28:29 -07:00
vhost vhost: defer setting up new mem table 2017-03-29 09:43:36 -07:00
Makefile blobfs: Add a lightweight filesystem built on the blobstore 2017-03-24 14:15:45 -07:00