sdgsfdg

p

sudo find / -name "pcap.h"

echo 16 | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-1048576kB/nr_hugepages

mount -t hugetlbfs -o pagesize=1G huge /mnt/huge

ulimit -l unlimited

git push origin VDPA

git clone https://github.com/lulu-github-name/qemuvdpa.git -b VDPA

lulu-github-name

git config --global credential.helper store

git fetch origin

git checkout -b test2 origin/test2

git merge VDPA

Step 2: Merge the changes and update on GitHub.

git checkout VDPA

git merge --no-ff test2

git push origin VDPA

int vhost_set_state(struct vhost_dev *hdev, int state);

140.82.113.3 github.com

199.232.69.194 github.global.ssl.fastly.net

mount -t nfs 192.168.3.60:/home/lulu/2452 /mnt

192.168.3.60:/home/lulu/2452 /mnt nfs? ? ? defaults? ? 0? ? ? 0

modprobe vfio_iommu_type1 allow_unsafe_interrupts=1

modprobe vfio enable_unsafe_noiommu_mode=Y

modprobe vfio-pci

ssh root@localhost -p10021

ip netns add net1

ip netns add net2

ip link set eth0 netns net1

ip link set eth1 netns net2

ip netns exec net1 ifconfig eth0 192.168.1.3 netmask 255.255.255.0

ip netns exec net2 ifconfig eth1 192.168.1.4 netmask 255.255.255.0

printk(KERN_ERR "aha152x: reset_done w/o completion\n");

ip netns add net3

ip netns add net4

ip link set eth0 netns net3

ip link set eth1 netns net4

ip netns exec net3 ifconfig eth0 192.168.1.5 netmask 255.255.0

ip netns exec net4 ifconfig eth1 192.168.1.6 netmask 255.255.0

ip netns exec net4 ping 192.168.1.5

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

bluejeans meetings and some share doc

Also some blog and wiki page

ip netns add net1

ip netns add net2

ip link set eth0 netns net1

ip link set eth1 netns net2

ip netns exec net1 ifconfig eth0 192.168.1.1 netmask 255.255.255.0

ip netns exec net2 ifconfig eth1 192.168.1.2 netmask 255.255.255.0

ip netns exec net2 ping 192.168.1.1

echo 0 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.4 > /sys/bus/pci/devices/0000\:03\:00.4/driver/unbind

echo 0000\:03\:00.5 > /sys/bus/pci/devices/0000\:03\:00.5/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/ifcvf/new_id

echo 0 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 4 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.2 > /sys/bus/pci/devices/0000\:03\:00.2/driver/unbind

echo 0000\:03\:00.3 > /sys/bus/pci/devices/0000\:03\:00.3/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/ifcvf/new_id

echo 0000\:03\:00.2 > /sys/bus/pci/drivers/ifcvf/bind

echo 0000\:03\:00.3 > /sys/bus/pci/drivers/ifcvf/bind

echo 0000\:03\:00.4 > /sys/bus/pci/devices/0000\:03\:00.4/driver/unbind

echo 0000\:03\:00.5 > /sys/bus/pci/devices/0000\:03\:00.5/driver/unbind

echo 0000\:03\:00.4 > /sys/bus/pci/drivers/ifcvf/bind

echo 0000\:03\:00.5 > /sys/bus/pci/drivers/ifcvf/bind

echo 0000\:04\:00.3 > /sys/bus/pci/devices/0000\:04\:00.3/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/mlx5_core/new_id

echo 0000\:04\:00.3 > /sys/bus/pci/drivers/mlx5_core/bind

./vdpa -c 0x2 -n 4 --socket-mem 1024,1024 \

? ? ? ? -w 0000:03:00.5,vdpa=1 -w 0000:03:00.4,vdpa=1 \

? ? ? ? -- --interactive

03:00.5 03:00.4

echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.0 > /sys/bus/pci/devices/0000\:03\:00.0/driver/unbind

echo 0000\:03\:00.0 > /sys/bus/pci/drivers/pci_stub/bind

rmmod ifcvf

rmmod vdpa_sim

rmmod vhost_vdpa

