All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Durrant <xadimgnik@gmail.com>
To: Roger Pau Monne <roger.pau@citrix.com>, xen-devel@lists.xenproject.org
Cc: Jan Beulich <jbeulich@suse.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH v6 1/3] x86/iommu: remove regions not to be mapped
Date: Mon, 29 Jan 2024 16:23:28 +0000	[thread overview]
Message-ID: <14a78f14-c6c5-41d1-94b2-3148ee6048fb@xen.org> (raw)
In-Reply-To: <20240125132626.34553-1-roger.pau@citrix.com>

On 25/01/2024 13:26, Roger Pau Monne wrote:
> Introduce the code to remove regions not to be mapped from the rangeset
> that will be used to setup the IOMMU page tables for the hardware domain.
> 
> This change also introduces two new functions: remove_xen_ranges() and
> vpci_subtract_mmcfg() that copy the logic in xen_in_range() and
> vpci_is_mmcfg_address() respectively and remove the ranges that would otherwise
> be intercepted by the original functions.
> 
> Note that the rangeset is still not populated.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> ---
> Changes since v6:
>   - Fix subtraction to be done against the address, not the mfn.
> 
> Changes since v4:
>   - Fix off-by-one when removing the Xen used ranges, as the rangesets are
>     inclusive.
> 
> Changes since v3:
>   - Remove unnecessary line wrapping.
> 
> Changes since v1:
>   - Split from bigger patch.
> ---
>   xen/arch/x86/hvm/io.c               | 16 ++++++++
>   xen/arch/x86/include/asm/hvm/io.h   |  3 ++
>   xen/arch/x86/include/asm/setup.h    |  1 +
>   xen/arch/x86/setup.c                | 48 +++++++++++++++++++++++
>   xen/drivers/passthrough/x86/iommu.c | 61 +++++++++++++++++++++++++++++
>   5 files changed, 129 insertions(+)
> 

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



  parent reply	other threads:[~2024-01-29 16:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24 17:29 [PATCH v5 0/3] x86/iommu: improve setup time of hwdom IOMMU Roger Pau Monne
2024-01-24 17:29 ` [PATCH v5 1/3] x86/iommu: remove regions not to be mapped Roger Pau Monne
2024-01-25  8:34   ` Jan Beulich
2024-01-25  8:47     ` Roger Pau Monné
2024-01-25 11:13       ` Jan Beulich
2024-01-25 12:37         ` Roger Pau Monné
2024-01-25 12:55           ` Andrew Cooper
2024-01-25 13:13             ` Jan Beulich
2024-01-25 13:22               ` Andrew Cooper
2024-01-25 14:37                 ` Roger Pau Monné
2024-01-25 13:26   ` [PATCH v6 " Roger Pau Monne
2024-01-25 13:36     ` Jan Beulich
2024-01-25 16:46     ` Jan Beulich
2024-01-29 16:23     ` Paul Durrant [this message]
2024-01-24 17:29 ` [PATCH v5 2/3] x86/iommu: switch hwdom IOMMU to use a rangeset Roger Pau Monne
2024-01-25 14:17   ` Jan Beulich
2024-01-29 16:28   ` Paul Durrant
2024-01-24 17:29 ` [PATCH v5 3/3] x86/iommu: cleanup unused functions Roger Pau Monne
2024-01-29 16:31   ` Paul Durrant

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=14a78f14-c6c5-41d1-94b2-3148ee6048fb@xen.org \
    --to=xadimgnik@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=paul@xen.org \
    --cc=roger.pau@citrix.com \
    --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.