Repository navigation
Initial implementation of supervisor - #1385
Conversation
QEMU Validation FailedQEMU validation did not complete successfully or did not shutdown as expected. Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/29623023499
|
| Job | Result |
|---|---|
| Gather Incoming PR Metadata | ✅ |
| Run Patina QEMU Validation / Post In-Progress Notification | ✅ |
| Run Patina QEMU Validation / Preflight Checks | ✅ |
| Run Patina QEMU Validation / Get Constants / Get Repository Constants | ✅ |
| Run Patina QEMU Validation / Validate QEMU - Q35 (Linux) | ❌ |
| Run Patina QEMU Validation / Validate QEMU Q35 (Windows) | ❌ |
| Run Patina QEMU Validation / Validate QEMU - ArmVirt (Linux) | ❌ |
| Run Patina QEMU Validation / Emit PR Metadata | ✅ |
Error Details
qemu-validation-logs-Linux-Q35/q35-linux.log (10 error/warning sections)
warning: patch `patina_mm_cpu v22.2.1 (/__w/patina/patina/components/patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (/__w/patina/patina/patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (/__w/patina/patina/patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
warning: patch `patina_mm_cpu v22.2.1 (/__w/patina/patina/components/patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (/__w/patina/patina/patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (/__w/patina/patina/patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin/q35_dxe_core.rs:58:21
|
58 | Uart16550::Io { base: 0x402 },
| ^^^^ field does not exist
|
::: /__w/patina/patina/sdk/patina/src/serial/uart/uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
58 - Uart16550::Io { base: 0x402 },
58 + Uart16550::Io(/* uart_16550::port::SerialPort */),
|
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin/q35_dxe_core.rs:68:58
|
68 | patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
| ^^^^ field does not exist
|
::: /__w/patina/patina/sdk/patina/src/serial/uart/uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
68 - patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
68 + patina_debugger::PatinaDebugger::new(Uart16550::Io(/* uart_16550::port::SerialPort */))
|
For more information about this error, try `rustc --explain E0559`.
error: could not compile `qemu_dxe_core` (bin "qemu_q35_dxe_core") due to 2 previous errors
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 113 - Error while executing command, exit code: 101
qemu-validation-logs-Windows-Q35/q35-windows.log (10 error/warning sections)
warning: patch `patina_mm_cpu v22.2.1 (D:\a\patina\patina\components\patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (D:\a\patina\patina\patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (D:\a\patina\patina\patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
warning: patch `patina_mm_cpu v22.2.1 (D:\a\patina\patina\components\patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (D:\a\patina\patina\patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (D:\a\patina\patina\patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin\q35_dxe_core.rs:58:21
|
58 | Uart16550::Io { base: 0x402 },
| ^^^^ field does not exist
|
::: D:\a\patina\patina\sdk\patina\src\serial\uart\uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
58 - Uart16550::Io { base: 0x402 },
58 + Uart16550::Io(/* uart_16550::port::SerialPort */),
|
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin\q35_dxe_core.rs:68:58
|
68 | patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
| ^^^^ field does not exist
|
::: D:\a\patina\patina\sdk\patina\src\serial\uart\uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
68 - patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
68 + patina_debugger::PatinaDebugger::new(Uart16550::Io(/* uart_16550::port::SerialPort */))
|
For more information about this error, try `rustc --explain E0559`.
error: could not compile `qemu_dxe_core` (bin "qemu_q35_dxe_core") due to 2 previous errors
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 113 - Error while executing command, exit code: 101
qemu-validation-logs-Linux-ArmVirt/armvirt-linux.log (10 error/warning sections)
warning: patch `patina_mm_cpu v22.2.1 (/__w/patina/patina/components/patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (/__w/patina/patina/patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (/__w/patina/patina/patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
warning: patch `patina_mm_cpu v22.2.1 (/__w/patina/patina/components/patina_mm_cpu)` was not used in the crate graph
warning: patch `patina_mm_supervisor v22.2.1 (/__w/patina/patina/patina_mm_supervisor)` was not used in the crate graph
warning: patch `patina_mm_user_core v22.2.1 (/__w/patina/patina/patina_mm_user_core)` was not used in the crate graph
help: Check that the patched package version and available features are compatible
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin/q35_dxe_core.rs:58:21
|
58 | Uart16550::Io { base: 0x402 },
| ^^^^ field does not exist
|
::: /__w/patina/patina/sdk/patina/src/serial/uart/uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
58 - Uart16550::Io { base: 0x402 },
58 + Uart16550::Io(/* uart_16550::port::SerialPort */),
|
error[E0559]: variant `Uart16550::Io` has no field named `base`
--> bin/q35_dxe_core.rs:68:58
|
68 | patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
| ^^^^ field does not exist
|
::: /__w/patina/patina/sdk/patina/src/serial/uart/uart_16550.rs:21:5
|
21 | Io(IoSerialPort),
| -- `Uart16550::Io` defined here
|
help: `Uart16550::Io` is a tuple variant, use the appropriate syntax
|
68 - patina_debugger::PatinaDebugger::new(Uart16550::Io { base: 0x3F8 })
68 + patina_debugger::PatinaDebugger::new(Uart16550::Io(/* uart_16550::port::SerialPort */))
|
For more information about this error, try `rustc --explain E0559`.
error: could not compile `qemu_dxe_core` (bin "qemu_q35_dxe_core") due to 2 previous errors
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 113 - Error while executing command, exit code: 101
Dependencies
| Repository | Ref |
|---|---|
| patina | 4647501 |
| patina-dxe-core-qemu | 423b4ab |
| patina-fw-patcher | 4c7f2e0 |
| patina-qemu firmware | v4.0.3 |
| patina-qemu build script | a2d247e |
This comment was automatically generated by the Patina QEMU PR Validation Post workflow.
Javagedes
left a comment
There was a problem hiding this comment.
I'm very concerned about the number of global statics in your implementation. I understand it may actually be necessary to be able to perform our SEA validation on the supervisor.
We need to consolidate the statics if possible. If we cannot (due to SEA validation requirements), then we need to make trait abstractions around each of the different statics so that at runtime they all link up, but for testing you can use mockall to mock the different statics. e.g. something like:
static MY_STATIC: SomeStatic = SomeStatic::new();
trait MyTrait {
fn interface_fn1();
fn interface_fn2();
}
impl MyTrait for SomeStatic {
fn interface_fn1() { MY_STATIC.interface_fn1() }
fn interface_fn2() { MY_STATIC.interface_fn2() }
}This will allow us to use mockall with the trait to do proper mocking.
8a5c38f to
c0baea8
Compare
c06dc1e to
df8b415
Compare
027814b to
221a7a5
Compare
|
Binary level PR: OpenDevicePartnership/patina-dxe-core-qemu#162 |
85c905c to
910a2e5
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
d3a06ea to
e2422b8
Compare
835d150 to
70755dd
Compare
Co-authored-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Co-authored-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Co-authored-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Co-authored-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Co-authored-by: Vineel Kovvuri[MSFT] <vineelko@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
c93395e
into
OpenDevicePartnership:feature/supv
Description
This is the initial implementation of MM supervisor and user core in Rust.
How This Was Tested
This was tested on QEMU Q35 platform and booted to OS desktop as well as passed supervisor test app.
Integration Instructions
The integration guide is listed in: https://github.com/kuqin12/mu_feature_mm_supv/blob/personal/kuqin/supv_init/SeaPkg/Docs/PlatformIntegration/PlatformIntegrationSteps.md#integraion-guide-for-rust-based-supervisor. Because it provides the implementation of MM supervisor init module.