From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 2/2] kvm-unit-tests: VMX: Test cases for nested EPT Date: Mon, 09 Sep 2013 18:23:41 +0200 Message-ID: <522DF60D.1020107@redhat.com> References: <1378702644-23655-1-git-send-email-yzt356@gmail.com> <1378702644-23655-3-git-send-email-yzt356@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm , Jan Kiszka , Gleb Natapov To: Arthur Chunqi Li Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31388 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754241Ab3IIQXi (ORCPT ); Mon, 9 Sep 2013 12:23:38 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 09/09/2013 17:29, Arthur Chunqi Li ha scritto: > Hi Paolo, > I noticed another possible bug of this patch. Stage 4 of this patch > test the scenario that the page of a paging structure is not present, > then this will cause EPT violation vmexit with bit 8 of exit_qual > unset. My question is: will instruction length be correctly set on > this scenario? I got wrong insn_len in "case 4" of VMX_EPT_VIOLATION, > which may cause triple fault vmexit. It's plausible that the instruction length is wrong, since the processor might be fetching the instruction itself and doesn't know the length. Paolo