Skip to content

Commit 8c20804

Browse files
pierregondoismergify[bot]
authored andcommitted
ArmVirtPkg: Kvmtool: Advertise all serial ports
kvmtool advertises 4 serial ports. The DynamicTablesPkg advertises: - the first port as the console port / SPCR table - the second port as the debug port / DBG2 table - the other ports are currently ignored Advertise the last 2 serial port to the OS by describing them in SSDT tables. New serial devices can be seen at: Before patch: $ ls /sys/devices/pnp0 00:00 00:01 00:02 power uevent After patch: $ ls /sys/devices/pnp0 00:00 00:01 00:02 00:03 00:04 power uevent The EStdAcpiTableIdSsdtSerialPort entry is placed before the last 3 PCI related tables as they might be dynamically removed depending on kvmtool parameters. Signed-off-by: Pierre Gondois <[email protected]>
1 parent 9bceb16 commit 8c20804

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.c

+9
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ EDKII_PLATFORM_REPOSITORY_INFO mKvmtoolPlatRepositoryInfo = {
106106
NULL
107107
},
108108
//
109+
// SSDT Serial Port Table
110+
//
111+
{
112+
EFI_ACPI_6_3_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE,
113+
0, // Unused
114+
CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSsdtSerialPort),
115+
NULL
116+
},
117+
//
109118
// PCI MCFG Table
110119
//
111120
{

ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ typedef EFI_STATUS (*CM_OBJECT_HANDLER_PROC) (
6363
///
6464
/// The number of ACPI tables to install
6565
///
66-
#define PLAT_ACPI_TABLE_COUNT 10
66+
#define PLAT_ACPI_TABLE_COUNT 11
6767

6868
///
6969
/// A structure describing the platform configuration

0 commit comments

Comments
 (0)