All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Tiejun Chen <tiejun.chen@intel.com>
Cc: wei.liu2@citrix.com, Ian.Jackson@eu.citrix.com,
	qemu-devel@nongnu.org, xen-devel@lists.xen.org,
	stefano.stabellini@citrix.com, kraxel@redhat.com
Subject: Re: [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough
Date: Mon, 2 Feb 2015 11:08:16 +0000	[thread overview]
Message-ID: <1422875296.10090.0.camel__38005.730303894$1422875392$gmane$org@citrix.com> (raw)
In-Reply-To: <1422839843-25622-1-git-send-email-tiejun.chen@intel.com>

On Mon, 2015-02-02 at 09:17 +0800, Tiejun Chen wrote:
> When we're working to support IGD GFX passthrough with qemu
> upstream, instead of "-gfx_passthru" we'd like to make that
> a machine option, "-machine xxx,-igd-passthru=on". This need
> to bring a change on tool side.

>From which Qemu version is this new option accepted? What will a verison
of qemu prior to then do when presented with the new option?

(nb: you have an extra '-' in the description I think)

> 
> Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
> ---
> v2:
>  
> * Based on some discussions with Wei we'd like to keep both old
>   option, -gfx_passthru, and new machine property option,
>   "-machine xxx,-igd-passthru=on" at the same time but deprecate
>   the old one. Then finally we remove the old one at that point
>   that to give downstream (in this case, Xen) time to cope with the
>   change.
> 
>  tools/libxl/libxl_dm.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index c2b0487..8405f0b 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -701,6 +701,11 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
>              flexarray_append(dm_args, "-net");
>              flexarray_append(dm_args, "none");
>          }
> +        /*
> +         * Although we already introduce 'igd-passthru', but we'd like
> +         * to remove this until we give downstream time to cope with
> +         * the change.
> +         */
>          if (libxl_defbool_val(b_info->u.hvm.gfx_passthru)) {
>              flexarray_append(dm_args, "-gfx_passthru");
>          }
> @@ -748,6 +753,11 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
>                                              machinearg, max_ram_below_4g);
>              }
>          }
> +
> +        if (libxl_defbool_val(b_info->u.hvm.gfx_passthru)) {
> +            machinearg = libxl__sprintf(gc, "%s,igd-passthru=on", machinearg);
> +        }
> +
>          flexarray_append(dm_args, machinearg);
>          for (i = 0; b_info->extra_hvm && b_info->extra_hvm[i] != NULL; i++)
>              flexarray_append(dm_args, b_info->extra_hvm[i]);

  reply	other threads:[~2015-02-02 11:08 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02  1:17 [Qemu-devel] [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough Tiejun Chen
2015-02-02 11:08 ` Ian Campbell [this message]
2015-02-02 11:08 ` Ian Campbell
2015-02-03  1:00   ` Chen, Tiejun
2015-02-03  1:00   ` Chen, Tiejun
2015-02-02 12:19 ` Wei Liu
2015-02-02 12:19 ` [Qemu-devel] " Wei Liu
2015-02-02 12:54   ` Ian Jackson
2015-02-03  1:04     ` Chen, Tiejun
2015-02-03 11:07       ` Ian Campbell
2015-02-04  1:34         ` Chen, Tiejun
2015-02-04  1:34         ` [Qemu-devel] " Chen, Tiejun
2015-02-04 10:41           ` Ian Campbell
2015-02-04 10:41           ` [Qemu-devel] " Ian Campbell
2015-02-05  1:22             ` Chen, Tiejun
2015-02-05  9:52               ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-02-06  1:01                 ` Chen, Tiejun
2015-02-06  1:01                 ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-02-09  6:28                   ` Chen, Tiejun
2015-02-09 11:05                     ` Ian Campbell
2015-02-09 11:05                       ` [Qemu-devel] " Ian Campbell
2015-02-11  2:45                       ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-02-13  1:14                         ` [Qemu-devel] " Chen, Tiejun
2015-02-13  1:14                         ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-02-18 13:22                         ` Ian Campbell
2015-02-26  6:35                           ` Chen, Tiejun
2015-02-26 16:17                             ` Ian Campbell
2015-02-27  6:28                               ` [Qemu-devel] " Chen, Tiejun
2015-02-27  6:28                               ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-02-27 11:04                                 ` Ian Campbell
2015-03-02  1:20                                   ` [Qemu-devel] " Chen, Tiejun
2015-03-02  1:20                                   ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-03-03 10:06                                     ` Chen, Tiejun
2015-03-03 10:06                                     ` [Qemu-devel] " Chen, Tiejun
2015-03-05 17:24                                     ` Ian Campbell
2015-03-05 17:24                                     ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-02-27 11:04                                 ` [Qemu-devel] " Ian Campbell
2015-02-26 16:17                             ` Ian Campbell
2015-02-26  6:35                           ` Chen, Tiejun
2015-02-18 13:22                         ` Ian Campbell
2015-02-11  2:45                       ` Chen, Tiejun
2015-02-09  6:28                   ` Chen, Tiejun
2015-02-05  9:52               ` Ian Campbell
2015-02-05  1:22             ` Chen, Tiejun
2015-02-03 11:07       ` Ian Campbell
2015-02-03  1:04     ` Chen, Tiejun
2015-02-02 12:54   ` Ian Jackson
2015-02-03  1:01   ` Chen, Tiejun
2015-02-03  1:01   ` [Qemu-devel] " Chen, Tiejun
2015-02-03 10:19     ` Wei Liu
2015-02-04  0:41       ` Chen, Tiejun
2015-02-04  0:41       ` [Qemu-devel] " Chen, Tiejun
2015-02-03 10:19     ` Wei Liu
  -- strict thread matches above, loose matches on Subject: below --
2015-02-02  1:17 Tiejun Chen

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='1422875296.10090.0.camel__38005.730303894$1422875392$gmane$org@citrix.com' \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tiejun.chen@intel.com \
    --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.