x86/NMI: allow passing just "watchdog" again
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Sep 2014 13:09:59 +0000 (15:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Sep 2014 13:09:59 +0000 (15:09 +0200)
This capability got inadvertently lost in commit 3ea2ba980a ("x86/NMI:
allow processing unknown NMIs when watchdog is enabled") due to an
oversight of mine.

Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/nmi.c

index 055f4efc2deaccfe6221261195db8210d6310186..f8f5e4a41c73001c676aeddf0183c61a3a635dc1 100644 (file)
@@ -49,6 +49,12 @@ bool_t watchdog_force = 0;
 
 static void __init parse_watchdog(char *s)
 {
+    if ( !*s )
+    {
+        opt_watchdog = 1;
+        return;
+    }
+
     switch ( parse_bool(s) )
     {
     case 0: