From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUC0-0003cl-EW for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXUBv-0002F6-OR for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:32:24 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:45946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUBv-0002ER-L0 for qemu-devel@nongnu.org; Mon, 16 Mar 2015 08:32:19 -0400 Message-ID: <1426508400.18247.33.camel@citrix.com> From: Ian Campbell Date: Mon, 16 Mar 2015 12:20:00 +0000 In-Reply-To: <55062CD2.8050305@intel.com> References: <1425980538-5508-1-git-send-email-tiejun.chen@intel.com> <1425980538-5508-3-git-send-email-tiejun.chen@intel.com> <1426073641.21353.192.camel@citrix.com> <55010596.2030106@intel.com> <1426163186.21353.409.camel@citrix.com> <55023FDA.7030204@intel.com> <1426241479.32572.94.camel@citrix.com> <55062CD2.8050305@intel.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [v2][PATCH 2/2] libxl: introduce gfx_passthru_kind List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Chen, Tiejun" Cc: Ian.Jackson@eu.citrix.com, wei.liu2@citrix.com, qemu-devel@nongnu.org, stefano.stabellini@citrix.com, xen-devel@lists.xen.org On Mon, 2015-03-16 at 09:07 +0800, Chen, Tiejun wrote: > On 2015/3/13 18:11, Ian Campbell wrote: > > On Fri, 2015-03-13 at 09:39 +0800, Chen, Tiejun wrote: > >>> I don't think you can abort here, since a user can set > >>> b_info->u.hvm.gfx_passthru_kind to default. You would need to > >>> return an error. > >> > >> Then, looks I should do this, > >> > >> LOG(ERROR, "No supported IGD to passthru," " or please force set > >> gfx_passthru=\"igd\".\n"); return NULL; > > > > If I remember the context correctly this is in the autodetect case, > > so I think shouldn't mention IGD. Something like "Unable to detect > > graphics passthru kind, please set gfx_passthru_kind. See xl.cfg(5) > > for more > > s/gfx_passthru_kind/gfx_passthru, right? Because actually we always get > 'gfx_passthru_kind' from 'gfx_passthru'. I think you have it backwards. In the case here gfx_passthru=1 has been set by the user, but gfx_passthru_kind=DEFAULT. So libxl has tried to autodetect but it has failed. So if the user wants to make progress they should set gfx_passthru_kind to whatever type of passthrough they were trying to do. Alternatively I suppose you could recommend removing gfx_passthru=1 (or changing to=0), but given they've set =1 that doesn't seem to be the most productive suggestion. Ian.