[kvm-unit-tests 0/7] More tests for selective CR0 intercept

Yosry Ahmed posted 7 patches 3 months, 2 weeks ago
There is a newer version of this series
lib/x86/desc.h  |   8 +++
x86/svm.c       |   9 ++-
x86/svm.h       |   1 +
x86/svm_tests.c | 178 ++++++++++++++++++++++++++++++++++--------------
4 files changed, 144 insertions(+), 52 deletions(-)
[kvm-unit-tests 0/7] More tests for selective CR0 intercept
Posted by Yosry Ahmed 3 months, 2 weeks ago
From: Yosry Ahmed <yosryahmed@google.com>

Add more test cases for the selective CR0 write intercept, covering bugs
fixed by
https://lore.kernel.org/kvm/20251024192918.3191141-1-yosry.ahmed@linux.dev/.

Patches 1-5 are cleanups and prep work. Patch 6 generalizes the existing
test to make it easy to extend, and patch 7 adds the actual tests.

Yosry Ahmed (7):
  x86/svm: Cleanup selective cr0 write intercept test
  x86/svm: Move CR0 selective write intercept test near CR3 intercept
  x86/svm: Add FEP helpers for SVM tests
  x86/svm: Report unsupported SVM tests
  x86/svm: Move report_svm_guest() to the top of svm_tests.c
  x86/svm: Generalize and improve selective CR0 write intercept test
  x86/svm: Add more selective CR0 write and LMSW test cases

 lib/x86/desc.h  |   8 +++
 x86/svm.c       |   9 ++-
 x86/svm.h       |   1 +
 x86/svm_tests.c | 178 ++++++++++++++++++++++++++++++++++--------------
 4 files changed, 144 insertions(+), 52 deletions(-)

-- 
2.51.1.821.gb6fe4d2222-goog
Re: [kvm-unit-tests 0/7] More tests for selective CR0 intercept
Posted by Yosry Ahmed 3 months, 2 weeks ago
On Fri, Oct 24, 2025 at 07:49:18PM +0000, Yosry Ahmed wrote:
> From: Yosry Ahmed <yosryahmed@google.com>

Ugh I messed up the From email address again (and the Signed-off-by)..

> 
> Add more test cases for the selective CR0 write intercept, covering bugs
> fixed by
> https://lore.kernel.org/kvm/20251024192918.3191141-1-yosry.ahmed@linux.dev/.
> 
> Patches 1-5 are cleanups and prep work. Patch 6 generalizes the existing
> test to make it easy to extend, and patch 7 adds the actual tests.
> 
> Yosry Ahmed (7):
>   x86/svm: Cleanup selective cr0 write intercept test
>   x86/svm: Move CR0 selective write intercept test near CR3 intercept
>   x86/svm: Add FEP helpers for SVM tests
>   x86/svm: Report unsupported SVM tests
>   x86/svm: Move report_svm_guest() to the top of svm_tests.c
>   x86/svm: Generalize and improve selective CR0 write intercept test
>   x86/svm: Add more selective CR0 write and LMSW test cases
> 
>  lib/x86/desc.h  |   8 +++
>  x86/svm.c       |   9 ++-
>  x86/svm.h       |   1 +
>  x86/svm_tests.c | 178 ++++++++++++++++++++++++++++++++++--------------
>  4 files changed, 144 insertions(+), 52 deletions(-)
> 
> -- 
> 2.51.1.821.gb6fe4d2222-goog
>