Received: from eggs.gnu.org ([2001:4830:134:3::10]:33687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4NzX-0003Qx-VE for qemu-devel@nongnu.org; Mon, 15 Jun 2015 02:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4NzS-0005MS-Fp for qemu-devel@nongnu.org; Mon, 15 Jun 2015 02:35:31 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:55297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4NzS-0005Ly-BY for qemu-devel@nongnu.org; Mon, 15 Jun 2015 02:35:26 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.14.5/8.14.5) with SMTP id t5F6ZAdZ000717 for ; Sun, 14 Jun 2015 23:35:24 -0700 Received: from il-exch02.marvell.com (galiil.marvell.com [199.203.130.254]) by mx0b-0016f401.pphosted.com with ESMTP id 1v04294qxu-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 14 Jun 2015 23:35:24 -0700 From: Yehuda Yitschak Date: Mon, 15 Jun 2015 06:35:19 +0000 Message-ID: <004767f849d1410ba2450c63ec4e6166@IL-EXCH02.marvell.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [Qemu-devel] Assigning an eth port to a guest VM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Cc: Shadi Ammouri , Yuval Caduri Hello=20 I would to ask your advice on how to assign a semi-virtualized Ethernet por= t to a guest VM The eth port's HW partially supports virtualization since the data path MMI= O registers (which controls rx/tx operation) are duplicated per VM. So for the run-time operation the guest can directly access the MMIO regist= ers, using VFIO-PLATFORM, and enjoy the performance benefit. However for the initial setup and occasional configuration the guest need t= o access control path registers which are shared for all guests. AFAIK this is usually done with HW emulation using trap & emulate with QEMU= .=20 So, to the best of my knowledge I need a mix of VFIO and HW emulation to ge= t the port to work with device assignment , right ? Are there any standard methods for achieving this ? Is there an example for such an existing HW in QEMU ? Thanks=20 Yehuda Yitschak