Public bug reported:

---Problem Description---
Unable to hotplug SRIOV CX4 VF to Ubuntu 16.10 or 16.04.1 guests.
  
---uname output---
Linux c158f2u09os 4.7.0unofficial #5 SMP Mon Sep 5 08:53:38 EDT 2016 ppc64le 
ppc64le ppc64le GNU/Linux
 
---Additional Hardware Info---
Mellanox CX4 

Machine Type = 8247-22L 
  
---Steps to Reproduce---
 Unable to hotplug SRIOV CX4 VF to Ubuntu 16.10 guest.

1. Boot the guests with/without VFs
2. Try hotplugging of VF to guests, you will notice error as shown below:

root@c158f2u09os:/var/lib/libvirt/images/srikanth# cat hot_vf.xml 
<hostdev mode='subsystem' type='pci' managed='yes'>
  <source>
    <address domain='0x0005' bus='0x01' slot='0x00' function='0x4'/>
  </source>
</hostdev>
root@c158f2u09os:/var/lib/libvirt/images/srikanth# virsh attach-device 
ubuntu1610_srik ./hot_vf.xml --live
error: Failed to attach device from ./hot_vf.xml
error: cannot limit locked memory of process 80265 to 9663676416: Permission 
denied

root@c158f2u09os:/var/lib/libvirt/images/srikanth# virsh attach-device 
ubuntu160401_srik ./hot_vf.xml --live
error: Failed to attach device from ./hot_vf.xml
error: cannot limit locked memory of process 80960 to 9663676416: Permission 
denied

=====================
Environment details:
=====================

Host : 
        9.47.68.198, root/sriov4321
        Ubuntu 16.10
        kernel version: 
        Linux c158f2u09os 4.7.0unofficial #5 SMP Mon Sep 5 08:53:38 EDT 2016 
ppc64le ppc64le ppc64le GNU/Linux
Guest: 
1. ubuntu1610_srik
        kernel version: 4.7.0unofficial
        creds: root/123456
2. ubuntu160401_srik
        kernel version: 4.4.0-38-generic
        creds: root/123456

MOFED versions:
        MOFED version in Host as well Guest: 3.4-OFED.3.4.0.1.0.1
        CX4 Firmware version: 12.17.0222

Development took a look at this an believes this is an apparmor related
issue and requested the defect be mirrored to Canonical for their
assistance.

** Affects: apparmor (Ubuntu)
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64le bugnameltc-146192 severity-critical 
targetmilestone-inin1610

** Tags added: architecture-ppc64le bugnameltc-146192 severity-critical
targetmilestone-inin1610

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

Title:
  [LTCTest] SR-IOV VF hotplug failing: cannot limit locked memory of
  process

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to