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

Skip to content

vmm: Fix CPU's nested control on AMD - #7783

Merged
rbradford merged 2 commits into
cloud-hypervisor:mainfrom
rbradford:202603/fix-amd-nested-cpuid
Mar 4, 2026
Merged

rbradford merged 2 commits into
cloud-hypervisor:mainfrom
rbradford:202603/fix-amd-nested-cpuid

Conversation

@rbradford

Copy link
Copy Markdown
Member
  • arch: x86_64: Correctly disable nested virtualization on AMD
  • tests: Add integration test for nested virtualization

@rbradford
rbradford requested a review from a team as a code owner March 4, 2026 10:24

@sboeuf sboeuf 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! Just two typos in the commit message introducing the fix.

The loop that is for programming the APIC ID and disabling nested
virtualization was prematurely breaking out on AMD platforms as the 0x1
leaf is also valid on AMD. This lead to the code attempting to disable
SVM in the 0x8000_0001 leaf never being reached.

Now only break out early if the CPU vendor is Intel.

Signed-off-by: Rob Bradford <[email protected]>
Since we run integration tests on Intel & AMD this should test the
behaviour of `--cpus nested={on|off}` correctly.

Signed-off-by: Rob Bradford <[email protected]>
@rbradford
rbradford force-pushed the 202603/fix-amd-nested-cpuid branch from 8e35a5b to d0fc0d6 Compare March 4, 2026 12:23
@rbradford
rbradford enabled auto-merge March 4, 2026 12:23
@rbradford
rbradford added this pull request to the merge queue Mar 4, 2026
Merged via the queue into cloud-hypervisor:main with commit 67945b3 Mar 4, 2026
37 checks passed
@rbradford
rbradford deleted the 202603/fix-amd-nested-cpuid branch March 4, 2026 15:46
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Cloud Hypervisor Roadmap Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants