From 58f4144b2ee1641a41bbae29d087366930a046ec Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Tue, 28 May 2024 14:45:27 +0000 Subject: [PATCH 1/3] chore: update codeowners Remove JonathanWoollett-Light. Add ShadowCurse. Signed-off-by: Egor Lazarchuk --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 31d83d4..bcfc569 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,2 +1,2 @@ # Add the list of code owners here (using their GitHub username) -* @andreeaflorescu @lauralt @gsserge @roypat @JonathanWoollett-Light +* @andreeaflorescu @lauralt @gsserge @roypat @ShadowCurse From cb7c3657de479e25d07866523b7d41461e9ee48c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:19:24 +0000 Subject: [PATCH 2/3] Bump rust-vmm-ci from `7606478` to `0503867` Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `7606478` to `0503867`. - [Commits](https://github.com/rust-vmm/rust-vmm-ci/compare/7606478202667234d9378d6850bfda9c219eee7b...05038671bbc09476d9051c884f754689ae1774f9) --- updated-dependencies: - dependency-name: rust-vmm-ci dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- rust-vmm-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-vmm-ci b/rust-vmm-ci index 7606478..0503867 160000 --- a/rust-vmm-ci +++ b/rust-vmm-ci @@ -1 +1 @@ -Subproject commit 7606478202667234d9378d6850bfda9c219eee7b +Subproject commit 05038671bbc09476d9051c884f754689ae1774f9 From 01a164c1f0d9e99a9d9ced9be97170b026d9c3cf Mon Sep 17 00:00:00 2001 From: Eddie Cazares Date: Sat, 4 May 2024 01:02:23 -0500 Subject: [PATCH 3/3] Implement std::error::Error for Error Types Updated Error in serial.rs to implement std::error::Error. Signed-off-by: Eddie Cazares --- vm-superio/src/serial.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vm-superio/src/serial.rs b/vm-superio/src/serial.rs index 2c736a3..3689ae1 100644 --- a/vm-superio/src/serial.rs +++ b/vm-superio/src/serial.rs @@ -11,6 +11,8 @@ //! This is done by emulating an UART serial port. use std::collections::VecDeque; +use std::error::Error as StdError; +use std::fmt; use std::io::{self, Write}; use std::result::Result; use std::sync::Arc; @@ -289,6 +291,18 @@ pub enum Error { FullFifo, } +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + match self { + Error::Trigger(e) => write!(f, "Failed to trigger interrupt: {}", e), + Error::IOError(e) => write!(f, "Couldn't write/flush to the given destination: {}", e), + Error::FullFifo => write!(f, "No space left in FIFO"), + } + } +} + +impl StdError for Error {} + impl Serial { /// Creates a new `Serial` instance which writes the guest's output to /// `out` and uses `trigger` object to notify the driver about new