Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 02 Jul 2018 17:24:46 -0000 Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fa2ZB-0008BT-7E for speck@linutronix.de; Mon, 02 Jul 2018 19:24:45 +0200 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5D1247C6A9 for ; Mon, 2 Jul 2018 17:24:38 +0000 (UTC) Received: from [10.36.117.221] (ovpn-117-221.ams2.redhat.com [10.36.117.221]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C806576C5 for ; Mon, 2 Jul 2018 17:24:37 +0000 (UTC) Subject: [MODERATED] Re: [patch V5 05/10] KVM magic # 5 References: <20180702154426.910579106@linutronix.de> <20180702160528.906801335@linutronix.de> From: Paolo Bonzini Message-ID: <7274a96c-ce82-eb20-e46c-be4e02019b33@redhat.com> Date: Mon, 2 Jul 2018 19:24:36 +0200 MIME-Version: 1.0 In-Reply-To: <20180702160528.906801335@linutronix.de> Content-Type: multipart/mixed; boundary="Mj6nlk6ROWvuYlMO6A6fHpk0EIXe2WjgX"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --Mj6nlk6ROWvuYlMO6A6fHpk0EIXe2WjgX Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 02/07/2018 17:44, speck for Thomas Gleixner wrote: > { "mmu_pte_updated", VM_STAT(mmu_pte_updated) }, > @@ -4799,6 +4800,8 @@ int kvm_read_guest_virt(struct kvm_vcpu > { > u32 access =3D (kvm_x86_ops->get_cpl(vcpu) =3D=3D 3) ? PFERR_USER_MAS= K : 0; > =20 > + /* The gva_to_pa walker can pull in tons of pages. */ It pulls in guest pages though, so does it really matter? Also, why read and not write too? (Fetch is only used by the emulator which sets the flag differently). Paolo > + vcpu->arch.l1tf_flush_l1d =3D true; > return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, access, > exception); > } --Mj6nlk6ROWvuYlMO6A6fHpk0EIXe2WjgX--