]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
ipmi: Fix the get watchdog command
authorCorey Minyard <cminyard@mvista.com>
Fri, 16 Aug 2019 18:31:46 +0000 (13:31 -0500)
committerCorey Minyard <cminyard@mvista.com>
Fri, 20 Sep 2019 19:08:58 +0000 (14:08 -0500)
It wasn't returning the set timeout like it should have been.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ipmi/ipmi_bmc_sim.c

index 8f63bb71819b52df2b1afa97f5215b9568e84e6f..afb99e33d700bb010ac9d424b15276452cc20210 100644 (file)
@@ -1228,6 +1228,8 @@ static void get_watchdog_timer(IPMIBmcSim *ibs,
     rsp_buffer_push(rsp, ibs->watchdog_action);
     rsp_buffer_push(rsp, ibs->watchdog_pretimeout);
     rsp_buffer_push(rsp, ibs->watchdog_expired);
+    rsp_buffer_push(rsp, ibs->watchdog_timeout & 0xff);
+    rsp_buffer_push(rsp, (ibs->watchdog_timeout >> 8) & 0xff);
     if (ibs->watchdog_running) {
         long timeout;
         timeout = ((ibs->watchdog_expiry - ipmi_getmonotime() + 50000000)