Skip to contentSkip to conversation

test: add svm tests

PATCH In review Avi Kivity 2 participants 3 messages Aug 2, 2010 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 test: add svm tests

Test behaviour both with svm enabled and with svm disabled.

---
 kvm/test/x86/unittests.cfg |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
kvm/test/x86/unittests.cfg +10 -0
index f39c5bd..7796e41 100644
@@ -53,3 +53,13 @@ file = xsave.flat
 
 [rmap_chain]
 file = rmap_chain.flat
+
+[svm]
+file = svm.flat
+smp = 2
+extra_params = -enable-nesting -cpu qemu64,+svm
+
+[svm-disabled]
+file = svm.flat
+smp = 2
+extra_params = -cpu qemu64,-svm
Signature · 1 line
1.7.1
author
#1 lore raw
Quoted 15 lines · Avi Kivity

Test behaviour both with svm enabled and with svm disabled.

---
  kvm/test/x86/unittests.cfg |   10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)
kvm/test/x86/unittests.cfg +0 -0
index f39c5bd..7796e41 100644
@@ -53,3 +53,13 @@ file = xsave.flat
 
  [rmap_chain]
  file = rmap_chain.flat

kvm/test/x86/unittests.cfg file = xsave.flat · line 65

Quoted 10 lines
kvm/test/x86/unittests.cfg +10 -0
+
+[svm]
+file = svm.flat
+smp = 2
+extra_params = -enable-nesting -cpu qemu64,+svm
+
+[svm-disabled]
+file = svm.flat
+smp = 2
+extra_params = -cpu qemu64,-svm

This doesn't appear to work. The test is run, but smp and extra_params are ignored:

08/02 19:51:05 DEBUG| kvm_vm:0637| Running qemu command:
/root/autotest/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100802-194922-fika',server,nowait -serial unix:'/tmp/serial-20100802-194922-fika',server,nowait -m 512 -kernel '/root/autotest/client/tests/kvm/unittests/svm.flat' -vnc :0 -chardev file,id=testlog,path=/tmp/testlog-20100802-194922-fika -device testdev,chardev=testlog -S

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw
Quoted 36 lines · Avi Kivity
Quoted 15 lines · Avi Kivity

Test behaviour both with svm enabled and with svm disabled.

---
  kvm/test/x86/unittests.cfg |   10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)
kvm/test/x86/unittests.cfg +0 -0
index f39c5bd..7796e41 100644
@@ -53,3 +53,13 @@ file = xsave.flat
 
  [rmap_chain]
  file = rmap_chain.flat

kvm/test/x86/unittests.cfg file = xsave.flat · line 65

Quoted 10 lines
kvm/test/x86/unittests.cfg +10 -0
+
+[svm]
+file = svm.flat
+smp = 2
+extra_params = -enable-nesting -cpu qemu64,+svm
+
+[svm-disabled]
+file = svm.flat
+smp = 2
+extra_params = -cpu qemu64,-svm

This doesn't appear to work. The test is run, but smp and extra_params are ignored:

08/02 19:51:05 DEBUG| kvm_vm:0637| Running qemu command:
/root/autotest/client/tests/kvm/qemu -name 'vm1' -monitor unix:'/tmp/monitor-humanmonitor1-20100802-194922-fika',server,nowait

(quoted diff) +0 -3
-serial unix:'/tmp/serial-20100802-194922-fika',server,nowait -m 512 
-kernel '/root/autotest/client/tests/kvm/unittests/svm.flat' -vnc :0 
-chardev file,id=testlog,path=/tmp/testlog-20100802-194922-fika -device 
Quoted 1 line

testdev,chardev=testlog -S

Ok, my fault, I have fixed it and just sent a patch upstream. Will commit soon and rebase the internal test tree afterwards.

Sorry and thanks for pointing this out!

Lucas