From owner-freebsd-xen@freebsd.org Mon Apr 25 11:16:20 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 400D9B1C072 for ; Mon, 25 Apr 2016 11:16:20 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC24610D4 for ; Mon, 25 Apr 2016 11:16:19 +0000 (UTC) (envelope-from royger@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id w143so20131210wmw.3 for ; Mon, 25 Apr 2016 04:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7dr4b3TT9g2V54cUsApPIBQ0Jt/rG875bOffTt275uM=; b=yo0hui1un3ff7XKmSVLyeTXerktSCAbPt5LtT+f3Fhja7QXwPfBlHgZ8S9rQC53Njd 8Yj5HTtzqaO7R3KBU/7Hd0d77tzf8RnzgFslpncghDIweOC0fHJAVLRjYH0ziaaLJHHM X38D62XBM/by6JnGNaJYE8iGme3zDnY+DcEbn7UaPvwegDBsnpJawjG9lDnk8QNJAcx9 izhc71leCzuiKCK4ITt6/P56AtU51dVeXgUX8CGbRp6Pideo8MT9MqjpabS+JxBKpVc7 /TYCT2+8YHhpD7OVJGF8cl71KRzcI4c4iEh3qgHbgdjbxmfsNIwI6p6bs/hnD6TDVRhH B/Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=7dr4b3TT9g2V54cUsApPIBQ0Jt/rG875bOffTt275uM=; b=hCEBiBknVvXnbm1ttM7+NHz77o3E3aYOi4PJd1UItROCUE39Be/RIvC0BMLgnXSfLJ YCEioD3oax9qK5PyBISb4DmZBelgJ71Pt10QJV2M1sP9hs3fvBX8hsVxlvWCdVYmGS25 pUtP6tChY/Kr+MxUDToTbkfKzqi/F5VUuWqIotAmZk2y2hnKwAu0T853w7u5r7nzvq3i jRLpFsu80UKelM6if4CY3C0UkNzqlt5HNyIESYoOGAjDYVBDl4n911QRyVaUKgNL2PSR GSLepgAjtQlmtFi/rlFNODUDLuJZcyDB1ziR9hG9rjrksYq8JP/zHQXDLXbgJ7eFRvzo Pdyg== X-Gm-Message-State: AOPr4FWMRimKXK6/bobmy99TmTtJ26NfOzQk12dugGl3BIN1UytVKWdqI2/u6D5cualzoA== X-Received: by 10.28.138.196 with SMTP id m187mr11187575wmd.61.1461582978345; Mon, 25 Apr 2016 04:16:18 -0700 (PDT) Received: from localhost (172.red-83-45-36.dynamicip.rima-tde.net. [83.45.36.172]) by smtp.gmail.com with ESMTPSA id jo6sm23033516wjb.48.2016.04.25.04.16.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Apr 2016 04:16:17 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Date: Mon, 25 Apr 2016 13:16:12 +0200 From: Roger Pau =?iso-8859-1?Q?Monn=E9?= To: Michael Cc: freebsd-xen@freebsd.org Subject: Re: PCI/VGA passthrough for FreeBSD dom0 Message-ID: <20160425111612.5rhg3w5suwjo6xil@mac> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0-neo (2016-04-07) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2016 11:16:20 -0000 On Mon, Apr 25, 2016 at 01:03:40PM +0200, Michael wrote: > Hi roger, > whats missing or what would be needed to support PCI/VGA passthrough > for FreeBSD dom0? Hello, I haven't looked much into this because I've been busy with other stuff, so my response is going to be a little vague. AFAICT, we need a pciback implementation in FreeBSD, that should attach to the devices that are going to be passed-through. Bhyve uses something called ppt, so it could be a starting point. Then the way to perform the passthrough depends on whether the guest is PV or HVM, but I don't know the exact differences between them (I only know HVM guests use QEMU and PV guests use some functionality in pciback). If someone is interested in taking up this project, I'm more than happy to help in any way I can. Roger.