Skip to content

Commit 255d679

Browse files
Nitin Puranikapop5
authored andcommitted
Configure Terminal to be picked up by Consplitter
Add the terminal device to be picked up by Consplitter so we can interact with UEFI VMs over serial console terminals like Putty.
1 parent 86d984c commit 255d679

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,10 @@ TerminalDriverBindingStart (
800800
&TerminalDevice->SimpleTextOutput,
801801
&gEfiDevicePathProtocolGuid,
802802
TerminalDevice->DevicePath,
803+
&gEfiConsoleOutDeviceGuid,
804+
NULL, // Terminal is a ConOut device (picked up by Consplitter).
805+
&gEfiConsoleInDeviceGuid,
806+
NULL, // Terminal is a ConIn device (picked up by Consplitter).
803807
NULL
804808
);
805809
if (!EFI_ERROR (Status)) {
@@ -1002,6 +1006,10 @@ TerminalDriverBindingStop (
10021006
&TerminalDevice->SimpleTextOutput,
10031007
&gEfiDevicePathProtocolGuid,
10041008
TerminalDevice->DevicePath,
1009+
&gEfiConsoleOutDeviceGuid,
1010+
NULL,
1011+
&gEfiConsoleInDeviceGuid,
1012+
NULL,
10051013
NULL
10061014
);
10071015
if (EFI_ERROR (Status)) {

MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
gEdkiiVT400Guid ## SOMETIMES_CONSUMES ## GUID # used with a Vendor-Defined Messaging Device Path
7575
gEdkiiSCOTermGuid ## SOMETIMES_CONSUMES ## GUID # used with a Vendor-Defined Messaging Device Path
7676
gEdkiiStatusCodeDataTypeVariableGuid ## SOMETIMES_CONSUMES ## GUID
77+
gEfiConsoleOutDeviceGuid ## SOMETIMES_CONSUMES ## MU_CHANGE
78+
gEfiConsoleInDeviceGuid ## SOMETIMES_CONSUMES ## MU_CHANGE
7779

7880
[Protocols]
7981
gEfiSerialIoProtocolGuid ## TO_START

0 commit comments

Comments
 (0)