x86: make set_nmi_callback return the old nmi callback
authorFeng Wu <feng.wu@intel.com>
Tue, 3 Jun 2014 09:29:38 +0000 (11:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 09:29:38 +0000 (11:29 +0200)
commit238faa9daf9f3dff782128302c5fd923e49f2143
treec87634e894c94fee1bae07cf0649dc13f3118494
parent1911b1b3106f410e411115ba8ac0ac69718ca9bf
x86: make set_nmi_callback return the old nmi callback

This patch makes set_nmi_callback return the old nmi callback, so
we can set it back later.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/traps.c
xen/include/asm-x86/nmi.h