From: Ian Campbell <ian.campbell@citrix.com>
To: "Chen, Tiejun" <tiejun.chen@intel.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
qemu-devel@nongnu.org, xen-devel@lists.xen.org,
stefano.stabellini@citrix.com, kraxel@redhat.com
Subject: Re: [Qemu-devel] [Xen-devel] [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough
Date: Thu, 5 Mar 2015 17:24:06 +0000 [thread overview]
Message-ID: <1425576246.25940.286.camel@citrix.com> (raw)
In-Reply-To: <54F3BACB.4070400@intel.com>
On Mon, 2015-03-02 at 09:20 +0800, Chen, Tiejun wrote:
> Is this expected?
Yes. Can you post it as a proper patch please.
I suggest you split the basic stuff and the kind override discussed
below in to two patches.
> >> + (b_info->u.hvm.gfx_passthru &&
> >> + strncmp(b_info->u.hvm.gfx_passthru, "igd", 3) == 0) ) {
>
> But as you mentioned previously,
>
> "
> You might like to optionally consider add a forcing option somehow so
> that people with new devices not in the list can control things without
> the need to recompile (e.g. gfx_passthru_kind_override?).
> "
>
> Here I was trying to convert "gfx_passthru" to address this thing.
> According to your comment right now, you prefer we should introduce a
> new field instead of the original 'gfx_passthru' to enumerate such a
> type. So what about this?
>
> libxl_gfx_passthru_kind_type = Enumeration("gfx_passthru_kind_type", [
"kind_type" is redundant. I think just "kind" will do.
> (0, "unknown"),
"default" I think is better, i.e. if gfx_passthru is enabled then do the
probing from the PCI ID list thing.
> (1, "igd"),
> ])
You would then need to add a field of this type next to the gfx_passthru
one in b_config, lets say it's called gfx_passthru_kind.
> Then if we want to override this, just submit the following line into .cfg:
>
> gfx_passthru_kind_override = "igd"
So, while we cannot change the defbool in the libxl interface we do
actually have a little more freedom in the xl cfg parsing because we can
detect bool/integer vs string.
So I think it should be possible to arrange to support any of
gfx_passthru = 0 => sets build_info.u.gfx_passthru to false
gfx_passthru = 1 => sets build_info.u.gfx_passthru to false and
build_info.u.gfx_passthru_kind to DEFAULT
gfx_passthru = "igd" => sets build_info.u.gfx_passthru to false and
build_info.u.gfx_passthru_kind to IGD
Take a look at how the "timer_mode" option is handled in xl_cmdimpl.c
(except none of these variants are deprecated. You should be able to use
the libxl_..._from_string enum helper to do the parsing in the latter
case.
Ian.
next prev parent reply other threads:[~2015-03-05 17:38 UTC|newest]
Thread overview: 53+ 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
2015-02-03 1:00 ` Chen, Tiejun
2015-02-03 1:00 ` Chen, Tiejun
2015-02-02 11:08 ` Ian Campbell
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-02 12:54 ` [Qemu-devel] " Ian Jackson
2015-02-03 1:04 ` Chen, Tiejun
2015-02-03 11:07 ` Ian Campbell
2015-02-03 11:07 ` [Qemu-devel] " Ian Campbell
2015-02-04 1:34 ` 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 1:22 ` [Qemu-devel] " Chen, Tiejun
2015-02-05 9:52 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-02-06 1:01 ` Chen, Tiejun
2015-02-09 6:28 ` [Qemu-devel] " Chen, Tiejun
2015-02-09 6:28 ` [Qemu-devel] [Xen-devel] " 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 ` [Qemu-devel] " Ian Campbell
2015-02-18 13:22 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-02-26 6:35 ` Chen, Tiejun
2015-02-26 16:17 ` [Qemu-devel] " Ian Campbell
2015-02-26 16:17 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-02-27 6:28 ` Chen, Tiejun
2015-02-27 11:04 ` [Qemu-devel] " Ian Campbell
2015-02-27 11:04 ` [Qemu-devel] [Xen-devel] " Ian Campbell
2015-03-02 1:20 ` Chen, Tiejun
2015-03-03 10:06 ` [Qemu-devel] " Chen, Tiejun
2015-03-03 10:06 ` [Qemu-devel] [Xen-devel] " Chen, Tiejun
2015-03-05 17:24 ` [Qemu-devel] " Ian Campbell
2015-03-05 17:24 ` Ian Campbell [this message]
2015-03-02 1:20 ` Chen, Tiejun
2015-02-27 6:28 ` Chen, Tiejun
2015-02-26 6:35 ` Chen, Tiejun
2015-02-11 2:45 ` Chen, Tiejun
2015-02-06 1:01 ` Chen, Tiejun
2015-02-05 9:52 ` Ian Campbell
2015-02-04 1:34 ` Chen, Tiejun
2015-02-03 1:04 ` Chen, Tiejun
2015-02-03 1:01 ` [Qemu-devel] " Chen, Tiejun
2015-02-03 10:19 ` Wei Liu
2015-02-03 10:19 ` [Qemu-devel] " Wei Liu
2015-02-04 0:41 ` Chen, Tiejun
2015-02-04 0:41 ` Chen, Tiejun
2015-02-03 1:01 ` Chen, Tiejun
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=1425576246.25940.286.camel@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.