Skip to content

svm: INIT test and test_run on selected vcpu

Cathy Avery kvm lkml 2 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

1) Incorporated feedback:
- DR6/DR7/CR2/DEBUGCTL should not be need.
- HSAVE should be set to a different page for each vCPU
- The on_cpu to set EFER should be in setup_svm
- The on_cpu to set cr0/cr3/cr4 should be in setup_vm.

2) Execute tests on selected vcpu using on_cpu_async so the tests may use the on_cpu functions without causing an ipi_lock deadlock.

3) Added additional test svm_init_startup_test which inits the vcpu and restarts with sipi.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3svm: Add ability to execute test via test_run on a vcpu other than vcpu 0lib/x86/vm.c lib/x86/vm.h x86/svm.c +1 more+50 -11 reply
2/3svm: INIT and STARTUP ipi testx86/cstart64.S x86/svm_tests.c+58 -00 replies
3/3svm: INIT intercept testx86/svm_tests.c+40 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH kvm-unit-tests v2 0/3] svm: INIT test and test_run on selected vcpu

INIT intercept test and the ability to execute test_run on a selected vcpu

Changes from v1:

1) Incorporated feedback:
- DR6/DR7/CR2/DEBUGCTL should not be need.
- HSAVE should be set to a different page for each vCPU
- The on_cpu to set EFER should be in setup_svm
- The on_cpu to set cr0/cr3/cr4 should be in setup_vm.

2) Execute tests on selected vcpu using on_cpu_async so the tests may use the on_cpu functions without causing an ipi_lock deadlock.

3) Added additional test svm_init_startup_test which inits the vcpu and restarts with sipi.

Cathy Avery (3):
svm: Add ability to execute test via test_run on a vcpu other than
vcpu 0
svm: INIT and STARTUP ipi test
svm: INIT intercept test

 lib/x86/vm.c    | 18 +++++++++
 lib/x86/vm.h    |  7 ++++
 x86/cstart64.S  |  1 +
 x86/svm.c       | 24 +++++++++++-
 x86/svm.h       |  2 +
 x86/svm_tests.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 148 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.1