All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Durrant <xadimgnik@gmail.com>
To: "'Jan Beulich'" <jbeulich@suse.com>, <xen-devel@lists.xenproject.org>
Cc: 'Kevin Tian' <kevin.tian@intel.com>,
	'Stefano Stabellini' <sstabellini@kernel.org>,
	'Julien Grall' <julien@xen.org>, 'Wei Liu' <wl@xen.org>,
	'Konrad Wilk' <konrad.wilk@oracle.com>,
	'George Dunlap' <George.Dunlap@eu.citrix.com>,
	'Andrew Cooper' <andrew.cooper3@citrix.com>,
	'Ian Jackson' <ian.jackson@citrix.com>
Subject: Re: [Xen-devel] [PATCH v2 4/5] IOMMU: iommu_qinval is x86-only
Date: Tue, 10 Mar 2020 10:47:34 -0000	[thread overview]
Message-ID: <000901d5f6c9$4f513880$edf3a980$@xen.org> (raw)
In-Reply-To: <7c8f0108-0d51-91bb-86b3-dd5ea6e0a269@suse.com>

> -----Original Message-----
> From: Jan Beulich <jbeulich@suse.com>
> Sent: 09 March 2020 10:44
> To: xen-devel@lists.xenproject.org
> Cc: Kevin Tian <kevin.tian@intel.com>; Stefano Stabellini <sstabellini@kernel.org>; Julien Grall
> <julien@xen.org>; Wei Liu <wl@xen.org>; Konrad Wilk <konrad.wilk@oracle.com>; George Dunlap
> <George.Dunlap@eu.citrix.com>; Andrew Cooper <andrew.cooper3@citrix.com>; Ian Jackson
> <ian.jackson@citrix.com>; Paul Durrant <paul@xen.org>
> Subject: [PATCH v2 4/5] IOMMU: iommu_qinval is x86-only
> 
> In fact it's VT-d specific, but we don't have a way yet to build code
> for just one vendor.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Paul Durrant <paul@xen.org>

> 
> --- a/xen/drivers/passthrough/iommu.c
> +++ b/xen/drivers/passthrough/iommu.c
> @@ -33,7 +33,6 @@ bool_t __read_mostly force_iommu;
>  bool_t __read_mostly iommu_verbose;
>  bool __read_mostly iommu_quarantine = true;
>  bool_t __read_mostly iommu_snoop = 1;
> -bool_t __read_mostly iommu_qinval = 1;
>  bool_t __read_mostly iommu_crash_disable;
> 
>  static bool __hwdom_initdata iommu_hwdom_none;
> @@ -75,13 +74,13 @@ static int __init parse_iommu_param(cons
>  #ifdef CONFIG_X86
>          else if ( (val = parse_boolean("igfx", s, ss)) >= 0 )
>              iommu_igfx = val;
> +        else if ( (val = parse_boolean("qinval", s, ss)) >= 0 )
> +            iommu_qinval = val;
>  #endif
>          else if ( (val = parse_boolean("verbose", s, ss)) >= 0 )
>              iommu_verbose = val;
>          else if ( (val = parse_boolean("snoop", s, ss)) >= 0 )
>              iommu_snoop = val;
> -        else if ( (val = parse_boolean("qinval", s, ss)) >= 0 )
> -            iommu_qinval = val;
>  #ifndef iommu_intremap
>          else if ( (val = parse_boolean("intremap", s, ss)) >= 0 )
>              iommu_intremap = val ? iommu_intremap_full : iommu_intremap_off;
> --- a/xen/drivers/passthrough/vtd/iommu.c
> +++ b/xen/drivers/passthrough/vtd/iommu.c
> @@ -51,6 +51,7 @@ struct mapped_rmrr {
>  bool __read_mostly untrusted_msi;
> 
>  bool __read_mostly iommu_igfx = true;
> +bool __read_mostly iommu_qinval = true;
> 
>  int nr_iommus;
> 
> --- a/xen/include/xen/iommu.h
> +++ b/xen/include/xen/iommu.h
> @@ -54,7 +54,7 @@ static inline bool_t dfn_eq(dfn_t x, dfn
> 
>  extern bool_t iommu_enable, iommu_enabled;
>  extern bool force_iommu, iommu_quarantine, iommu_verbose;
> -extern bool_t iommu_snoop, iommu_qinval;
> +extern bool_t iommu_snoop;
> 
>  #ifdef CONFIG_X86
>  extern enum __packed iommu_intremap {
> @@ -70,7 +70,7 @@ extern enum __packed iommu_intremap {
>     iommu_intremap_restricted,
>     iommu_intremap_full,
>  } iommu_intremap;
> -extern bool iommu_igfx;
> +extern bool iommu_igfx, iommu_qinval;
>  #else
>  # define iommu_intremap false
>  #endif



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2020-03-10 10:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 10:39 [Xen-devel] [PATCH v2 0/5] IOMMU: restrict visibility/scope if certain variables Jan Beulich
2020-03-09 10:42 ` [Xen-devel] [PATCH v2 1/5] IOMMU: iommu_intremap is x86-only Jan Beulich
2020-03-10 10:44   ` Paul Durrant
2020-03-09 10:43 ` [Xen-devel] [PATCH v2 2/5] IOMMU: iommu_intpost is x86/HVM-only Jan Beulich
2020-03-10  1:13   ` Tian, Kevin
2020-03-10  9:39     ` Jan Beulich
2020-03-10 10:54   ` Paul Durrant
2020-03-10 11:02     ` Jan Beulich
2020-03-10 12:20       ` Paul Durrant
2020-03-10 13:47         ` Jan Beulich
2020-03-09 10:43 ` [Xen-devel] [PATCH v2 3/5] IOMMU: iommu_igfx is x86-only Jan Beulich
2020-03-10 10:46   ` Paul Durrant
2020-03-09 10:44 ` [Xen-devel] [PATCH v2 4/5] IOMMU: iommu_qinval " Jan Beulich
2020-03-10 10:47   ` Paul Durrant [this message]
2020-03-09 10:44 ` [Xen-devel] [PATCH v2 5/5] IOMMU: iommu_snoop " Jan Beulich
2020-03-10 10:49   ` Paul Durrant
2020-03-10  1:19 ` [Xen-devel] [PATCH v2 0/5] IOMMU: restrict visibility/scope if certain variables Tian, Kevin

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='000901d5f6c9$4f513880$edf3a980$@xen.org' \
    --to=xadimgnik@gmail.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=paul@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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.