From: Marius Vlad Subject: Re: [PATCH v3] kvm-unit-tests : Basic architecture of VMX nested test case Date: Tue, 30 Jul 2013 09:59:47 +0200 Message-ID: <20130730075946.GA4010@lea.sec.uni-passau.de> References: <1375020009-6225-1-git-send-email-yzt356@gmail.com> <20130730073115.GA2085@lea.sec.uni-passau.de> <20130730074212.GN18009@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Cc: Arthur Chunqi Li , kvm , Jan Kiszka , Paolo Bonzini To: Gleb Natapov Return-path: Received: from tom.rz.uni-passau.de ([132.231.51.4]:40975 "EHLO tom.rz.uni-passau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067Ab3G3H7u (ORCPT ); Tue, 30 Jul 2013 03:59:50 -0400 Content-Disposition: inline In-Reply-To: <20130730074212.GN18009@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Gleb, On Tue, Jul 30, 2013 at 09:42:12AM +0200, Gleb Natapov wrote: > On Tue, Jul 30, 2013 at 09:31:17AM +0200, Marius Vlad wrote: > > Hi Arthur,=20 > >=20 > > I'm trying to test your patch on a SandyBridge machine. > >=20 > > Used 'nested=3D1' when loading kvm (from 3.9-1-amd64) > Should be kvm-intel, but you will get error otherwise, so I assume that > this is what you did. Indeed. >=20 > > and qemu (emulator version 1.5.1 (Debian 1.5.0+dfsg-5)). > >=20 > > Without nested=3D1 I get ``unhandled excecption 13'', so I presume > > this is OK, with it, the test_vmx_capability() fails at > > detecting vmx. > >=20 > > I've used for qemu: > > $ qemu-system-x86_64 -enable-kvm -device pc-testdev -device > > isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 -display none -serial stdi= o -device > > pci-testdev -kernel x86/vmx.flat -cpu SandyBridge,+vmx,+x2apic -smp 1 > >=20 > > Are there any knobs which I should further tune? > >=20 > On the first glance you have everything that is needed. What is the outpu= t of > "cat /proc/cpuinfo" in the guest is? (initramfs) cat /proc/cpuinfo=20 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel Xeon E312xx (Sandy Bridge) stepping : 1 microcode : 0x1 cpu MHz : 3410.012 cache size : 4096 KB fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov= pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc arch= _perfmon rep_good nopl eagerfpu pni pclmulqdq vmx ssse3 cx16 sse4_1 sse4_2 = x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt bogomips : 6820.02 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: Used:=20 $ qemu-system-x86_64 -enable-kvm -device pc-testdev -device\ isa-debug-exit,iobase=3D0xf4,iosize=3D0x4 -display none -serial stdio -devi= ce\ pci-testdev -kernel /boot/vmlinuz-3.9-1-amd64 -initrd\ /boot/initrd.img-3.9-1-amd64 -append 'init=3D/bin/bash console=3DttyS0' -cp= u\ SandyBridge,+vmx,+x2apic -smp 1 -serial stdio >=20 > -- > Gleb. >=20 --opJtzjQTFsWo+cga Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJR93JvAAoJEAEQsoLkdw1N74EP/Al/AqzI0QXAzPR7oGT3H1wy V1rDA6Bozs4aBKY1FGnxluR8yAPyTUf2c02HAyo6L8qQwbO4t56p/oEuzqbCwTWh FCL6G1WpU6nw4F9iScTidXKpNzRiAad0tL3cB2SC/974S6+WOMxEiZVPiU1iq6Od 40LBdKnj7GyxP7evIucvhalYeVyMQVSiwJjT1a0yKJuB7cux5CvlkC7aSYOdLVc9 /ZnHLw73Azr9q63sKcFptagUWo/GYqDNDYIH7x4rg1vDJRp//FHVNVObyNHYNgEk ecDG/j+I6Tsi0ye+3tqoXUZmi0pWm+Y3CVBD9t1V1BAWOYi6hpx4Ur1kLPq9kBi6 ExoLn2laRLOkqwHgxljQjpcbWhVkIDCkquH9RmPb2OawhfZvELP2m1JbgS8RZg8k 2BLwED6Tm32GcQHprhUlyh/YzlWvmdEtWbapZlaLWKFg3CmhL87WdAwC27b1jLMu N8kNrV047FUhzE3pey679bM0vMENAJleUEeicXgD97ubENcMx2jSOzgd0tS9aXwb U9AgsWmCg2vzWx7PBmm6jz0vIxzKkkdsyuVlfzbfY7NlXZi3lplJHzGdihF7wEmd 6U8FALr3zACwSy6RzDBvphzH9JjF3NoDE6/PvDy8kwVH1rsRwN7dfiNyPZLv7k8S +dqVbGolNKNiZlTpQzze =ArjN -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--