acpi/ged: fix reset cause
PATCH 1/1 acpi/ged: fix reset cause
Reset requests should use SHUTDOWN_CAUSE_GUEST_RESET not SHUTDOWN_CAUSE_GUEST_SHUTDOWN.
Reported-by Peter Maydell <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/acpi/generic_event_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/acpi/generic_event_device.c +1 -1
@@ -207,7 +207,7 @@ static void ged_regs_write(void *opaque, hwaddr addr, uint64_t data,return ;case ACPI_GED_REG_RESET :if (data ==ACPI_GED_RESET_VALUE ) { -qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_SHUTDOWN ); +qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_RESET ); }return ; }
Signature · 1 line
2.31.1
Quoted 24 lines · Gerd Hoffmann
Reset requests should use
SHUTDOWN_CAUSE_GUEST_RESETnotSHUTDOWN_CAUSE_GUEST_SHUTDOWN.Reported-by Peter Maydell <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>--- hw/acpi/generic_event_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/acpi/generic_event_device.c +1
-2@@ -207,7 +207,7 @@ static void ged_regs_write(void *opaque, hwaddr addr, uint64_t data,return ;case ACPI_GED_REG_RESET :if (data ==ACPI_GED_RESET_VALUE ) { -qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_SHUTDOWN ); +qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_RESET ); }return ; } --
Quoted 1 line
2.31.1
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM
Quoted 29 lines · Peter Maydell
Quoted 24 lines · Gerd Hoffmann
Reset requests should use
SHUTDOWN_CAUSE_GUEST_RESETnotSHUTDOWN_CAUSE_GUEST_SHUTDOWN.Reported-by Peter Maydell <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>--- hw/acpi/generic_event_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/acpi/generic_event_device.c +1
-2@@ -207,7 +207,7 @@ static void ged_regs_write(void *opaque, hwaddr addr, uint64_t data,return ;case ACPI_GED_REG_RESET :if (data ==ACPI_GED_RESET_VALUE ) { -qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_SHUTDOWN ); +qemu_system_reset_request (SHUTDOWN_CAUSE_GUEST_RESET ); }return ; } --Quoted 1 line
2.31.1
Reviewed-by Peter Maydell <[email protected]>
Quoted 2 lines
thanks
-- PMM
tagged, thanks!
Quoted 8 lines · Gerd Hoffmann
Reset requests should use
SHUTDOWN_CAUSE_GUEST_RESETnotSHUTDOWN_CAUSE_GUEST_SHUTDOWN.Reported-by Peter Maydell <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>--- hw/acpi/generic_event_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>