From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valentine Sinitsyn Subject: Re: Nested paging in nested SVM setup Date: Thu, 21 Aug 2014 12:28:34 +0600 Message-ID: <53F59192.3070500@gmail.com> References: <53A179C4.9060203@gmail.com> <53A18A6D.2050407@siemens.com> <53F44440.6070408@gmail.com> <53F44645.2000708@redhat.com> <53F45036.1070309@gmail.com> <53F45832.5080708@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Paolo Bonzini , Jan Kiszka , kvm@vger.kernel.org Return-path: Received: from mail-lb0-f174.google.com ([209.85.217.174]:47110 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbaHUG2j (ORCPT ); Thu, 21 Aug 2014 02:28:39 -0400 Received: by mail-lb0-f174.google.com with SMTP id c11so7645875lbj.19 for ; Wed, 20 Aug 2014 23:28:37 -0700 (PDT) In-Reply-To: <53F45832.5080708@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi all, On 20.08.2014 14:11, Paolo Bonzini wrote: > Another patch... I will post parts of it separately, if I am right > you should get 0xfe as the vector and a WARN from the gva_to_gpa function. With the patch like this: > diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h > index 410776528265..cd91d03c9320 100644 > --- a/arch/x86/kvm/paging_tmpl.h > +++ b/arch/x86/kvm/paging_tmpl.h > @@ -365,8 +365,10 @@ retry_walk: > gfn += pse36_gfn_delta(pte); > > real_gpa = mmu->translate_gpa(vcpu, gfn_to_gpa(gfn), access); > if (real_gpa == UNMAPPED_GVA) > - return 0; > + goto error; > > walker->gfn = real_gpa >> PAGE_SHIFT; KVM seems to work properly (no weird exceptions injected), although my code now freezes (quick look on the trace suggests it's looping reading APIC). Not sure whose bug is it, will look further. Thanks for the help. Valentine