All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: qemu-devel@nongnu.org, xen-devel@lists.xen.org,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	ian.campbell@citrix.com
Subject: Re: [Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough
Date: Thu, 29 Jan 2015 08:41:24 +0800	[thread overview]
Message-ID: <54C981B4.5070205@intel.com> (raw)
In-Reply-To: <20150128111219.GN24026@zion.uk.xensource.com>

On 2015/1/28 19:12, Wei Liu wrote:
> On Wed, Jan 28, 2015 at 08:42:56AM +0800, Chen, Tiejun wrote:
>> On 2015/1/27 22:40, Ian Jackson wrote:
>>> Chen, Tiejun writes ("Re: [Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough"):
>>>> On 2015/1/23 8:43, Chen, Tiejun wrote:
>>>>> On 2015/1/22 8:51, Chen, Tiejun wrote:
>>>>>> At this point I just concern here if we still use 'gfx_passthrou', at
>>>>>> least it may look like a backward compatibility with older versions of
>>>>>> qemu in Xen side, qemu-xen-traditional. But I'd like to follow your
>>>>>> final option.
>>> ...
>>>>> Any feedback to this option I should follow here?
>>>>
>>>> Ping...
>>>
>>> I think this is a question that qemu upstream should answer.
>>>
>>
>> Actually this is just commented by Gerd in qemu upstream. So now looks in
>> Xen side you guys don't have any objection to use 'igd-passthru' as well. If
>> yes, I'm fine to adopt this.
>>
>
> Yes, we would like to stay in line with upstream.

Wei,

Thanks for your response.

>
> Just remember to handle old option in libxl if your old option is already
> released by some older version of QEMUs.

I just drop that old option, -gfx_passthru, if we're under qemu upstream 
circumstance, like this,

--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -318,7 +318,10 @@ static char ** 
libxl__build_device_model_args_old(libxl__gc *gc,
              flexarray_vappend(dm_args, "-net", "none", NULL);
          }
          if (libxl_defbool_val(b_info->u.hvm.gfx_passthru)) {
-            flexarray_append(dm_args, "-gfx_passthru");
+            if (b_info->device_model_version !=
+                LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN) {
+                flexarray_append(dm_args, "-gfx_passthru");
+            }
          }
      } else {
          if (!sdl && !vnc)
@@ -702,7 +705,10 @@ static char ** 
libxl__build_device_model_args_new(libxl__gc *gc,
              flexarray_append(dm_args, "none");
          }
          if (libxl_defbool_val(b_info->u.hvm.gfx_passthru)) {
-            flexarray_append(dm_args, "-gfx_passthru");
+            if (b_info->device_model_version !=
+                LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN) {
+                flexarray_append(dm_args, "-gfx_passthru");
+            }
          }
      } else {
          if (!sdl && !vnc) {

Is this good enough?

Thanks
Tiejun

  reply	other threads:[~2015-01-29  0:41 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21  7:19 [Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough Tiejun Chen
2015-01-21  7:26 ` Chen, Tiejun
2015-01-21  7:26 ` Chen, Tiejun
2015-01-21 11:37 ` Ian Jackson
2015-01-21 11:37 ` [Qemu-devel] " Ian Jackson
2015-01-21 11:56   ` Ian Campbell
2015-01-21 11:56   ` [Qemu-devel] " Ian Campbell
2015-01-22  0:55     ` Chen, Tiejun
2015-01-22  0:55     ` Chen, Tiejun
2015-01-21 13:48   ` [Qemu-devel] " Gerd Hoffmann
2015-01-22  0:51     ` Chen, Tiejun
2015-01-23  0:43       ` Chen, Tiejun
2015-01-23  0:43       ` Chen, Tiejun
2015-01-26  0:44         ` Chen, Tiejun
2015-01-26  0:44         ` Chen, Tiejun
2015-01-27 14:40           ` Ian Jackson
2015-01-28  0:42             ` Chen, Tiejun
2015-01-28 11:12               ` Wei Liu
2015-01-28 11:12               ` Wei Liu
2015-01-29  0:41                 ` Chen, Tiejun [this message]
2015-01-29 10:50                   ` Wei Liu
2015-01-29 10:50                   ` Wei Liu
2015-01-30  0:56                     ` Chen, Tiejun
2015-01-30  0:56                     ` Chen, Tiejun
2015-01-30 12:26                       ` Wei Liu
2015-01-30 12:26                       ` Wei Liu
2015-01-31  7:07                         ` Xu, Quan
2015-01-31  7:07                         ` [Qemu-devel] [Xen-devel] " Xu, Quan
2015-01-31 14:33                           ` [Qemu-devel] " Wei Liu
2015-01-31 14:33                           ` [Qemu-devel] [Xen-devel] " Wei Liu
2015-01-31 15:21                             ` Xu, Quan
2015-01-31 15:21                             ` [Qemu-devel] " Xu, Quan
2015-02-02  0:43                         ` Chen, Tiejun
2015-02-02  0:43                         ` Chen, Tiejun
2015-01-29  0:41                 ` Chen, Tiejun
2015-01-28  0:42             ` Chen, Tiejun
2015-01-27 14:40           ` Ian Jackson
2015-01-22  0:51     ` Chen, Tiejun
2015-01-21 13:48   ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C981B4.5070205@intel.com \
    --to=tiejun.chen@intel.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.