Commit 89236d8f authored by Pawel Niedzwiecki's avatar Pawel Niedzwiecki Committed by Jim Harris
Browse files

test/vhost:Remove vhost configuration file from live migration test.

parent fbf06aca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ function migration_tc1()
	local job_file="$MIGRATION_DIR/migration-tc1.job"

	# Run vhost
	spdk_vhost_run --conf-path=$MIGRATION_DIR
	spdk_vhost_run
	migration_tc1_configure_vhost

	notice "Setting up VMs"
+2 −2
Original line number Diff line number Diff line
@@ -101,11 +101,11 @@ function migration_tc2_configure_vhost()
	waitforlisten "$nvmf_tgt_pid" "$nvmf_dir/rpc.sock"
	timing_exit start_nvmf_tgt

	spdk_vhost_run --conf-path=$MIGRATION_DIR --memory=512 --vhost-num=0
	spdk_vhost_run --memory=512 --vhost-num=0
	# Those are global intentionaly
	vhost_1_reactor_mask=0x2
	vhost_1_master_core=1
	spdk_vhost_run --conf-path=$MIGRATION_DIR --memory=512 --vhost-num=1
	spdk_vhost_run --memory=512 --vhost-num=1

	local rdma_ip_list=$(get_available_rdma_ips)
	local nvmf_target_ip=$(echo "$rdma_ip_list" | head -n 1)
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ function host1_start_vhost()

	notice "Starting vhost0 instance on local server"
	trap 'host1_cleanup_vhost; error_exit "${FUNCNAME}" "${LINENO}"' INT ERR EXIT
	spdk_vhost_run --conf-path=$MIGRATION_DIR --vhost-num=0
	spdk_vhost_run --vhost-num=0
	$rpc_0 construct_nvme_bdev -b Nvme0 -t rdma -f ipv4 -a $RDMA_TARGET_IP -s 4420 -n "nqn.2018-02.io.spdk:cnode1"
	$rpc_0 construct_vhost_scsi_controller $incoming_vm_ctrlr
	$rpc_0 add_vhost_scsi_lun $incoming_vm_ctrlr 0 Nvme0n1
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ function host_2_start_vhost()

	notice "Starting vhost 1 instance on remote server"
	trap 'host_2_cleanup_vhost; error_exit "${FUNCNAME}" "${LINENO}"' INT ERR EXIT
	spdk_vhost_run --conf-path=$MIGRATION_DIR --vhost-num=1
	spdk_vhost_run --vhost-num=1

	$rpc construct_nvme_bdev -b Nvme0 -t rdma -f ipv4 -a $RDMA_TARGET_IP -s 4420 -n "nqn.2018-02.io.spdk:cnode1"
	$rpc construct_vhost_scsi_controller $target_vm_ctrl
+0 −5
Original line number Diff line number Diff line
[Global]
  NoPci Yes

[Ioat]
  Disable Yes