xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH Altp2m cleanup v5 0/3] Cleaning up altp2m code
@ 2016-09-13 16:46 Paul Lai
  2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 1/3] altp2m cleanup work Paul Lai
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Lai @ 2016-09-13 16:46 UTC (permalink / raw)
  To: xen-devel; +Cc: ravi.sahita, george.dunlap, jbeulich

Altp2m cleanup work

The altp2m clean work is motivated by the following URLs:
   https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html
   https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04454.html
   https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04530.html

Most of the work has been:
Lots of white space, indentation, and other coding style preference
corrections.
Lots of moving altp2m functions to the altp2m file.
Lots of moving ept functions to the ept file.
Lots of function return type corrections (and checking).
Better sanity checking of values before processing in do_altp2m_op().
Just using 'return' after a if() clause instead of using a goto
if the block is can be a one liner.

Most importantly here, we help submit Ravi Sahita's dynamically allocated
altp2m domain for struct p2m.  Also, Ravi introduces set_altp2m_active()
and altp2m_active() APIs for better readability and maintainability.

Along the way, some dependencies have broken and we've waited for them
to be fixed.  Most recently the gfn() which caused a hang of the whole system.
The gfn fixes are currently in staging. We've have verified against the
staging branch that this series of patches functions as expected.

Paul Lai (3):
  altp2m cleanup work.
  Move altp2m specific functions to altp2m files.
  Making altp2m domain dynamically allocated.

 xen/arch/x86/hvm/hvm.c            |  54 +++++++++----------
 xen/arch/x86/hvm/vmx/vmx.c        |   2 +-
 xen/arch/x86/mm/altp2m.c          |  57 ++++++++++++++++++++
 xen/arch/x86/mm/hap/hap.c         |  38 ++++----------
 xen/arch/x86/mm/mem_sharing.c     |   2 +-
 xen/arch/x86/mm/mm-locks.h        |   4 +-
 xen/arch/x86/mm/p2m-ept.c         |  39 ++++++++++++++
 xen/arch/x86/mm/p2m.c             | 106 +++++++++++++-------------------------
 xen/common/monitor.c              |   1 +
 xen/include/asm-x86/altp2m.h      |  11 +++-
 xen/include/asm-x86/domain.h      |   6 +--
 xen/include/asm-x86/hvm/hvm.h     |  22 ++++++--
 xen/include/asm-x86/hvm/vmx/vmx.h |   3 ++
 xen/include/asm-x86/p2m.h         |  18 ++++---
 14 files changed, 216 insertions(+), 147 deletions(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-09-26 17:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-13 16:46 [PATCH Altp2m cleanup v5 0/3] Cleaning up altp2m code Paul Lai
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 1/3] altp2m cleanup work Paul Lai
2016-09-26 16:01   ` Jan Beulich
2016-09-26 17:25     ` Lai, Paul
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 2/3] Move altp2m specific functions to altp2m files Paul Lai
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 3/3] Making altp2m domain dynamically allocated Paul Lai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).