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 "请输入要打开的文件或目录:" 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 可以查看本地分支和远程分支情况
git remote show origin
可以发现红框中的分支是远程分支已被删除的分支,根据提示可以使用 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"