-
Notifications
You must be signed in to change notification settings - Fork 238
openhcl: add IPMI KCS emulation and SEL forwarding #4396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Steven Malis (smalis-msft)
merged 14 commits into
microsoft:main
from
ayusharora221204:user/ayusharora/ipmi-kcs-sel
Sep 18, 2026
+3,586
−32
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6675144
add IPMI KCS and SEL core
6a74794
openhcl: wire IPMI KCS and SEL forwarding
366279f
Merge upstream main into IPMI KCS branch
34a2bda
test: add OpenHCL IPMI SEL vmm coverage
bbd2123
refactor: address IPMI review feedback
b8e9f50
ipmi: address protocol review feedback
ba85123
chore: retrigger PR validation
72cdcdc
Merge upstream main into IPMI branch
ecbb8de
Merge upstream main into IPMI branch
3dfd084
test: document IPMI SEL ioctl helper
509291d
test: fix ioctl error handling
527dd1c
ipmi: address additional review feedback
90c93c8
Merge remote-tracking branch 'origin/main' into user/ayusharora/ipmi-…
9372097
ipmi: address remaining review feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # IPMI KCS | ||
|
|
||
| OpenVMM provides a minimal virtual IPMI baseboard management controller (BMC) | ||
| using the Keyboard Controller Style (KCS) system interface. The device allows | ||
| UEFI guests to write and query a bounded System Event Log (SEL). | ||
|
|
||
| The implementation is provided by the `ipmi_kcs` crate. Wire-level command and | ||
| record definitions are in the `ipmi_protocol` crate. | ||
|
|
||
| ## Configuration | ||
|
|
||
| The device is created when the platform configuration enables IPMI. OpenHCL | ||
| accepts this setting only for UEFI guests; PCAT and Linux-direct boot modes are | ||
| not supported. | ||
|
|
||
| The guest-visible register interface depends on the architecture: | ||
|
|
||
| | Architecture | Interface | Registers | | ||
| | --- | --- | --- | | ||
| | x86-64 | Port I/O | Data at `0xCA2`; status/command at `0xCA3` | | ||
| | AArch64 | MMIO | Data at `0xEFFE7000`; status/command at `0xEFFE7004` | | ||
|
|
||
| Only one-byte register accesses are supported. | ||
|
|
||
| ## Supported commands | ||
|
|
||
| The virtual BMC implements the IPMI application `Get Device ID` command and | ||
| these SEL storage commands: | ||
|
|
||
| - Get SEL Info | ||
| - Reserve SEL | ||
| - Get SEL Entry | ||
| - Add SEL Entry | ||
| - Clear SEL | ||
| - Get SEL Time | ||
| - Set SEL Time | ||
|
|
||
| The SEL stores at most 128 records. Reservations are exposed for guest software | ||
| compatibility but are not enforced because the device has one serialized KCS | ||
| requestor and no independent SEL mutators. | ||
|
|
||
| Completed SEL records are retained by the device and forwarded to the host on | ||
| a best-effort basis. Forwarding is limited to 256 records per trusted | ||
| wall-clock second; reaching that limit does not remove records from the SEL. | ||
|
|
||
| ## Servicing | ||
|
|
||
| Saved state includes the KCS transaction, SEL records, record allocation state, | ||
| reservation identifier, and guest-selected SEL time offset. Diagnostic | ||
| forwarding counters and rate-limiter state are reset after restore. | ||
|
|
||
| See the | ||
| [`ipmi_kcs` rustdoc](https://openvmm.dev/rustdoc/ipmi_kcs/index.html) for the | ||
| device API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.