x86/xen: no need to explicitly register an NMI callback
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Jun 2014 11:07:00 +0000 (13:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Aug 2014 21:52:39 +0000 (14:52 -0700)
commitc1bf0e867cb6364eb4e17c757120ae01d4623a0e
tree10eed97864e0d4fc767fc02dbea67a7cfe01b15d
parent04fe5c13847a0ba1b3620af2782c6a10f4d88243
x86/xen: no need to explicitly register an NMI callback

commit ea9f9274bf4337ba7cbab241c780487651642d63 upstream.

Remove xen_enable_nmi() to fix a 64-bit guest crash when registering
the NMI callback on Xen 3.1 and earlier.

It's not needed since the NMI callback is set by a set_trap_table
hypercall (in xen_load_idt() or xen_write_idt_entry()).

It's also broken since it only set the current VCPU's callback.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Tested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/setup.c