From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 14/19] hvmloader: disallow memory relocation when vNUMA is enabled
Date: Fri, 21 Nov 2014 14:56:31 -0500 [thread overview]
Message-ID: <20141121195631.GA16313@laptop.dumpdata.com> (raw)
In-Reply-To: <1416582421-10789-15-git-send-email-wei.liu2@citrix.com>
On Fri, Nov 21, 2014 at 03:06:56PM +0000, Wei Liu wrote:
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> Cc: Jan Beulich <JBeulich@suse.com>
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> ---
> tools/firmware/hvmloader/pci.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/tools/firmware/hvmloader/pci.c b/tools/firmware/hvmloader/pci.c
> index 4e8d803..d7ea740 100644
> --- a/tools/firmware/hvmloader/pci.c
> +++ b/tools/firmware/hvmloader/pci.c
> @@ -88,6 +88,19 @@ void pci_setup(void)
> printf("Relocating guest memory for lowmem MMIO space %s\n",
> allow_memory_relocate?"enabled":"disabled");
>
> + /* Disallow low memory relocation when vNUMA is enabled, because
> + * relocated memory ends up off node. Further more, even if we
> + * dynamically expand node coverage in hvmloader, low memory and
> + * high memory may reside in different physical nodes, blindly
> + * relocates low memory to high memory gives us a sub-optimal
> + * configuration.
And this is done in hvmloader, so the toolstack has no inkling that
we need to relocate memory to make space for the PCI.
In such case I would not have this check here. Instead put it in
libxl and disallow vNUMA with PCI passthrough.
And then the fix is to take the logic that is in hvmloader for PCI
BAR size relocation and move it in libxl. Then it can construct the
proper vNUMA topology and also fix an outstanding QEMU-xen bug.
> + */
> + if ( hvm_info->nr_nodes != 0 && allow_memory_relocate )
> + {
> + allow_memory_relocate = false;
> + printf("vNUMA enabled, relocating guest memory for lowmem MMIO space disabled\n");
> + }
> +
> s = xenstore_read("platform/mmio_hole_size", NULL);
> if ( s )
> mmio_hole_size = strtoll(s, NULL, 0);
> --
> 1.7.10.4
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-11-21 19:56 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 15:06 [PATCH 00/19] Virtual NUMA for PV and HVM Wei Liu
2014-11-21 15:06 ` [PATCH 01/19] xen: dump vNUMA information with debug key "u" Wei Liu
2014-11-21 16:39 ` Jan Beulich
2014-11-21 15:06 ` [PATCH 02/19] xen: make two memory hypercalls vNUMA-aware Wei Liu
2014-11-21 17:03 ` Jan Beulich
2014-11-21 17:30 ` Wei Liu
2014-11-21 15:06 ` [PATCH 03/19] libxc: allocate memory with vNUMA information for PV guest Wei Liu
2014-11-21 15:06 ` [PATCH 04/19] libxl: add emacs local variables in libxl_{x86, arm}.c Wei Liu
2014-11-21 15:06 ` [PATCH 05/19] libxl: introduce vNUMA types Wei Liu
2014-11-21 15:06 ` [PATCH 06/19] libxl: add vmemrange to libxl__domain_build_state Wei Liu
2014-11-21 15:06 ` [PATCH 07/19] libxl: introduce libxl__vnuma_config_check Wei Liu
2014-11-21 15:06 ` [PATCH 08/19] libxl: x86: factor out e820_host_sanitize Wei Liu
2014-11-21 15:06 ` [PATCH 09/19] libxl: functions to build vmemranges for PV guest Wei Liu
2014-11-21 15:06 ` [PATCH 10/19] libxl: build, check and pass vNUMA info to Xen " Wei Liu
2014-11-21 15:06 ` [PATCH 11/19] hvmloader: add new fields for vNUMA information Wei Liu
2014-11-24 9:58 ` Jan Beulich
2014-11-24 10:07 ` Wei Liu
2014-11-24 10:22 ` Jan Beulich
2014-11-21 15:06 ` [PATCH 12/19] hvmloader: construct SRAT Wei Liu
2014-11-24 10:08 ` Jan Beulich
2014-11-24 10:13 ` Wei Liu
2014-11-24 10:26 ` Jan Beulich
2014-11-24 10:46 ` Wei Liu
2014-11-21 15:06 ` [PATCH 13/19] hvmloader: construct SLIT Wei Liu
2014-11-24 10:11 ` Jan Beulich
2014-11-21 15:06 ` [PATCH 14/19] hvmloader: disallow memory relocation when vNUMA is enabled Wei Liu
2014-11-21 19:56 ` Konrad Rzeszutek Wilk [this message]
2014-11-24 9:21 ` Wei Liu
2014-11-24 9:29 ` Jan Beulich
2014-11-24 10:15 ` Jan Beulich
2014-11-21 15:06 ` [PATCH 15/19] libxc: allocate memory with vNUMA information for HVM guest Wei Liu
2014-11-21 15:06 ` [PATCH 16/19] libxl: build, check and pass vNUMA info to Xen " Wei Liu
2014-11-21 15:06 ` [PATCH 17/19] libxl: refactor hvm_build_set_params Wei Liu
2014-11-25 10:06 ` Wei Liu
2014-11-21 15:07 ` [PATCH 18/19] libxl: fill vNUMA information in hvm info Wei Liu
2014-11-25 10:06 ` Wei Liu
2014-11-21 15:07 ` [PATCH 19/19] xl: vNUMA support Wei Liu
2014-11-21 16:25 ` [PATCH 00/19] Virtual NUMA for PV and HVM Jan Beulich
2014-11-21 16:35 ` Wei Liu
2014-11-21 16:42 ` Jan Beulich
2014-11-21 16:55 ` Wei Liu
2014-11-21 17:05 ` Jan Beulich
2014-11-21 20:01 ` Konrad Rzeszutek Wilk
2014-11-21 20:44 ` 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=20141121195631.GA16313@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@eu.citrix.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.