Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: Replace asserts for checks on ACPI device accesses - #8405

Merged
rbradford merged 3 commits into
cloud-hypervisor:mainfrom
rbradford:202606/device-access-checks
Jun 17, 2026
Merged

rbradford merged 3 commits into
cloud-hypervisor:mainfrom
rbradford:202606/device-access-checks

Conversation

@rbradford

Copy link
Copy Markdown
Member

Replace the asserts which will cause the VMM to exit (semi-cleanly via panic handler) with warnings. A correctly behaving guest will never trigger these as it should respect the ACPI definitions over how to access these registers.

  • devices: acpi: Reject mis-sized accesses to shutdown and GED devices
  • vmm: device_manager: Reject mis-sized PCI hotplug register accesses
  • vmm: cpu: Reject mis-sized ACPI CPU hotplug register accesses

These devices should only be accessed by single byte accesses as
specified through the ACPI definitions for them.

Signed-off-by: Rob Bradford <[email protected]>
Assisted-by: Claude:Opus-4.7
Reject without asserting that the ACPI PCI hotplug register request
matches what is defined in the ACPI definition.

Signed-off-by: Rob Bradford <[email protected]>
Assisted-by: Claude:Opus-4.7
@rbradford
rbradford requested a review from a team as a code owner June 17, 2026 12:03
Comment thread vmm/src/cpu.rs Outdated
Reject without asserting that the ACPI CPU hotplug register accesses
match those that are specified by the ACPI definitions.

Signed-off-by: Rob Bradford <[email protected]>
Assisted-by: Claude:Opus-4.7

@phip1611 phip1611 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@rbradford
rbradford force-pushed the 202606/device-access-checks branch from 74ff582 to 1cbbf1f Compare June 17, 2026 12:48
@rbradford
rbradford enabled auto-merge June 17, 2026 12:48
@rbradford
rbradford added this pull request to the merge queue Jun 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 17, 2026
@rbradford
rbradford merged commit 7ca9920 into cloud-hypervisor:main Jun 17, 2026
40 of 41 checks passed
@rbradford
rbradford deleted the 202606/device-access-checks branch June 17, 2026 17:06
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Cloud Hypervisor Roadmap Jul 8, 2026
@rbradford rbradford added the bug-fix Bug fix to include in release notes label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Bug fix to include in release notes

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants