From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valentine Sinitsyn Subject: Re: Nested paging in nested SVM setup Date: Tue, 02 Sep 2014 15:53:59 +0600 Message-ID: <540593B7.3060404@gmail.com> References: <53A179C4.9060203@gmail.com> <53A18A6D.2050407@siemens.com> <53F44440.6070408@gmail.com> <5404A70E.20207@redhat.com> <54055F22.8070700@gmail.com> <540591AE.6030204@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-f170.google.com ([209.85.217.170]:55735 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722AbaIBJyF (ORCPT ); Tue, 2 Sep 2014 05:54:05 -0400 Received: by mail-lb0-f170.google.com with SMTP id w7so7263773lbi.1 for ; Tue, 02 Sep 2014 02:54:02 -0700 (PDT) In-Reply-To: <540591AE.6030204@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 02.09.2014 15:45, Paolo Bonzini wrote: > This *is* different though. I don't see any kvm_inj_exception at all > (with my patch it should be for vector 0xfe). I've applied the part of your patch, that fixes the uninitialized exception vector problem, otherwise the lockup will trigger before my code will have chance to hang on APIC. Namely, I did the following change: --- a/arch/x86/kvm/paging_tmpl.h 2014-09-02 21:53:26.035112557 +0600 +++ b/arch/x86/kvm/paging_tmpl.h 2014-09-02 21:53:46.145110721 +0600 @@ -366,7 +366,7 @@ 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; So they should look like regular page faults (as they ought to, I guess) now. Thanks, Valentine