Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 13 Jul 2018 17:01:13 -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 1fe1RP-0003Xm-Md for speck@linutronix.de; Fri, 13 Jul 2018 19:01:12 +0200 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3976279D36 for ; Fri, 13 Jul 2018 17:01:05 +0000 (UTC) Received: from [10.36.117.240] (ovpn-117-240.ams2.redhat.com [10.36.117.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3C282156889 for ; Fri, 13 Jul 2018 17:01:04 +0000 (UTC) Subject: [MODERATED] Re: [patch V10 00/10] Control knobs and Documentation 0 References: <20180712141902.576562442@linutronix.de> <6e2b04bb-4786-ae48-1fe8-e1bbdbcd8b92@redhat.com> <267cd39e-263e-e291-b72f-630ae121eaf4@citrix.com> From: Paolo Bonzini Message-ID: <63fbc782-845f-0bc6-4ccd-4440934c440b@redhat.com> Date: Fri, 13 Jul 2018 19:01:03 +0200 MIME-Version: 1.0 In-Reply-To: <267cd39e-263e-e291-b72f-630ae121eaf4@citrix.com> Content-Type: multipart/mixed; boundary="FxF9F5NnGBZcpceWilCUGQZ2D5YTDqOhR"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --FxF9F5NnGBZcpceWilCUGQZ2D5YTDqOhR Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 13/07/2018 18:56, speck for Andrew Cooper wrote: >> VMENTER operations from the nested hypervisor into the nested guest >> will always be processed by the bare metal hypervisor. Therefore, >> when running as a nested hypervisor, doing L1D cache flushes on vmentr= y >> will result in twice the work and twice the slowdown, for no benefit. > Only if your outer hypervisor says so by setting MSR_ARCH_CAPS.VMENTRY_= NO >=20 > In all other circumstances, it is not safe to make this assumption. That is indeed yet another case to check. However, for the nested case specifically, wouldn't the nested hypervisor be doomed anyway, if the bare metal hypervisor can do all kind of stuff between your L1D flush and the actual vmentry? Paolo --FxF9F5NnGBZcpceWilCUGQZ2D5YTDqOhR--