rmmod virtio_vdpa

rmmod virtio_net

rmmod virtio

rmmod vhost

rmmod vdpa

echo 0 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 4 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.2 > /sys/bus/pci/devices/0000\:03\:00.2/driver/unbind

echo 0000\:03\:00.3 > /sys/bus/pci/devices/0000\:03\:00.3/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/ifcvf/new_id

modprobe vhost

modprobe virtio

modprobe virtio_net

modprobe vdpa

modprobe vhost_vdpa

modprobe vdpa

modprobe vdpa_sim

modprobe ifcvf

modprobe virtio_vdpa

modprobe vdpa_sim

modprobe ifcvf

printk(KERN_WARNING " %s %d \n", __func__,__LINE__);

? 753.143163] vfio-pci 0000:03:00.3: enabling device (0000 -> 0002)

[ 3551.151050] vfio-pci 0000:03:00.2: enabling device (0000 -> 0002)

[ 3551.374104] pcieport 0000:00:03.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00

[ 3551.374114] pcieport 0000:00:03.0: AER: PCIe Bus Error: severity=Uncorrected (Non-Fatal),)

[ 3551.374117] pcieport 0000:00:03.0: AER:? device [8086:6f08] error status/mask=00004000/00

[ 3551.374121] pcieport 0000:00:03.0: AER:? ? [14] CmpltTO? ? ? ? ? ? ? ? (First)

[ 3551.374125] virtio-pci 0000:03:00.0: AER: can't recover (no error_detected callback)

[ 3551.374127] pci 0000:03:00.1: AER: can't recover (no error_detected callback)

[ 3551.374173] virtio-pci 0000:03:00.4: AER: can't recover (no error_detected callback)

[ 3551.374175] virtio-pci 0000:03:00.5: AER: can't recover (no error_detected callback)

[ 3551.374185] pcieport 0000:00:03.0: AER: device recovery failed

[ 3551.391561] pcieport 0000:00:03.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00

[ 3551.391566] pcieport 0000:00:03.0: AER: PCIe Bus Error: severity=Uncorrected (Non-Fatal),)

[ 3551.391569] pcieport 0000:00:03.0: AER:? device [8086:6f08] error status/mask=00004000/00

[ 3551.391571] pcieport 0000:00:03.0: AER:? ? [14] CmpltTO? ? ? ? ? ? ? ? (First)

[ 3551.391575] virtio-pci 0000:03:00.0: AER: can't recover (no error_detected callback)

[ 3551.391577] pci 0000:03:00.1: AER: can't recover (no error_detected callback)

[ 3551.391604] virtio-pci 0000:03:00.4: AER: can't recover (no error_detected callback)

[ 3551.391607] virtio-pci 0000:03:00.5: AER: can't recover (no error_detected callback)

[ 3551.391616] pcieport 0000:00:03.0: AER: device recovery failed

[ 3551.391769] vfio-pci 0000:03:00.3: enabling device (0000 -> 0002)

[ 3551.614066] pcieport 0000:00:03.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00

[ 3551.614077] pcieport 0000:00:03.0: AER: PCIe Bus Error: severity=Uncorrected (Non-Fatal),)

[ 3551.614082] pcieport 0000:00:03.0: AER:? device [8086:6f08] error status/mask=00004000/00

[ 3551.614087] pcieport 0000:00:03.0: AER:? ? [14] CmpltTO? ? ? ? ? ? ? ? (First)

[ 3551.614092] virtio-pci 0000:03:00.0: AER: can't recover (no error_detected callback)

[ 3551.614094] pci 0000:03:00.1: AER: can't recover (no error_detected callback)

[ 3551.614131] virtio-pci 0000:03:00.4: AER: can't recover (no error_detected callback)

[ 3551.614134] virtio-pci 0000:03:00.5: AER: can't recover (no error_detected callback)

[ 3551.614143] pcieport 0000:00:03.0: AER: device recovery failed

[ 3551.631588] pcieport 0000:00:03.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00

[ 3551.631594] pcieport 0000:00:03.0: AER: PCIe Bus Error: severity=Uncorrected (Non-Fatal),)

