Skip to content

vmm/linux/vstate: support KVM SystemEvents #302

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
merged 1 commit into from
Apr 7, 2025

Conversation

slp
Copy link
Collaborator

@slp slp commented Apr 4, 2025

On aarch64, we receive the shutdown/reset signals as KVM SystemEvents. Let's identify them properly to avoid printing an error on exit.

On aarch64, we receive the shutdown/reset signals as KVM SystemEvents.
Let's identify them properly to avoid printing an error on exit.

Signed-off-by: Sergio Lopez <[email protected]>
Copy link
Member

@tylerfanelli tylerfanelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One question however.

@@ -1129,6 +1131,14 @@ impl Vcpu {
error!("Received KVM_EXIT_INTERNAL_ERROR signal");
Err(Error::VcpuUnhandledKvmExit)
}
VcpuExit::SystemEvent(event, _reason) => {
Copy link
Member

@tylerfanelli tylerfanelli Apr 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be tagged behind #[cfg(target_arch = "aarch64")]? If not gaining anything from adding it, I'd say no, but just making sure.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On x86_64 we don't hit that one right now, because we shut down with a triple fault, but it's valid a could eventually happen.

@slp slp merged commit 1d2b334 into containers:main Apr 7, 2025
6 checks passed
@slp slp deleted the kvm-system-event branch April 7, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants