<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vf does not functions if guest domain is halted and started , reboot is fine! in Ethernet Products</title>
    <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238657#M1140</link>
    <description>&lt;P&gt;Dear All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to report back that the linux VFIO driver cleanly solves the&lt;/P&gt;&lt;P&gt;original problem. For this latest qemu (1.2+) is required that recognizes &lt;/P&gt;&lt;P&gt;the vfio-pci type device. The VFIO driver has been merged to the mainline&lt;/P&gt;&lt;P&gt;since version 3.6 . ( &lt;A href="https://lkml.org/lkml/2012/7/25/288"&gt;https://lkml.org/lkml/2012/7/25/288&lt;/A&gt; LKML: Alex Williamson: [GIT PULL (PATCH 0/4)] VFIO driver for v3.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A tutorial is present here: &lt;A href="https://docs.google.com/file/d/0B4Em50Bac2U7dmFKN3JZVjZjOG8/edit"&gt;https://docs.google.com/file/d/0B4Em50Bac2U7dmFKN3JZVjZjOG8/edit&lt;/A&gt; KVM-Forum-2012-VFIO.pdf - Google Drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however i am yet to test the pass through of sriov vfs , so far the PF pass through &lt;/P&gt;&lt;P&gt;has been tested successfully.&lt;/P&gt;&lt;P&gt;thanks everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;Rajesh Kumar Mallah.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2013 15:33:13 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2013-01-29T15:33:13Z</dc:date>
    <item>
      <title>vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238647#M1130</link>
      <description>&lt;P&gt;Dear Community ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using latest version of ixgbe , ixgbevf , libvrt , kvm .&lt;/P&gt;&lt;P&gt;We have assigned VF to VM via direct pci assignment. When the guest starts&lt;/P&gt;&lt;P&gt;for the first time we are able to ping to and from guest. This persists across&lt;/P&gt;&lt;P&gt;VM reboots.  However when we 'halt' the guest vm and start the VM again&lt;/P&gt;&lt;P&gt;we are not able to ping to and from the VM. This 'problem' is fixed if we&lt;/P&gt;&lt;P&gt;restart the VM after reloading the ixgbe kernel module in Host and ifupdown'ing&lt;/P&gt;&lt;P&gt;the interfaces. But this 'fix' is not repeatable. It does not works all the time. However&lt;/P&gt;&lt;P&gt;If i reboot the host OS it gets 'fix'ed , and this 'fix' is repeatable.&lt;/P&gt;&lt;P&gt;I have also tried lower version of the various components but to no avail.&lt;/P&gt;&lt;P&gt;This is my first post and i am  not sure what all info should have been posted.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;Rajesh Kumar Mallah.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2012 18:04:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238647#M1130</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-12T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238648#M1131</link>
      <description>&lt;P&gt;Hi Rajesh and welcome to the community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using SR-IOV and you assign a VF to a VM, that VM is accessing physical hardware resources.  The VF driver in the VM initializes those resources and places them into a known state for use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you pause a VM, which is of coure a way of taking a 'snapshot' of the VM, itincludes a snopshot all of it's hardware configuration, including all the registers and such in the VF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When that VM is then brough back up again and resumed, it does not know it has been paused - it assumes everything is as it was before and tried to continue running.  This includes the VF, the VM assumes it has the same exact VF that it had before, and that all the registers in the VF are in the same exact state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is almost never the case - once you pause a VM, the VF is in an unknown state and will have to be re-initialized.   You are also not guaranteed to get back the same exact VF that you had before, even if you do the state of the VF will almost certainly have changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a hypervisor level issue, one that I know many are working on, though I don't have any details I'm allowed to share at this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of possible solutions are to somehow simulate a PCI hot-plug event for the VF when you resume your VM, so that the VM will re-enumerate the VF and reload the driver.  Another possibility is to have an emulated Ethernet device that you failover to before you pause the VM, and then when you resume your VM, the emulated Ethernet device will work for you, while you perform a PCI hot-plug event for the VF as mentioned previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SR-IOV is a cool technology that give you improved performance, however it also comes with additional complications and challenges that are still being worked on by the hypervisor vendors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 14:13:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238648#M1131</guid>
      <dc:creator>Patrick_K_Intel1</dc:creator>
      <dc:date>2012-08-13T14:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238649#M1132</link>
      <description>&lt;P&gt;Dear Patrick ,&lt;/P&gt;&lt;P&gt;Thanks for the response. Based on my understanding of your suggestions i am doing some changes.&lt;/P&gt;&lt;P&gt;particularly seeing if hotplugging of the pci device into the VM via hypervisor (KVM) triggers proper&lt;/P&gt;&lt;P&gt;initialisation of the VFs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;mallah.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 01:01:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238649#M1132</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-14T01:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238650#M1133</link>
      <description>&lt;P&gt;Great!  If you have a chance, please come back and let us know how it worked out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 02:32:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238650#M1133</guid>
      <dc:creator>Patrick_K_Intel1</dc:creator>
      <dc:date>2012-08-14T02:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238651#M1134</link>
      <description>&lt;P&gt;Dear Patrick ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is what did *not* work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) compiled a recent kernel inside the VM with pci hotplug support and the bundled ixgbevf inbuilt.&lt;/P&gt;&lt;P&gt;    (btw ixgbevf 2.6.2 does not compiles with vanilla 3.5.1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) used hypervisor command&lt;/P&gt;&lt;P&gt;/usr/local/libvirt/bin/virsh  attach-device new-installed   ~/nic.xml&lt;/P&gt;&lt;P&gt;to hotplug the pci device into the running VM.&lt;/P&gt;&lt;P&gt;nic.xml contained&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) tailed syslog in the VM which nicely indicated&lt;/P&gt;&lt;P&gt;   3.1 the hotplugging event&lt;/P&gt;&lt;P&gt;   3.2  the handling of the new PCI device by ixgbevf&lt;/P&gt;&lt;P&gt;   3.3 upping of the eth0 and link ready message.&lt;/P&gt;&lt;P&gt;   3.4 lspci did indicate the virtual PCI device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however the connectivity was not successful.&lt;/P&gt;&lt;P&gt;In your original posting I did not very much understand why you reiterated on the pausing&lt;/P&gt;&lt;P&gt;and resuming of VM. the problem is with the shutdown the VM instance. I read it many&lt;/P&gt;&lt;P&gt;times still i cannot connect all the points. thanks for your support till now and we look&lt;/P&gt;&lt;P&gt;forward to further hints from you. Inspite of all these i feel sriov is really cool !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HMMM: just realized i do not have permission to upload the 2 screenshots that a made from&lt;/P&gt;&lt;P&gt;virt-manager ! ( Can i have the permission to attach please!!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rajesh Kumar Mallah&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 03:10:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238651#M1134</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-14T03:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238652#M1135</link>
      <description>&lt;P&gt;What is counter intuitive is that in spite of all the good messages in the&lt;/P&gt;&lt;P&gt;host and the guest kernel logs and in spite of all the OS tools indicating&lt;/P&gt;&lt;P&gt;everything being fine about the VFs, they are still not functional. Are the&lt;/P&gt;&lt;P&gt;messages not misleading then ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 03:21:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238652#M1135</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-14T03:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238653#M1136</link>
      <description>&lt;P&gt;OK!&lt;/P&gt;&lt;P&gt;here is what works!&lt;/P&gt;&lt;P&gt;if we detach the VF from the guest before its shutdown , the VF connectivity works.&lt;/P&gt;&lt;P&gt;I detached the nic using the &lt;/P&gt;&lt;P&gt;/usr/local/libvirt/bin/virsh  detach-device new-installed   ~/nic.xml&lt;/P&gt;&lt;P&gt;command and then halted the guest.&lt;/P&gt;&lt;P&gt;After the guest was started again i attached the nic using command&lt;/P&gt;&lt;P&gt;/usr/local/libvirt/bin/virsh  attach-device new-installed   ~/nic.xml&lt;/P&gt;&lt;P&gt;the network in the guest was configured to allow hot-plug of ethernet interfaces.&lt;/P&gt;&lt;P&gt;It came up nicely and i was able to ping to and from. Hence my 'problem' is partly&lt;/P&gt;&lt;P&gt;solved as long as i remember to detach the device from the guest before shutting it.&lt;/P&gt;&lt;P&gt;If anyone has a more elegant way of doing it or anyway to automate this , i would be &lt;/P&gt;&lt;P&gt;keen to hear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;mallah.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 18:08:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238653#M1136</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-16T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238654#M1137</link>
      <description>&lt;P&gt;now exploring libvirt callbacks to automate the detaching of the vf prior to domain shutdown or&lt;/P&gt;&lt;P&gt;destroy.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2012 03:01:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238654#M1137</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-17T03:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238655#M1138</link>
      <description>&lt;P&gt;Thanx much for keeping us up to date on your progress!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2012 13:12:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238655#M1138</guid>
      <dc:creator>Patrick_K_Intel1</dc:creator>
      <dc:date>2012-08-17T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238656#M1139</link>
      <description>&lt;P&gt;Yep! that is the beauty of community!&lt;/P&gt;&lt;P&gt;BTW we also discovered the hooks folder under libvirt/etc so we are trying to put&lt;/P&gt;&lt;P&gt;custom scripts there. These scripts (hooks) are called by libvirt with appropriate&lt;/P&gt;&lt;P&gt;args. My colleague is working on it and we shall post again once something &lt;/P&gt;&lt;P&gt;interesting is discovered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;mallah.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2012 13:18:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238656#M1139</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2012-08-17T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: vf does not functions if guest domain is halted and started , reboot is fine!</title>
      <link>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238657#M1140</link>
      <description>&lt;P&gt;Dear All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would want to report back that the linux VFIO driver cleanly solves the&lt;/P&gt;&lt;P&gt;original problem. For this latest qemu (1.2+) is required that recognizes &lt;/P&gt;&lt;P&gt;the vfio-pci type device. The VFIO driver has been merged to the mainline&lt;/P&gt;&lt;P&gt;since version 3.6 . ( &lt;A href="https://lkml.org/lkml/2012/7/25/288"&gt;https://lkml.org/lkml/2012/7/25/288&lt;/A&gt; LKML: Alex Williamson: [GIT PULL (PATCH 0/4)] VFIO driver for v3.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A tutorial is present here: &lt;A href="https://docs.google.com/file/d/0B4Em50Bac2U7dmFKN3JZVjZjOG8/edit"&gt;https://docs.google.com/file/d/0B4Em50Bac2U7dmFKN3JZVjZjOG8/edit&lt;/A&gt; KVM-Forum-2012-VFIO.pdf - Google Drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however i am yet to test the pass through of sriov vfs , so far the PF pass through &lt;/P&gt;&lt;P&gt;has been tested successfully.&lt;/P&gt;&lt;P&gt;thanks everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;Rajesh Kumar Mallah.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 15:33:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Ethernet-Products/vf-does-not-functions-if-guest-domain-is-halted-and-started/m-p/238657#M1140</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2013-01-29T15:33:13Z</dc:date>
    </item>
  </channel>
</rss>

