Skip to contentSkip to conversation

kvm-unit-test: nSVM: Restructure nSVM test code

PATCH Applied Krish Sadhukhan 2 participants 4 messages Feb 5, 2020 – Mar 18, 2020 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-unit-test: nSVM: Restructure nSVM test code

This patch restructures the test code for nSVM in order to match its counterpart nVMX. This restructuring effort separates the test infrastructure from the test code and puts them in different files. This will make it easier to add future tests, both SVM and nSVM, as well as maintain them.

[PATCH] kvm-unit-test: nSVM: Restructure nSVM test code

 x86/Makefile.x86_64 |    1 +
 x86/svm.c           | 1718 +++++++--------------------------------------------
 x86/svm.h           |   52 +-
 x86/svm_tests.c     | 1279 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 1551 insertions(+), 1499 deletions(-)

Krish Sadhukhan (1):
nSVM: Restructure nSVM test code

#1 lore raw

PATCH 1/1 kvm-unit-test: nSVM: Restructure nSVM test code

..so that it matches its counterpart nVMX. This restructuring effort separates the test framework from the tests and puts them in different files.

---
 x86/Makefile.x86_64 |    1 +
 x86/svm.c           | 1718 +++++++--------------------------------------------
 x86/svm.h           |   52 +-
 x86/svm_tests.c     | 1279 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 1551 insertions(+), 1499 deletions(-)
 create mode 100644 x86/svm_tests.c
x86/Makefile.x86_64 +1 -0
index 010102b..af61d85 100644
@@ -26,3 +26,4 @@ include $(SRCDIR)/$(TEST_DIR)/Makefile.common
 $(TEST_DIR)/hyperv_clock.elf: $(TEST_DIR)/hyperv_clock.o
 
 $(TEST_DIR)/vmx.elf: $(TEST_DIR)/vmx_tests.o
+$(TEST_DIR)/svm.elf: $(TEST_DIR)/svm_tests.o
x86/svm.c +220 -1498

1,819 lines not on this page · raw message

x86/svm.h +51 -1

56 lines not on this page · raw message

x86/svm_tests.c new file +1279 -0

1,121 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.3.1

Part of the diff is not shown here. View the raw message.

#2 lore raw
In reply to Krish Sadhukhan
Quoted 8 lines · Krish Sadhukhan

This patch restructures the test code for nSVM in order to match its counterpart nVMX. This restructuring effort separates the test infrastructure from the test code and puts them in different files. This will make it easier to add future tests, both SVM and nSVM, as well as maintain them.

[PATCH] kvm-unit-test: nSVM: Restructure nSVM test code

Quoted 9 lines
  x86/Makefile.x86_64 |    1 +
  x86/svm.c           | 1718 +++++++--------------------------------------------
  x86/svm.h           |   52 +-
  x86/svm_tests.c     | 1279 ++++++++++++++++++++++++++++++++++++++
  4 files changed, 1551 insertions(+), 1499 deletions(-)

Krish Sadhukhan (1):
nSVM: Restructure nSVM test code

Ping ...

maintainer Applied
#3 lore raw
In reply to Krish Sadhukhan
Quoted 8 lines · Krish Sadhukhan

This patch restructures the test code for nSVM in order to match its counterpart nVMX. This restructuring effort separates the test infrastructure from the test code and puts them in different files. This will make it easier to add future tests, both SVM and nSVM, as well as maintain them.

[PATCH] kvm-unit-test: nSVM: Restructure nSVM test code

Quoted 9 lines
 x86/Makefile.x86_64 |    1 +
 x86/svm.c           | 1718 +++++++--------------------------------------------
 x86/svm.h           |   52 +-
 x86/svm_tests.c     | 1279 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 1551 insertions(+), 1499 deletions(-)

Krish Sadhukhan (1):
nSVM: Restructure nSVM test code

Merged, thanks.

Paolo