From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valentine Sinitsyn Subject: Re: Nested paging in nested SVM setup Date: Wed, 20 Aug 2014 15:49:29 +0600 Message-ID: <53F46F29.4080008@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-f171.google.com ([209.85.217.171]:51963 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354AbaHTJtj (ORCPT ); Wed, 20 Aug 2014 05:49:39 -0400 Received: by mail-lb0-f171.google.com with SMTP id l4so6623371lbv.30 for ; Wed, 20 Aug 2014 02:49:37 -0700 (PDT) In-Reply-To: <53F45832.5080708@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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. I confirm the vector is 0xfe, however I see no warnings from gva_to_gpa() - only from emulate_exception(): > [ 3417.251967] ------------[ cut here ]------------ > [ 3417.251983] WARNING: CPU: 1 PID: 1584 at /home/val/kvm-kmod/x86/emulate.c:4839 x86_emulate_insn+0xb33/0xb70 [kvm]() I can see both warnings, if I move 'WARN(walker.fault.vector > 0x1f)' from gva_to_gpa() to gva_to_gpa_nested(), however: > [ 3841.420019] WARNING: CPU: 0 PID: 1945 at /home/val/kvm-kmod/x86/paging_tmpl.h:903 paging64_gva_to_gpa_nested+0xd1/0xe0 [kvm]() > [ 3841.420457] WARNING: CPU: 0 PID: 1945 at /home/val/kvm-kmod/x86/emulate.c:4839 x86_emulate_insn+0xb33/0xb70 [kvm]() Thanks, Valentine