From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheng Yang Subject: Re: confused with invept Date: Sat, 31 Jan 2009 11:18:10 +0800 Message-ID: <20090131031810.GA10929@yukikaze> References: <4982EE2A0200008B00062848@lucius.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Bill Rieske Return-path: Received: from ti-out-0910.google.com ([209.85.142.190]:25922 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbZAaDSI (ORCPT ); Fri, 30 Jan 2009 22:18:08 -0500 Received: by ti-out-0910.google.com with SMTP id b6so240268tic.23 for ; Fri, 30 Jan 2009 19:18:04 -0800 (PST) Content-Disposition: inline In-Reply-To: <4982EE2A0200008B00062848@lucius.provo.novell.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Jan 30, 2009 at 12:10:18PM -0700, Bill Rieske wrote: > I get the following extracted from dmesg when essentially modprobing kvm_intel. Note: distro using kvm 78 Hi Bill Are you using Core i7 processor? Only it support EPT. What's your host kernel version? And I think we can try the latest KVM module first. > This is what I have derived from objdump -M x86_64,intel -Sl vmx.o > vmx_init is at 0x2ee + 0x1ec is 4da > extracted from the objdump > 4b5: f6 05 00 00 00 00 04 test BYTE PTR ds:0x0,0x4 > 4bc: 74 4d je 50b > 4be: 48 c7 44 24 20 00 00 mov QWORD PTR [rsp+32],0x0 > 4c5: 00 00 > 4c7: 48 c7 44 24 28 00 00 mov QWORD PTR [rsp+40],0x0 > 4ce: 00 00 > 4d0: 48 8d 44 24 20 lea rax,[rsp+32] > 4d5: b9 02 00 00 00 mov ecx,0x2 > 4da: 66 data16 > 4db: 0f 38 80 (bad) > 4de: 08 77 02 or BYTE PTR [rdi+2],dh > 4e1: 0f 0b ud2a > 4e3: eb 26 jmp 50b > > which from what I gather is the instruction for INVEPT opcode 660f3880 > from what I can tell from the code I shouldn't invoke this instruction if the bit isn't valid from > ept_sync_global(); Sure. The bit should be filled by setup_vmcs_config() in vmx.c. I hope the vmx_capability haven't been corrupted... > from what I gather it's faulting in the __invept or am I totally down the wrong path. > Any Ideas on whats going on would be helpful or how I should proceed. > Please help to identify your processor, the value of vmx_capability.ept and try latest KVM. Thanks. -- regards Yang, Sheng |Intel Opensource Technology Center