Hi,
   Here are the steps which I followed.

Created VM with the below command.

virt-install \
    --connect qemu:///system \
    --name ixa00400270_002 \
    --memory 4096 \
    --vcpus 16,sockets=1,cores=8,threads=1 \
    --noautoconsole \
    --disk path=/vm/images/ixa00385352_002.img \
    --machine q35 \
    --network default,model=virtio \
    --virt-type kvm \
    --graphics none \
    --import \
    --qemu-commandline="-machine kernel-irqchip=split -device 
intel-iommu,intremap=on,caching-mode=on,aw-bits=48 -s"


After that, I am trying to attach VF's by using virsh attach-device

Adding two more ports to the guest.
 
virt-xml --add-device --controller pci,model=pcie-root-port,index=7 
ixa00400270_002

virt-xml --add-device --controller pci,model=pcie-root-port,index=8
ixa00400270_002

virsh attach-device ixa00400270_002 pci1.xml
virsh attach-device ixa00400270_002 pci2.xml

Once I attach second VF's guest is crashed.

The reason from host kernel log is:

[ 7445.865405] kvm [15991]: vcpu0, guest rIP: 0xffffffff8268072f disabled 
perfctr wrmsr: 0xc2 data 0xffff
[ 7569.000006] vfio-pci 0000:3d:01.3: enabling device (0000 -> 0002)
[ 7599.446065] vfio-pci 0000:3d:01.5: enabling device (0000 -> 0002)
[ 7599.866275] vfio_pin_pages_remote: RLIMIT_MEMLOCK (5368709120) exceeded
[ 7600.329913] virbr0: port 2(vnet0) entered disabled state
[ 7600.332941] device vnet0 left promiscuous mode
[ 7600.332960] virbr0: port 2(vnet0) entered disabled state





** Attachment added: "Guest Machine log"
   
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1854952/+attachment/5309774/+files/ixa00400270_002.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1854952

Title:
  VM is getting crashed/shutdown when we attach VF's on demand

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1854952/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to