All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Refactor ioreq server for better performance.
@ 2015-07-02 12:31 Yu Zhang
  2015-07-02 12:31 ` [PATCH 1/2] Resize the MAX_NR_IO_RANGES for ioreq server Yu Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yu Zhang @ 2015-07-02 12:31 UTC (permalink / raw)
  To: xen-devel, keir, JBeulich, andrew.cooper3, Paul.Durrant
  Cc: kevin.tian, zhiyuan.lv

XenGT leverages ioreq server to track and forward the accesses to
GPU I/O resources, e.g. the PPGTT(per-process graphic translation
tables). Currently, ioreq server uses rangeset to track the BDF/
PIO/MMIO ranges to be emulated. To select an ioreq server, the
rangeset is searched to see if the I/O range is recorded. However,
traversing the link list inside rangeset could be time consuming
when number of ranges is too high. On HSW platform, number of PPGTTs
for each vGPU could be several hundred. On BDW, this value could
be several thousand.

To accommodate more ranges, limitation of the number of ranges in an
ioreq server, MAX_NR_IO_RANGES is changed - future patches will be
provided to tune this with other approaches. And to increase the ioreq
server performance, a new data structure, rb_rangeset, is introduced.

Yu Zhang (2):
  Resize the MAX_NR_IO_RANGES for ioreq server
  Add new data structure to track ranges.

 xen/arch/x86/domain.c            |   3 +
 xen/arch/x86/hvm/hvm.c           |  56 ++++++--
 xen/common/Makefile              |   1 +
 xen/common/rb_rangeset.c         | 281 +++++++++++++++++++++++++++++++++++++++
 xen/include/asm-x86/hvm/domain.h |   4 +-
 xen/include/asm-x86/hvm/hvm.h    |   1 +
 xen/include/xen/rb_rangeset.h    |  49 +++++++
 7 files changed, 379 insertions(+), 16 deletions(-)
 create mode 100644 xen/common/rb_rangeset.c
 create mode 100644 xen/include/xen/rb_rangeset.h

-- 
1.9.1

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

end of thread, other threads:[~2015-07-06  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 12:31 [PATCH 0/2] Refactor ioreq server for better performance Yu Zhang
2015-07-02 12:31 ` [PATCH 1/2] Resize the MAX_NR_IO_RANGES for ioreq server Yu Zhang
2015-07-02 12:31 ` [PATCH 2/2] Add new data structure to track ranges Yu Zhang
2015-07-02 15:07 ` [PATCH 0/2] Refactor ioreq server for better performance Yu, Zhang
2015-07-06  7:09   ` Yu, Zhang

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.