[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/EPT: squash meaningless TLB flush
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 10 Dec 2021 11:30:09 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=efO7i9HM4hQZtTbeIveCTeoOkUZvKrPMC/1No5eKVAY=; b=UMyCiLMZYT0HnfJnT4QAG9LXxSyZPWevvBxAomEvFCUuo7n6DwMHfK/USnz05jYs4/l5wT8hCG9BuKIBhujVULQ2fNTM5QfD0yWllcdJSSxLSvTYTax6QwQCxNq77FXVvH2sGHKoIHVVguW2gfRMPbDj+mNMvVQW6y4uZutJk/fjFvtw0n+lM5yeTuG5klWgmFHZ42/b7cKMbFX2llnKmaqJjIo7l3ZGLgFUcsy9k7cfugSuM3OTtHUQDpCjOOb/w4eV8KtgYv3OlchsSpBQ0LoEFZ9GApk7Jnvp9nEAPTPy4GKasiuARUaV6LbSWVTtueQQI1/nBG8RFUTUUJnc+Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ny6rwN5fDpS/zG0cpCpkANHGqiIuuo08BwhSfF3TfbxrPqIWmsVHVfwVkGHmMxmQBVuf2WUHeFP5lOuFUUajEAgMgxUOLNHV8o7ah+PoipTligP1/OKPvh0cZ0c1no8ijA022Tw+I/HW+BnoXQsnEikC7d1FIq2T6EmuQsOXrxh4ScI7VhKXZys74U9zJ7iDDokoQMwZlrRy7Y9GRld9KgmgHhvC11q0+lGV4WNGXEeJqtw/dQA/duOH4vWqnihqb6fP1vC+EMwFkZ8CQtiEgOuzan9de1srRl0ziF+IRvbwguCuJpeqB1m+gZ/16ft0KM8iez/7OQsMr1I+Y3NpQQ==
- Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Jun Nakajima" <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>
- Delivery-date: Fri, 10 Dec 2021 10:30:35 +0000
- Ironport-data: A9a23:Jktfr68LMxP8flJwalBkDrUDfnmTJUtcMsCJ2f8bNWPcYEJGY0x3m 2cXWT+GOKyJYWTwf951a46w9B9UvZfdndVrTAI/rnw8E34SpcT7XtnIdU2Y0wF+jyHgoOCLy +1EN7Es+ehtFie0Si9AttENlFEkvU2ybuOU5NXsZ2YhFWeIdA970Ug6wrRg2tYx6TSEK1jlV e3a8pW31GCNg1aYAkpMg05UgEoy1BhakGpwUm0WPZinjneH/5UmJMt3yZWKB2n5WuFp8tuSH I4v+l0bElTxpH/BAvv9+lryn9ZjrrT6ZWBigVIOM0Sub4QrSoXfHc/XOdJFAXq7hQllkPgrl PZyure+bj4yZI+UsuFDSUNkPgxxaPguFL/veRBTsOSWxkzCNXDt3+9vHAc9OohwFuRfWD8Us 6ZCcXZUM07F17neLLGTE4GAguw5K8bmJsUHs2xIxjDFF/c2B5vERs0m4PcGhG5p1pweTZ4yY eIHUyNoYCznbSFjHWoVFZI8xOqrtFTgJmgwRFW9+vNsvjm7IBZK+LrwNpzTc9+DR8RQl26Zo H7L+yLyBRRyHN+S1zuDtG6tj+nnnCXnVYZUH7q9ntZoilCOwm0YCDUNSEC25/K+jyaWS99Zb kAZ5Ccqhawz71CwCMnwWQWip3yJtQJaXMBfe9DW8ynUlPCSuVzAQDFZEHgRM7TKqfPaWxR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wAV7BZmfbUQKTRekJgLcKqAeAJwTOssJbyK d8Y+xfJbTLfD1HZB/BkWqF+gAbsbu6zJw=
- Ironport-sdr: PVvDpYKFDm1kKgR9gGdApqbXRld1Z2KZVvHDbTRKu0NJegLud5AnxevKqtXLbwT/DX+cs8WbLY 5dyEtsSYb3OdZnmJbX10nyVAlgpW3Fw5SPZBjL0UR/zji4Xts2BWwwqNJR62s1peJSdwngjoeL oHyIt44QZNTZP7kIBlBCT7jld5qC5AMmoGde5v+OtO9ejIwrm99qiJ5T1BHDKQe5XC3Vz+lNjx X49jAN4l4xcMeVIecQH/SJkdUBZjDdeJKfjwwfTTNuSmcYA8pNUd01ZCiswdT8xj86HZbVL/UY T1V3J95vnelSR4/y6krx/g9l
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Nov 30, 2021 at 05:10:53PM +0100, Jan Beulich wrote:
> ept_free_entry() gets called after a flush - if one is necessary in the
> first place - was already issued. That behavior is similar to NPT, which
> also doesn't have any further flush in p2m_free_entry(). (Furthermore,
> the function being recursive, in case of recursiveness way too many
> flushes would have been issued.)
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
It's also worth noting that ept_free_entry doesn't modify the p2m
itself - it gets handed an EPT entry to free, which should have been
unhooked from the p2m previously by the caller, so it should be the
responsibility of the caller to perform any flushes.
Thanks, Roger.
|