x86: machine_restart() must not call acpi_dmar_reinstate() twice

.. as that function is not idempotent (it always alters the table
checksum). The (generally) duplicate call was a result from it being
made before machine_restart() re-invoking itself on the boot CPU.

Considering that no problem arose so far from the table corruption I
doubt that we need to restore the correct table signature on the
reboot path in general. The only case I can see this as potentially
necessary is the tboot one, hence do the call just in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: a54dc5f4fe
master date: 2013-09-13 14:27:34 +0200
This commit is contained in:
Jan Beulich committed 2013-09-23 16:23:52 +02:00
1 parent 9e5a66bc88
commit 6916c31d0e
1 file changed
+3 -2
+3 -2
View File
@@ -115,8 +115,6 @@ void machine_restart(unsigned int delay_millisecs)
console_start_sync();
spin_debug_disable();
acpi_dmar_reinstate();
local_irq_enable();
/* Ensure we are the boot CPU. */
@@ -141,7 +139,10 @@ void machine_restart(unsigned int delay_millisecs)
mdelay(delay_millisecs);
if ( tboot_in_measured_env() )
{
acpi_dmar_reinstate();
tboot_shutdown(TB_SHUTDOWN_REBOOT);
}
efi_reset_system(reboot_mode != 0);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.