From: Wei Liu <wl@xen.org>
To: Jan Beulich <jbeulich@suse.com>
Cc: Anthony Perard <anthony.perard@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Ian Jackson <ian.jackson@eu.citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [Xen-devel] [PATCH 5/5] libxl/PCI: align reserved device memory boundary for HAP guests
Date: Thu, 20 Feb 2020 11:43:31 +0000 [thread overview]
Message-ID: <20200220114331.m6yolb4hoyfvfmsa@debian> (raw)
In-Reply-To: <2a9a998e-f2d0-3c07-e85e-7fdda18b506e@suse.com>
On Tue, Feb 18, 2020 at 04:47:49PM +0100, Jan Beulich wrote:
> As the code comment says, this will allow use of a 2Mb super page
> mapping at the end of "low" memory.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -563,6 +563,13 @@ int libxl__domain_device_construct_rdm(l
> /* Just check if RDM > our memory boundary. */
> if (rdm_start > rdm_mem_boundary) {
> /*
> + * For HAP guests round down to a 2Mb boundary to allow use
> + * of large page mappings.
> + */
> + if (libxl_defbool_val(d_config->c_info.hap)
> + && rdm_start > 0x200000)
Please use MB(2) here.
With this fixed:
Acked-by: Wei Liu <wl@xen.org>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2020-02-20 11:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-18 15:44 [Xen-devel] [PATCH 0/5] libxl/PCI: reserved device memory adjustments Jan Beulich
2020-02-18 15:46 ` [Xen-devel] [PATCH 1/5] libxl/PCI: honor multiple per-device reserved memory regions Jan Beulich
2020-02-20 10:35 ` Wei Liu
2020-02-18 15:46 ` [Xen-devel] [PATCH 2/5] libxl/PCI: establish per-device reserved memory policy earlier Jan Beulich
2020-02-20 11:38 ` Wei Liu
2020-02-18 15:47 ` [Xen-devel] [PATCH 3/5] libxl/PCI: make "rdm=" parsing comply with documentation Jan Beulich
2020-02-20 11:44 ` Wei Liu
2020-02-18 15:47 ` [Xen-devel] [PATCH 4/5] libxl/PCI: pass correct "hotplug" argument to libxl__device_pci_setdefault() Jan Beulich
2020-02-20 11:41 ` Wei Liu
2020-02-18 15:47 ` [Xen-devel] [PATCH 5/5] libxl/PCI: align reserved device memory boundary for HAP guests Jan Beulich
2020-02-20 11:43 ` Wei Liu [this message]
2020-02-20 11:45 ` Jan Beulich
2020-02-20 11:48 ` Wei Liu
2020-02-20 11:45 ` [Xen-devel] [PATCH 0/5] libxl/PCI: reserved device memory adjustments Wei Liu
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=20200220114331.m6yolb4hoyfvfmsa@debian \
--to=wl@xen.org \
--cc=anthony.perard@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--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.