All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] Display IO topology when PXM data is available (plus some cleanup)
@ 2015-03-10  2:27 Boris Ostrovsky
  2015-03-10  2:27 ` [PATCH v4 1/9] numa: __node_distance() should return u8 Boris Ostrovsky
                   ` (9 more replies)
  0 siblings, 10 replies; 34+ messages in thread
From: Boris Ostrovsky @ 2015-03-10  2:27 UTC (permalink / raw)
  To: andrew.cooper3, jbeulich, keir, ian.jackson, stefano.stabellini,
	ian.campbell, wei.liu2
  Cc: elena.ufimtseva, dario.faggioli, boris.ostrovsky, xen-devel


Changes in v4:
* Split cputopology and NUMA info changes into separate patches
* Added patch#1 (partly because patch#4 needs to know when when distance is invalid,
  i.e. NUMA_NO_DISTANCE)
* Split sysctl version update into a separate patch
* Other changes are listed in each patch
* NOTE: I did not test python's xc changes since I don't think I know how.

Changes in v3:
* Added patch #1 to more consistently define nodes as a u8 and properly
  use NUMA_NO_NODE.
* Make changes to xen_sysctl_numainfo, similar to those made to
  xen_sysctl_topologyinfo. (Q: I kept both sets of changes in the same
  patch #3 to avoid bumping interface version twice. Perhaps it's better
  to split it into two?)
* Instead of copying data for each loop index allocate a buffer and copy
  once for all three queries in sysctl.c.
* Move hypercall buffer management from libxl to libxc (as requested by
  Dario, patches #5 and #6).
* Report topology info for offlined CPUs as well
* Added LIBXL_HAVE_PCITOPO macro

Changes in v2:
* Split topology sysctls into two --- one for CPU topology and the other
  for devices
* Avoid long loops in the hypervisor by using continuations. (I am not
  particularly happy about using first_dev in the interface, suggestions
  for a better interface would be appreciated)
* Use proper libxl conventions for interfaces
* Avoid hypervisor stack corruption when copying PXM data from guest


A few patches that add interface for querying hypervisor about device
topology and allow 'xl info -n' display this information if PXM object
is provided by ACPI.

This series also makes some optimizations and cleanup of current CPU
topology and NUMA sysctl queries.

Boris Ostrovsky (9):
  numa: __node_distance() should return u8
  pci: Stash device's PXM information in struct pci_dev
  sysctl: Make XEN_SYSCTL_topologyinfo sysctl a little more efficient
  sysctl: Make XEN_SYSCTL_numainfo a little more efficient
  sysctl: Add sysctl interface for querying PCI topology
  sysctl: Update sysctl version to 0x0000000C
  libxl/libxc: Move libxl_get_cpu_topology()'s hypercall buffer
    management to libxc
  libxl/libxc: Move libxl_get_numainfo()'s hypercall buffer management
    to libxc
  libxl: Add interface for querying hypervisor about PCI topology

 tools/libxc/include/xenctrl.h     |   12 ++-
 tools/libxc/xc_misc.c             |   83 +++++++++++++---
 tools/libxl/libxl.c               |  157 +++++++++++++++--------------
 tools/libxl/libxl.h               |   12 +++
 tools/libxl/libxl_freebsd.c       |   12 +++
 tools/libxl/libxl_internal.h      |    5 +
 tools/libxl/libxl_linux.c         |   69 +++++++++++++
 tools/libxl/libxl_netbsd.c        |   12 +++
 tools/libxl/libxl_types.idl       |    7 ++
 tools/libxl/libxl_utils.c         |    8 ++
 tools/libxl/xl_cmdimpl.c          |   40 ++++++--
 tools/misc/xenpm.c                |   92 +++++++-----------
 tools/python/xen/lowlevel/xc/xc.c |  109 ++++++++-------------
 xen/arch/x86/physdev.c            |   23 ++++-
 xen/arch/x86/srat.c               |   15 ++-
 xen/common/page_alloc.c           |    4 +-
 xen/common/sysctl.c               |  197 +++++++++++++++++++++++++++----------
 xen/drivers/passthrough/pci.c     |   13 ++-
 xen/include/asm-x86/numa.h        |    2 +-
 xen/include/public/physdev.h      |    6 +
 xen/include/public/sysctl.h       |  111 +++++++++++++++------
 xen/include/xen/numa.h            |    3 +-
 xen/include/xen/pci.h             |    5 +-
 23 files changed, 669 insertions(+), 328 deletions(-)

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2015-03-13 16:35 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  2:27 [PATCH v4 0/9] Display IO topology when PXM data is available (plus some cleanup) Boris Ostrovsky
2015-03-10  2:27 ` [PATCH v4 1/9] numa: __node_distance() should return u8 Boris Ostrovsky
2015-03-10 11:53   ` Andrew Cooper
2015-03-10 13:49     ` Boris Ostrovsky
2015-03-10  2:27 ` [PATCH v4 2/9] pci: Stash device's PXM information in struct pci_dev Boris Ostrovsky
2015-03-13 16:15   ` Jan Beulich
2015-03-10  2:27 ` [PATCH v4 3/9] sysctl: Make XEN_SYSCTL_topologyinfo sysctl a little more efficient Boris Ostrovsky
2015-03-10 14:29   ` Andrew Cooper
2015-03-10 15:22     ` Boris Ostrovsky
2015-03-11 11:04   ` Ian Campbell
2015-03-11 12:02     ` Boris Ostrovsky
2015-03-11 12:24       ` Ian Campbell
2015-03-13 15:51   ` Jan Beulich
2015-03-10  2:27 ` [PATCH v4 4/9] sysctl: Make XEN_SYSCTL_numainfo " Boris Ostrovsky
2015-03-10 14:34   ` Andrew Cooper
2015-03-11 11:06   ` Ian Campbell
2015-03-13 15:55   ` Jan Beulich
2015-03-10  2:27 ` [PATCH v4 5/9] sysctl: Add sysctl interface for querying PCI topology Boris Ostrovsky
2015-03-10 14:54   ` Andrew Cooper
2015-03-13 16:03   ` Jan Beulich
2015-03-13 16:35     ` Boris Ostrovsky
2015-03-10  2:27 ` [PATCH v4 6/9] sysctl: Update sysctl version to 0x0000000C Boris Ostrovsky
2015-03-10  2:27 ` [PATCH v4 7/9] libxl/libxc: Move libxl_get_cpu_topology()'s hypercall buffer management to libxc Boris Ostrovsky
2015-03-10 13:40   ` Dario Faggioli
2015-03-11 11:07     ` Ian Campbell
2015-03-10  2:27 ` [PATCH v4 8/9] libxl/libxc: Move libxl_get_numainfo()'s " Boris Ostrovsky
2015-03-10 13:44   ` Dario Faggioli
2015-03-11 11:08     ` Ian Campbell
2015-03-10  2:27 ` [PATCH v4 9/9] libxl: Add interface for querying hypervisor about PCI topology Boris Ostrovsky
2015-03-10 13:51   ` Dario Faggioli
2015-03-11 11:10     ` Ian Campbell
2015-03-10  8:20 ` [PATCH v4 0/9] Display IO topology when PXM data is available (plus some cleanup) Jan Beulich
2015-03-10 13:39   ` Boris Ostrovsky
2015-03-10 13:47     ` Jan Beulich

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.