Hwloc xen topology v5#3
Open
bernhardkaindl wants to merge 3 commits into
Open
Conversation
This requires the following patch (which is applicable for backport to at least Xen 4.3): http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=commitdiff;h=c1faa00881ba1de42e3aff6a7009a69ff7940b19 which implements a cleaner API for xc_{topology,numa}info. This patch provides basic topology enumeration in hwloc. Xen support should be built automatically given an appropriate version of libxenctrl (i.e. with the above patch) in the build environment. Xen support can be built as a plugin (to remove direct dependences on libxenctrl), and is disabled by default. In dom0, use `HWLOC_COMPONENETS=xen ./lstop ...` to enable Xen system topology enumeration in preference to the faked topology which the kernel gets to see. This patch provides basic support for PUs, cores, sockets and numa nodes, with numa nodes being annotated with availabe memory[1]. It has been sanity tested on various different servers in our testing pool. Some of this patch includes folded patches from Brice Goglin <Brice.Goglin@inria.fr> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> [1] It turns out Xen's idea of memory attached to a node includes pages mapping IO regions. This is a hypervisor bug has been raised on xen-devel.
Use the brand new hwloc_x86_discovery() function to allow the common x86 code to enumerate cache information under Xen. The following patch is required http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=commitdiff;h=51cfdf2dfd5fd905f136418810e250cd21c6643c which implements the xc_xen_cpuid() function in libxc and Xen. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Xen v5 Commits by Andy and Brice towards
https://github.com/xenserver-next/hwloc/tree/x86-common-for-xen