From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH RFC 0/2] Support for hwloc Date: Thu, 27 Feb 2014 11:11:34 +0000 Message-ID: <1393499497-9162-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper List-Id: xen-devel@lists.xenproject.org These two patches have been developed in combination with a Xen pluging for hwloc, to allow a toolstack domain to gather the system topology rather than the virtual topology. An experimental hwloc branch can be found here: git://xenbits.xen.org/people/andrewcoop/hwloc.git hwloc-xen-topology-v5 http://xenbits.xen.org/gitweb/?p=people/andrewcoop/hwloc.git;a=shortlog;h=refs/heads/hwloc-xen-topology-v5 and depends on these two patches to function. Patch 1 is extending xc_{topology,numa}info() functions to include a version which performs correct hypercall bounce buffering. Patch 2 introduced SYSCTL_xen_cpuid which allows a toolstack to perform arbitrary cpuid instructions on specific physical cpus. hwloc uses this to enumerate the cpuid cache leaves without resorting to tactics of pinning vcpus to specific pcpus and running native cpuid. Comments welcome, ~Andrew