Skip to content

Commit a609c6d

Browse files
committed
com2 and com3 please
1 parent 56037ef commit a609c6d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

lib/src/lib.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,13 +786,32 @@ impl Node {
786786
) -> Result<(), Error> {
787787
self.try_ensure_base_image(log).await?;
788788

789+
// Propolis supports COM1 to COM4, so ensure those devices are present.
790+
// Note COM4 will be added implicitly due to the presence of a
791+
// SoftNpuPciPort device in the spec, and it will be commandeered by
792+
// SoftNPU devices.
793+
789794
self.components.insert(
790795
SpecKey::Name("com1".into()),
791796
ComponentV0::SerialPort(SerialPort {
792797
num: SerialPortNumber::Com1,
793798
}),
794799
);
795800

801+
self.components.insert(
802+
SpecKey::Name("com2".into()),
803+
ComponentV0::SerialPort(SerialPort {
804+
num: SerialPortNumber::Com2,
805+
}),
806+
);
807+
808+
self.components.insert(
809+
SpecKey::Name("com3".into()),
810+
ComponentV0::SerialPort(SerialPort {
811+
num: SerialPortNumber::Com3,
812+
}),
813+
);
814+
796815
let backing = match self.primary_disk_backing {
797816
PrimaryDiskBacking::Zvol => {
798817
self.create_zvol_backing(deployment_name)?

0 commit comments

Comments
 (0)