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 18:28:47 +0600 Message-ID: <53F5E5FF.90604@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> <53F59192.3070500@gmail.com> <53F5B250.3000206@gmail.com> <53F5D709.3060207@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-la0-f53.google.com ([209.85.215.53]:64131 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753792AbaHUM2w (ORCPT ); Thu, 21 Aug 2014 08:28:52 -0400 Received: by mail-la0-f53.google.com with SMTP id gl10so8412906lab.40 for ; Thu, 21 Aug 2014 05:28:50 -0700 (PDT) In-Reply-To: <53F5D709.3060207@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 21.08.2014 17:24, Paolo Bonzini wrote: > It seems to work for VMX (see the testcase I just sent). For SVM, can you > check if this test works for you, so that we can work on a simple testcase? It passes for SVM, too. However, npt_rsvd seems to be broken - maybe that is the reason? Also, I tried to use different register values for npt_l1mmio_test() and npt_l1mmio_check() (like 0xfee00030 and 0xfee00400), but got test passed as well. Could it be a false positive then? > qemu-system-x86_64 -enable-kvm -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -display none -serial stdio -device pci-testdev -kernel x86/svm.flat -cpu host > enabling apic > paging enabled > cr0 = 80010011 > cr3 = 7fff000 > cr4 = 20 > NPT detected - running all tests with NPT enabled > null: PASS > vmrun: PASS > ioio: PASS > vmrun intercept check: PASS > cr3 read intercept: PASS > cr3 read nointercept: PASS > next_rip: PASS > mode_switch: PASS > asid_zero: PASS > sel_cr0_bug: PASS > npt_nx: PASS > npt_us: PASS > npt_rsvd: FAIL > npt_rw: PASS > npt_pfwalk: PASS > npt_l1mmio: PASS > Latency VMRUN : max: 93973 min: 22447 avg: 22766 > Latency VMEXIT: max: 428760 min: 23039 avg: 23832 > latency_run_exit: PASS > Latency VMLOAD: max: 35697 min: 3828 avg: 3937 > Latency VMSAVE: max: 42953 min: 3889 avg: 4012 > Latency STGI: max: 42961 min: 3517 avg: 3595 > Latency CLGI: max: 41177 min: 2859 avg: 2924 > latency_svm_insn: PASS > > SUMMARY: 18 TESTS, 1 FAILURES > Return value from qemu: 3 Valentine