Skip to content

Add nested-svm-vmrun/load/save testcases with common helpers#14

Closed
bernhardkaindl wants to merge 1 commit into
andyhhp:masterfrom
bernhard-xs:nested-svm-vmrun-0.2
Closed

Add nested-svm-vmrun/load/save testcases with common helpers#14
bernhardkaindl wants to merge 1 commit into
andyhhp:masterfrom
bernhard-xs:nested-svm-vmrun-0.2

Conversation

@bernhardkaindl

@bernhardkaindl bernhardkaindl commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Add nested-svm-{vmrun,vm{load,save}-negative} testcases with helpers

Add nested SVM test cases for VMLOAD, VMRUN, and VMSAVE using a minimal
test L2 domain.

The negative tests assert the error handling of using a test matrix
of execution of VMLOAD and VMSAVE in a matrix of contexts:

  • User and Kernel context
  • EFER.SVME enabled and disabled
  • EAX VMCB register aligned, unaligned, or outside of physical range
  • CPL0 and CPL3

Based on an initial experiment by Ross to run a minimal L2.

Signed-off-by: Ross Lagerwall ross.lagerwall@citrix.com
Signed-off-by: Bernhard Kaindl bernhard.kaindl@citrix.com

@bernhardkaindl bernhardkaindl force-pushed the nested-svm-vmrun-0.2 branch 4 times, most recently from 8949d9e to 058c035 Compare June 4, 2026 13:12
Add nested SVM test cases for VMLOAD, VMSAVE and VMRUN using a shared L2.

The negative tests assert the error handling of using a test matrix
of execution of VMLOAD and VMSAVE in a matrix of contexts:
- User and Kernel context
- EFER.SVME enabled and disabled
- EAX VMCB register aligned, unaligned, or outside of physical range
- CPL0 and CPL3

The tests create and use shared headers and modules for L2 setup.

Also create a new category nested-svm for running the category using:
./xtf-runner nested-svm

Based on an initial experiment by Ross to run a minimal L2.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@citrix.com>
@bernhardkaindl bernhardkaindl force-pushed the nested-svm-vmrun-0.2 branch from 058c035 to 12e00ee Compare June 4, 2026 14:07
@bernhardkaindl

Copy link
Copy Markdown
Contributor Author

Obsoleted by a series of commits near the end of this PR branch (split cleanups into other commits) xen-incubator#19

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.

1 participant