[ 3551.631597] pcieport 0000:00:03.0: AER:? device [8086:6f08] error status/mask=00004000/00

[ 3551.631604] pcieport 0000:00:03.0: AER:? ? [14] CmpltTO? ? ? ? ? ? ? ? (First)

[ 3551.631608] virtio-pci 0000:03:00.0: AER: can't recover (no error_detected callback)

[ 3551.631613] pci 0000:03:00.1: AER: can't recover (no error_detected callback)

[ 3551.631633] virtio-pci 0000:03:00.4: AER: can't recover (no error_detected callback)

[ 3551.631635] virtio-pci 0000:03:00.5: AER: can't recover (no error_detected callback)

[ 3551.631644] pcieport 0000:00:03.0: AER: device recovery failed

[root@server ~]# sensors

modprobe virtio

modprobe virtio_net

insmod ./drivers/vhost/vhost_iotlb.ko

insmod ./drivers/vhost/vringh.ko

insmod ./drivers/vhost/vhost.ko

insmod ./drivers/vdpa/vdpa.ko

insmod ./drivers/vhost/vhost_vdpa.ko

insmod ./drivers/vdpa/ifcvf/ifcvf.ko

insmod ./drivers/vdpa/vdpa_sim/vdpa_sim.ko

#insmod ./drivers/virtio/virtio_vdpa.ko

grub2-editenv list

insmod ./drivers/vhost/vhost_iotlb.ko

insmod ./drivers/vhost/vringh.ko

grub2-set-default “CentosLinux 7 (core), with Linux 3.10.0-229.el7.x86_64”

3、

drivers/vhost/vhost_net.ko

drivers/vhost/vringh.ko

drivers/vhost/vhost_vdpa.ko

drivers/vhost/vhost.ko

drivers/vhost/vhost_iotlb.ko

modprobe virtio

modprobe virtio_net

insmod ./drivers/vhost/vhost_iotlb.ko

insmod ./drivers/vhost/vringh.ko

insmod ./drivers/vhost/vhost.ko

insmod ./drivers/virtio/virtio_vdpa.ko

insmod ./drivers/vhost/vhost_vdpa.ko

insmod ./drivers/virtio/vdpa/ifcvf/ifcvf.ko

insmod ./drivers/virtio/vdpa/vdpa_sim/vdpa_sim.ko

echo 4 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.2 > /sys/bus/pci/devices/0000\:03\:00.2/driver/unbind

echo 0000\:03\:00.3 > /sys/bus/pci/devices/0000\:03\:00.3/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/ifcvf/new_id

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -smp 1 \

-cpu host \

? 2>&1 | tee vm.log

ssh root@localhost -p10021

Fedora-Cloud-Base-32-1.6.x86_64.qcow2

./qemu/build/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/lulu/Fedora-Cloud-Base-32-1.6.x86_64.qcow2\

? -enable-kvm \

? -nographic \

-net user,hostfwd=tcp::10021-:22 -net nic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -smp 8 \

-cpu host \

? 2>&1 | tee vm.log

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on \

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m? 8G? \

? -smp 4 \

-cpu host \

-netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa0,id=mynet1 \

-device virtio-net-pci,netdev=mynet1,mac=00:e8:ca:11:ba:01\

? 2>&1 | tee vm.log

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on \

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

-netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -add-fd fd=6,set=20,opaque="rdwr:/dev/vhost-vdpa-0"\

-netdev type=vhost-vdpa,vhostdev=/dev/fdset/20,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on\

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

./qemu-system-x86_64 -M accel=kvm -cpu host -smp 2 -m 4G \

? ? ? -drive if=virtio,file=dpdk.img,format=raw \

? ? ? -chardev socket,id=chardev0,path=vhost-user.sock,server,nowait \

? ? ? -device virtio-vhost-user-pci,chardev=chardev0 \

? ? ? -netdev user,id=netdev0 -device virtio-net-pci,netdev=netdev0

//home/lulu/2452/test5/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -chardev socket,id=chardev0,path=vhost-user.sock,server,nowait \

? -device virtio-net-pci,chardev=chardev0 \

? -smp 4 \

-cpu host \

2>&1 | tee vm.log

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on\

? ? result = memory_region_is_ram(section->mr) &&

? ? ? ? !memory_region_is_rom(section->mr) &&

? ? ? ? !memory_region_is_ram_device(section->mr);

-net nic,model=virtio

///qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -mem-path? /mnt/huge\

-netdev tap,id=hostnet1,ifname=vnet1,downscript=no \

-device virtio-net-pci,netdev=hostnet1,id=net0,mac=52:54:00:6b:0d:a2 \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

ulimit -l unlimited

//home/lulu/2452/test5/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

fd=X,id=vdpa0

-monitor

? -netdev type=vhost-vdpa,fd=0,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

-monitor stdio

[root@localhost ~]# iperf3 -c 192.168.1.4

ulimit -l unlimited

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -mem-path? /mnt/huge\

? -netdev type=vhost-vfio,sysfsdev=/dev/vhost-vdpa-0,id=vhost-vfio0 \

? -device virtio-net-pci,netdev=vhost-vdpa0,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -netdev type=vhost-vfio,sysfsdev=/dev/vhost-vdpa-1,id=vhost-vfio1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:01,disable-modern=off,page-per-vq=on\

? -smp 1 \

-cpu host \

? 2>&1 | tee vm.log\

./x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -mem-path? /mnt/huge\

? -netdev type=vhost-vfio,sysfsdev=/dev/vhost-vdpa-1,id=vhost-vfio2 \

? -device virtio-net-pci,netdev=vhost-vfio2,mac=00:e8:ca:11:ba:04,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

Working in the qemu code, Find some bugs and got some comments from Jason, Will fix these problem and send out soon

Have a meeting with the QE team搓幌, talking about the VDPA's testing in further?Provide the qemu code to mellaox?

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-2,id=vhost-vdpa1 \

? -device vifio-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -smp 1 \

-cpu host \

? 2>&1 | tee vm.log

modprobe vhost

modprobe virtio

modprobe virtio_net

modprobe vdpa

modprobe vhost_vdpa

modprobe ifcvf

modprobe vdpa

modprobe virtio_vdpa

ulimit -l unlimited

echo 0 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 4 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs

echo 0000\:03\:00.2 > /sys/bus/pci/devices/0000\:03\:00.2/driver/unbind

echo 0000\:03\:00.3 > /sys/bus/pci/devices/0000\:03\:00.3/driver/unbind

echo 1af4 1041 > /sys/bus/pci/drivers/ifcvf/new_id

//home/lulu/2452/upload3_1/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev vhost-vdpa,fd=12,id=vhost-vdpa2 \

? -device vif,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:02 \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

strace //home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

-net user,hostfwd=tcp::10021-:22 -net nic \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:11:ba:01\

? -smp 4\

-cpu host \

? 2>&1 | tee vm.log

2943b53f682f54548e7ddcf2ebb6c6d12d8dc821

-netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa0,id=mynet1 \

-device virtio-net-pci,netdev=mynet1,mac=00:e8:ca:11:ba:01

-netdev tap,fd=24,id=hostnet0

-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:e4:2e:c1,bus=0x03 slot=0x00 function=0x2 \

-chardev pty,id=charserial0

fd=2 3<>/dev/tap$(< /sys/class/net/tap0/ifindex)

slot=0x00: drive with bus=0, unit=0 (index=0) exists

modprobe vfio enable_unsafe_noiommu_mode=Y

modprobe vfio-pci

./usertools/dpdk-devbind.py --bind=vfio-pci eth0

./x86_64-native-linux-gcc/app/testpmd -- -i

set fwd io

start tx_first 1000

show port stats all

ifconfig eth0 hw ether 00:0C:18:EF:FF:ED

qemu -net nic,model=virtio,addr=1a:46:0b:ca:bc:7b -net tap,fd=3 3<>/dev/tap11

//home/lulu/2452/upload6/x86_64-softmmu/qemu-system-x86_64 \

? -netdev tap,fd=12,id=hostnet0? \

? -device virtio-net-pci,netdev=hostnet0,mac=00:e8:ca:11:ba:02 \

? -hda //home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -smp 1 \

-cpu host \

? 2>&1 | tee vm.log

./pktgen -l 0-1 -n 2 -- -P -m "[1].0"

./pktgen -l 0-4 -n 3 -- -P -m "[1:3].0"

set 0 dst mac 00:e8:ca:11:ba:04

set 0 src ip 1.1.1.1/24

set 0 dst ip 1.1.1.2

set 0 dst mac 00:e8:ca:11:ba:09

set 0 dst ip 1.1.1.1

set 0 src ip 1.1.1.2/24

./testpmd –l 1 -n 2? -- -i

set fwd io

start tx_first 1000

show port stats all

testpmd> show port stats all

vhost_net_get_features 4000

vhost_net_get_features 179bfbbe7

vhost_net_get_features 4000

vhost_net_get_features 179bfbbe7

ulimit -l unlimited

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

gdb --args

strace

strace //home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -m 8G \

? -nographic \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa0 \

? -device virtio-net-pci,netdev=vhost-vdpa0,mac=00:e8:ca:33:ba:02,disable-modern=off,page-per-vq=on? \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-1,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:33:ba:05,disable-modern=off,page-per-vq=on \

-cpu host \

? -smp 12 \

? 2>&1 | tee vm.log

Hexadecimal

cli of passing fd

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -m 8G \

? -nographic \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:33:ba:05,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

? -m 8G \

? -nographic \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-2,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:33:ba:05,disable-modern=off,page-per-vq=on \

? -smp 4 \

-cpu host \

? 2>&1 | tee vm.log

//usr/libexec/qemu-kvm \

? -hda ///home/new2.qcow2\

-net user,hostfwd=tcp::10021-:22 -net nic \

? -enable-kvm \

? -nographic \

? -m 8G \

? -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-0,id=vhost-vdpa1 \

? -device virtio-net-pci,netdev=vhost-vdpa1,mac=00:e8:ca:11:ba:02,disable-modern=off,page-per-vq=on \

? -smp 8 \

-cpu host \

? 2>&1 | tee vm.log

#!/bin/bash

#

read -p "請(qǐng)輸入要打開的文件或目錄:" NAME

if [[ $NAME =~ ^[Ww][Ee][Ii][Bb][Oo]$ ]]

then

? ? ? ? DIR=/Users/valie/Documents/WeiBo

? ? ? ? if [ -d $DIR ]

? ? ? ? then

? ? ? ? ? ? ? ? open $DIR

? ? ? ? else

? ? ? ? ? ? ? ? echo "文件夾WeiBo不存在哦!"

? ? ? ? fi

fi

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

-machine pc-i440fx-4.2,accel=kvm,usb=off,dump-guest-core=off\

-m 12288 -overcommit mem-lock=off \

? -nographic \

-smp 6,sockets=6,cores=1,threads=1 -uuid e1703c76-ba3a-40e3-8242-963a550291c5 \

-drive file=///home/new2.qcow2,format=qcow2\

-netdev vhost-vdpa,id=vdpa0,vhostdev=/dev/vhost-vdpa-0 \

-device virtio-net-pci,netdev=vdpa0? \

-netdev user,id=n1 \

-device virtio-net-pci,netdev=n1\

-netdev vhost-vdpa,id=vdpa0,vhostdev=/dev/vhost-vdpa-1 \

-device virtio-net-pci,netdev=vdpa0\

-netdev user,id=n2 \

-device virtio-net-pci,netdev=n2

-add-fd fd=3,set=2,opaque="rdwr:/path/to/file"

//home/lulu/2452/vdpa_new/x86_64-softmmu/qemu-system-x86_64 \

? -hda ///home/new2.qcow2\

? -enable-kvm \

-net user,hostfwd=tcp::10021-:22 -net nic \

-add-fd fd=9,set=2,opaque="rdwr:/dev/vhost-vdpa-2"\

? -netdev type=vhost-vdpa,vhostdev=/dev/fdset/2,id=vhost-vdpa2 \

? -device virtio-net-pci,netdev=vhost-vdpa2,mac=00:e8:ca:33:ba:05,disable-modern=off,page-per-vq=on \

? -m 8G \

? -nographic \

? -smp 4 \

-cpu host \

16_8 23

Working the the vDPA QEMU RFC, got some comments, Still working in it and will send it out soon

help test the patch IRQ request/free to status change?

help work with jason for the patch of qemu status

have a meeting with SRIOV openstack team, Will summry the meeting minuts soon

#yum install -y lzo-devel snappy-devel libseccomp-devel gnutls-devel rdma-core-devel cyrus-sasl-devel libpng-devel libcurl-devel librbd1-devel pixman-devel libssh2-devel libaio-devel glusterfs-api-devel numactl-devel gperftools-devel texinfo libiscsi-devel libusb-devel spice-server-devel usbredir-devel

rpm -ivh qemu-kvm-rhev-2.6.0-27.el7.src.rpm

#rpmbuild -bb --target x86_64 --nodeps /root/rpmbuild/SPECS/qemu-kvm.spec

MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}? QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/cdrom-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="cdrom-test"

PASS 1 cdrom-test /x86_64/cdrom/boot/default

PASS 2 cdrom-test /x86_64/cdrom/boot/virtio-scsi

qemu-system-x86_64: -device am53c974: 'am53c974' is not a valid device model name

使用 git branch -a 可以查看本地分支和遠(yuǎn)程分支情況

git remote show origin

可以發(fā)現(xiàn)紅框中的分支是遠(yuǎn)程分支已被刪除的分支,根據(jù)提示可以使用 git remote prune 來同步刪除這些分支。

git remote prune origin

二. 刪除本地多余分支

git branch -D feature/chatfix

本地多余分支已刪除

Bugzilla: 1771441

Brew Build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=28746604

Upstream: Accepted

Test status: Slightly tested with vdpa_sim and ifcvf

Hi all:

This is the backporting of vDPA from upstream. We plan to make it

technical preview for RHEL 8.3

Please review.

Thanks

Arnd Bergmann (1):

? compat_ioctl: add compat_ptr_ioctl()

Greg Edwards (1):

? vhost: allow vhost-scsi driver to be built-in

Jason Wang (15):

? vhost: generalize adding used elem

? vhost: fine grain userspace memory accessors

? vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()

? vhost: introduce helpers to get the size of metadata area

? vhost: factor out setting vring addr and num

? vringh: fix copy direction of vringh_iov_push_kern()

? vhost: refine vhost and vringh kconfig

? vhost: allow per device message handler

? vhost: factor out IOTLB

? vringh: IOTLB support

? vDPA: introduce vDPA bus

? virtio: introduce a vDPA based transport

? vdpasim: vDPA device simulator

? vdpa: fix comment of vdpa_register_device()

? redhat: enable vDPA

Michael S. Tsirkin (9):

? vdpa: move to drivers/vdpa

? vdpa-sim: depend on HAS_DMA

? vdpa: allow a 32 bit vq alignment

? vdpa: make vhost, virtio depend on menu

? virtio_blk: add a missing include

? virtio-rng: pull in slab.h

? virtio_input: pull in slab.h

? virtio: drop vringh.h dependency

? vhost: disable for OABI

Paolo Bonzini (1):

? vhost: split structs into a separate header file

Tiwei Bie (2):

? virtio: support VIRTIO_F_ORDER_PLATFORM

? vhost: introduce vDPA-based backend

Vincent Whitchurch (1):

? mic: vop: Allow building on more systems

YueHaibing (2):

? vdpa: remove unused variables 'ifcvf' and 'ifcvf_lm'

? vdpasim: Return status in vdpasim_get_status

Zhu Lingshan (1):

? virtio: Intel IFC VF driver for VDPA

https://blog.csdn.net/qq_39759656/article/details/82858101?utm_medium=distribute.pc_relevant_download.none-task-blog-blogcommendfrombaidu-2.nonecase&depth_1-utm_source=distribute.pc_relevant_download.none-task-blog-blogcommendfrombaidu-2.nonecas

#!/bin/sh

# pktgen.conf -- Sample configuration for send on two devices on a UP system

#modprobe pktgen

