From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHqKv-0004RW-DK for qemu-devel@nongnu.org; Thu, 14 Aug 2014 04:24:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHqKn-0001GC-T5 for qemu-devel@nongnu.org; Thu, 14 Aug 2014 04:24:41 -0400 Received: from [58.251.49.30] (port=48054 helo=mail.sangfor.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHqKn-0001E4-J4 for qemu-devel@nongnu.org; Thu, 14 Aug 2014 04:24:33 -0400 Date: Thu, 14 Aug 2014 16:22:26 +0800 From: "Zhang Haoyu" Message-ID: <201408141622244965425@sangfor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [questions] about using vfio to assign sr-iov vf to vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , kvm Hi, all I'm using VFIO to assign intel 82599 VF to VM, now I encounter a problem, 82599 PF and its VFs belong to the same iommu_group, but I only want to assign some VFs to one VM, and some other VFs to another VM, ..., so how to only unbind (part of) the VFs but PF? I read the kernel doc vfio.txt, I'm not sure should I unbind all of the devices which belong to one iommu_group? If so, because PF and its VFs belong to the same iommu_group, if I unbind the PF, its VFs also diappeared. I think I misunderstand someting, any advises? Thanks, Zhang Haoyu