From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDpL3-0004ea-7t for qemu-devel@nongnu.org; Wed, 21 Jan 2015 02:04:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDpKy-0004La-2C for qemu-devel@nongnu.org; Wed, 21 Jan 2015 02:04:28 -0500 Received: from mga11.intel.com ([192.55.52.93]:46995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDpKx-0004L4-Sp for qemu-devel@nongnu.org; Wed, 21 Jan 2015 02:04:23 -0500 Message-ID: <54BF4F66.1030306@intel.com> Date: Wed, 21 Jan 2015 15:04:06 +0800 From: "Chen, Tiejun" MIME-Version: 1.0 References: <1421659723-2496-1-git-send-email-tiejun.chen@intel.com> <1421659723-2496-6-git-send-email-tiejun.chen@intel.com> <1421667903.3610.20.camel@nilsson.home.kraxel.org> <54BDC82D.9020802@intel.com> <1421741664.3606.8.camel@nilsson.home.kraxel.org> In-Reply-To: <1421741664.3606.8.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [v6][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: mst@redhat.com, allen.m.kay@intel.com, qemu-devel@nongnu.org, aliguori@amazon.com, yang.z.zhang@intel.com, pbonzini@redhat.com, rth@twiddle.net On 2015/1/20 16:14, Gerd Hoffmann wrote: > On Di, 2015-01-20 at 11:14 +0800, Chen, Tiejun wrote: >> On 2015/1/19 19:45, Gerd Hoffmann wrote: >>> On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: >>>> +DEF("gfx_passthru", 0, QEMU_OPTION_gfx_passthru, >>>> + "-gfx_passthru enable Intel IGD passthrough by XEN\n", >>>> + QEMU_ARCH_ALL) >>>> +STEXI >>>> +@item -gfx_passthru >>>> +@findex -gfx_passthru >>>> +Enable Intel IGD passthrough by XEN >>>> +ETEXI >>> >>> Make that a machine option, i.e. "-machine pc,igd-passthru=on"? >> >> Yeah but I think we need "-machine xenfv,igd-passthru=on" here. > > IIRC xen decided to stop using xenfv and use pc-$version instead (with > $version being what was current at release time, 1.6 for xen 4.4 I > think, to avoid surprises like the address space layout changes in more > recent machine types). > To be more exact, 'xen_platform_pci' should determine this at this point, if (!libxl_defbool_val(b_info->u.hvm.xen_platform_pci)) { /* Switching here to the machine "pc" which does not add * the xen-platform device instead of the default "xenfv" machine. */ machinearg = libxl__sprintf(gc, "pc,accel=xen"); } else { machinearg = libxl__sprintf(gc, "xenfv"); } But you may remember, in our case we always set 'xen_platform_pci=0' since we need to release slot 2 for IGD. So finally we really go pc case. Anyway this means something should be changed to pass such a new machine property in Xen side. And I'll send a patch to address this firstly, then go back here. Thanks Tiejun