x86/emul: Split exception handling out of invoke_stub()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Jan 2018 17:41:13 +0000 (17:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Feb 2018 10:54:10 +0000 (10:54 +0000)
commit52ba201362aab4b09d44bcca67967c1053721ac2
treed852908157cff0eba0b67ff43c355628ba2d274d
parent351a03aae2352efb5688f7af96c1f3c358d8fb4b
x86/emul: Split exception handling out of invoke_stub()

For a release build, bloat-o-meter reports:

  add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-5111 (-5111)
  function                                     old     new   delta
  x86_emulate                               126458  121347   -5111

or in other words, a 4% redunction in code size from this change alone.

The use of __LINE__ is a concern with livepatching, but any livepatch touching
this file is overwhemlingly likely to alter x86_emulate() anyway.

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