Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Contains patches for:
* virtio-iommu from https://jpbrucker.net/git/linux/log/?h=virtio-iommu/acpi (7616abe11cd1e0224bbd150626564db70bb07c31)
* Support for virtio-watchdog
* Bug fix: to support using ACPI reboot rather than EFI reboot

* Log boot time via debug port `0x80` on x86 (details: https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/docs/debug-port.md)
8 changes: 8 additions & 0 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,10 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
char *command_line;
char *after_dashes;

#ifdef CONFIG_X86
outb(0x40, 0x80);
#endif

set_task_stack_end_magic(&init_task);
smp_setup_processor_id();
debug_objects_early_init();
Expand Down Expand Up @@ -1528,6 +1532,10 @@ static int __ref kernel_init(void *unused)

do_sysctl_args();

#ifdef CONFIG_X86
outb(0x41, 0x80);
#endif

if (ramdisk_execute_command) {
ret = run_init_process(ramdisk_execute_command);
if (!ret)
Expand Down