if [[ `lsmod | grep pktgen` == "" ]];then

? modprobe pktgen

fi

if [[ $1 == "" ]];then

? pktsize=550

else

? pktsize=$1

fi

function pgset() {

? ? local result

? ? echo $1 > $PGDEV

? ? result=`cat $PGDEV | fgrep "Result: OK:"`

? ? if [ "$result" = "" ]; then

? ? ? ? cat $PGDEV | fgrep Result:

? ? fi

}

function pg() {

? ? echo inject > $PGDEV

? ? cat $PGDEV

}

# On UP systems only one thread exists -- so just add devices

# We use eth1, eth1

echo "Adding devices to run".

PGDEV=/proc/net/pktgen/kpktgend_0

pgset "rem_device_all"

pgset "add_device eth0"

pgset "max_before_softirq 1"

# Configure the individual devices

echo "Configuring devices"

PGDEV=/proc/net/pktgen/eth0

pgset "clone_skb 1000"

pgset "pkt_size $pktsize"

pgset "src_mac 00:e8:ca:11:ba:03"

#pgset "flag IPSRC_RND"

#pgset "src_min 192.168.1.1"

#pgset "src_max 192.168.1.2"

#pgset "dst 192.168.1.3"

pgset "dst_mac? 00:E8:CA:11:BA:02"

pgset "count 1000"

# Time to run

PGDEV=/proc/net/pktgen/pgctrl

echo "pkgsize:$pktsize"

echo "Running... ctrl^C to stop"

pgset "start"

echo "Done"

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市叮雳,隨后出現(xiàn)的幾起案子烈拒,更是在濱河造成了極大的恐慌段磨,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,542評(píng)論 6 504
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件蜓竹,死亡現(xiàn)場(chǎng)離奇詭異沃疮,居然都是意外死亡盒让,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,822評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門司蔬,熙熙樓的掌柜王于貴愁眉苦臉地迎上來邑茄,“玉大人,你說我怎么就攤上這事俊啼》温疲” “怎么了?”我有些...
    開封第一講書人閱讀 163,912評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵授帕,是天一觀的道長(zhǎng)同木。 經(jīng)常有香客問我,道長(zhǎng)跛十,這世上最難降的妖魔是什么彤路? 我笑而不...
    開封第一講書人閱讀 58,449評(píng)論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮芥映,結(jié)果婚禮上洲尊,老公的妹妹穿的比我還像新娘。我一直安慰自己奈偏,他們只是感情好坞嘀,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,500評(píng)論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著惊来,像睡著了一般丽涩。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上裁蚁,一...
    開封第一講書人閱讀 51,370評(píng)論 1 302
  • 那天矢渊,我揣著相機(jī)與錄音,去河邊找鬼枉证。 笑死昆淡,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的刽严。 我是一名探鬼主播昂灵,決...
    沈念sama閱讀 40,193評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼舞萄!你這毒婦竟也來了眨补?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,074評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤倒脓,失蹤者是張志新(化名)和其女友劉穎撑螺,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體崎弃,經(jīng)...
    沈念sama閱讀 45,505評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡甘晤,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,722評(píng)論 3 335
  • 正文 我和宋清朗相戀三年含潘,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片线婚。...
    茶點(diǎn)故事閱讀 39,841評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡遏弱,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出塞弊,到底是詐尸還是另有隱情漱逸,我是刑警寧澤,帶...
    沈念sama閱讀 35,569評(píng)論 5 345
  • 正文 年R本政府宣布游沿,位于F島的核電站饰抒,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏诀黍。R本人自食惡果不足惜袋坑,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,168評(píng)論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望眯勾。 院中可真熱鬧枣宫,春花似錦、人聲如沸咒精。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,783評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽模叙。三九已至,卻和暖如春鞋屈,著一層夾襖步出監(jiān)牢的瞬間范咨,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,918評(píng)論 1 269
  • 我被黑心中介騙來泰國(guó)打工厂庇, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留渠啊,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 47,962評(píng)論 2 370
  • 正文 我出身青樓权旷,卻偏偏與公主長(zhǎng)得像替蛉,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子拄氯,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,781評(píng)論 2 354