x86/mm: Use static inlines for {,un}adjust_guest_l?e()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Sep 2017 10:29:56 +0000 (11:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 4 Sep 2017 12:13:16 +0000 (13:13 +0100)
commitd4ccdcf64aa0a00dd1f2a710c6f4610b9c59cd60
tree89c9f930c2f3fefc6849eec742b31f73b4898cfa
parentfdc6cef85734662e32c91fee2a191d2b26a682f4
x86/mm: Use static inlines for {,un}adjust_guest_l?e()

There is no need for these to be macros, and the result is easier to read.

No functional change, but bloat-o-meter reports the following improvement:

  add/remove: 1/0 grow/shrink: 2/3 up/down: 235/-427 (-192)
  function                                     old     new   delta
  __get_page_type                             5231    5351    +120
  adjust_guest_l1e.isra                          -      96     +96
  free_page_type                              1540    1559     +19
  ptwr_emulated_update                        1008     957     -51
  create_grant_pv_mapping                     1342    1186    -156
  mod_l1_entry                                1892    1672    -220

adjust_guest_l1e(), now being a compiler-visible single unit, is chosen for
out-of-line'ing from its several callsites.  The other helpers remain inline.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/mm.c