From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXJVK-0004dQ-6N for qemu-devel@nongnu.org; Sun, 15 Mar 2015 21:07:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXJVG-0007ew-VK for qemu-devel@nongnu.org; Sun, 15 Mar 2015 21:07:38 -0400 Received: from mga09.intel.com ([134.134.136.24]:52741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXJVG-0007ef-P2 for qemu-devel@nongnu.org; Sun, 15 Mar 2015 21:07:34 -0400 Message-ID: <55062CD2.8050305@intel.com> Date: Mon, 16 Mar 2015 09:07:30 +0800 From: "Chen, Tiejun" MIME-Version: 1.0 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> In-Reply-To: <1426241479.32572.94.camel@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed 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: Ian Campbell Cc: Ian.Jackson@eu.citrix.com, wei.liu2@citrix.com, qemu-devel@nongnu.org, stefano.stabellini@citrix.com, xen-devel@lists.xen.org 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'. > information." > >>> >>>> @@ -720,6 +720,13 @@ void libxl_mac_copy(libxl_ctx *ctx, >>>> libxl_mac *dst, libxl_mac *src); [snip] > /* * libxl_domain_build_info has the u.hvm.gfx_passthru_kind field > and * the libxl_gfx_passthru_kind enumeration is defined. */ #define > LIBXL_HAVE_GFX_PASSTHRU_KIND > > Users don't care about the internal details, just about the existence > of the support. > Updated. Thanks Tiejun