Skip to content

boot_params: get debug com port from IGVM command line#1164

Draft
msft-jlange wants to merge 1 commit into
coconut-svsm:mainfrom
msft-jlange:igvm_cmdline
Draft

boot_params: get debug com port from IGVM command line#1164
msft-jlange wants to merge 1 commit into
coconut-svsm:mainfrom
msft-jlange:igvm_cmdline

Conversation

@msft-jlange

Copy link
Copy Markdown
Collaborator

The IGVM command line is intended to convey debug configuration options, so obtain the debug com port identifier from the command line instead of relying on a static configuration in the IGVM file. This eliminates one more hypervisor-specific difference from the IGVM file. If the command line is not specified (QEMU does not specify a command line), then the com port defaults to 1, which is the value that QEMU expects, thus ensuring that QEMU can get the correct behavior without requiring a command line to be specified.

The IGVM command line is intended to convey debug configuration options,
so obtain the debug com port identifier from the command line instead of
relying on a static configuration in the IGVM file.  This eliminates one
more hypervisor-specific difference from the IGVM file.  If the command
line is not specified (QEMU does not specify a command line), then the
com port defaults to 1, which is the value that QEMU expects, thus
ensuring that QEMU can get the correct behavior without requiring a
command line to be specified.

Signed-off-by: Jon Lange <jlange@microsoft.com>
@msft-jlange msft-jlange marked this pull request as draft July 9, 2026 17:48
@msft-jlange

Copy link
Copy Markdown
Collaborator Author

This PR requires a change to QEMU such that QEMU ignores the command line parameter directive instead of treating it as a fatal error. Since the kernel doesn't require any command line to be present, this is a safe change to QEMU, but it has to propagate before this PR can merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant