From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ABE3C61DA3 for ; Tue, 21 Feb 2023 04:38:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CC796B0073; Mon, 20 Feb 2023 23:38:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 17E386B0074; Mon, 20 Feb 2023 23:38:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 044356B0075; Mon, 20 Feb 2023 23:38:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E88456B0073 for ; Mon, 20 Feb 2023 23:38:26 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B5976C0B98 for ; Tue, 21 Feb 2023 04:38:26 +0000 (UTC) X-FDA: 80490042612.06.3D7CE76 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by imf03.hostedemail.com (Postfix) with ESMTP id D4CD420005 for ; Tue, 21 Feb 2023 04:38:23 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="DxMEk/L9"; spf=pass (imf03.hostedemail.com: domain of zyjzyj2000@gmail.com designates 209.85.208.48 as permitted sender) smtp.mailfrom=zyjzyj2000@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676954303; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=94JvtR46Mi87rpxF0PyOmVdhKxhDvt/lbSfMj/Tq46g=; b=EZSZQuKKiQL/JeUbpPDxVVZ9zkmWPBPKog2B83S8aucDUPnYODFDRZqDPDpra+/YXEOoXm CXqyhfZolthDtZ1wCwK0YefL1d1hhbykbtJYSKivMlpVAZTpRNRSRKe3DTjX9Y6pguIhY2 +k+8eyXU348n4g1GIF7MlJhn/ZbApys= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="DxMEk/L9"; spf=pass (imf03.hostedemail.com: domain of zyjzyj2000@gmail.com designates 209.85.208.48 as permitted sender) smtp.mailfrom=zyjzyj2000@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676954303; a=rsa-sha256; cv=none; b=LqQ1JZVgfHDOW7C8i/qlRbR1YaFOM9y/bX6dAVQKw0KJ2R6zaKXRnf9JHwgMlzinwCWBpQ 4kpUSeNTFuY3kU7caQcVT+UuDuydSnT94Md0b0kkLiHVOMewNho0HlDpBiuJD/JAE+xuIG 5aZDnpXZbIBufrG0NiPe+LbYFPClJ+k= Received: by mail-ed1-f48.google.com with SMTP id o12so12606447edb.9 for ; Mon, 20 Feb 2023 20:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=94JvtR46Mi87rpxF0PyOmVdhKxhDvt/lbSfMj/Tq46g=; b=DxMEk/L9KpWTanbpMq4WSmR/ey2/nPXp1qnzwZP5AdLCv1ogfcV5HVkjGFXDiGvxsh E/QWP4+9EM8yQYD9N5I1xO/31YIyDc2qhcmmi0359DHV0EW1RtsnWF1xEWhcjzIdFOw1 tUGGVYx5qkydh4Vc3XJeYjzPZUl7vjp4tYQeGOUgZibbwIbAcyQz4bwu+80C588+9nfX GLlignFcXBvTVt1Z4zbM+YuJ9+7qUPFlZ9PWG//x7HpnBXUnZAjDH2u+D+E3Tts5kWhG lJxFpXO+jTKZYm016uWhDzv9SomwUE0tZqjMihFQpCNRGIxYUAOSDt9Jq2CRumrk0oVv 2Cmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=94JvtR46Mi87rpxF0PyOmVdhKxhDvt/lbSfMj/Tq46g=; b=mcaAbmcblQE39vpXIjfaI8nwD9mPw60T5yIGgQTMZDCzgscrOO5MjxrejbmO0brJ1A q2sNn5qXlKzShpMfa6rKzhsO77iFcYTKNl9K1+EKSAjQMkGk4NrGzwcOgB3fmVsmaDsy 1qtJmpoCXP08YP1rLqkG2kthQi82l6n08yo/x1NWH7a4rCec483KUQhqsiU0an2cFBX3 wVuyKR1mE4pXuZ80gfO4ZjUqwxpj9K4/rJPmY109h3CLPkXLgeRtvWSXnYKKP1XbSVRo ovRJom+dx0WGVnUQncliq13Bj48TlsR825lPRjq21Y8pWR2mjQvAUgHTcSfLF+Y7X7bk X1GQ== X-Gm-Message-State: AO0yUKXBEr16W1aeDu3o6lZcb6glKgcRcBqZDMFKJJ/DZSkeWFYfvGKX Oze/zzCIzuv0lW+ZPYm2M/X8EYsc2xgshd6QCuM= X-Google-Smtp-Source: AK7set+X9CdXHkeYersdAOsv7vD3zP58IGbucNoYDlyycz9w2D1QuTj6EWNg/EBcqO/i+gnVVdAwSFUNOcdBtCXyZFY= X-Received: by 2002:a17:906:1347:b0:8b1:2fff:8689 with SMTP id x7-20020a170906134700b008b12fff8689mr5740203ejb.6.1676954302064; Mon, 20 Feb 2023 20:38:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zhu Yanjun Date: Tue, 21 Feb 2023 12:38:09 +0800 Message-ID: Subject: Re: [LSF/MM/BPF TOPIC] Virtual Machine Memory Passthrough To: Pasha Tatashin Cc: lsf-pc@lists.linux-foundation.org, linux-mm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: D4CD420005 X-Stat-Signature: fhwr1ta1ircjp9gch41pir3b5a8ik83y X-Rspam-User: X-HE-Tag: 1676954303-984672 X-HE-Meta: U2FsdGVkX19nf+HBmgqAxDtdz+LPKjy/HwS//G0zzTQSChpdeXWi8YgPwTuTAE9WtwhnO87g2zKoQj5Jg7aAW8YftEMIp+ZfmhJB2zLoccrO0syKFiVQbg0dRcFQa0g8lmY9iISMfZxoDxi9lDMMTurL0QSP0nWmz6DxmszC7t1KN1Y+cN2S/9MqB7fRp/noAmh1xCKZUgzldBlwzdM0YGZgZxogXfjlzCuxmXuEVeNV6vjpQcOMsvCmiWJIsmGgQ2MaEmf+PPcY1JiRu9qg+Dx/ARpTKS/MSn2zQf40P/yl6A2SvbHD+1US/r6NbaclVLcI0Rx287vdg5lm1Bl3F7reLcJgaNHAlFoZ6EXAWWm35WvRWZu9w0JNpekSv35Nx79IlIn1Av+gaxectUjoyn8VEp0Nuo9P5lkheBVnZRZ8idtdGIDiKVGrN+17JS4VvrlUeq78cer+ElnivggxiObmPL87o7BJuCNkt3gW4HpJYMv9w0/ZqltlSGHsso0Q7HcAAFn7cyBc/9vwhQknSjVyrAiHSCCOtiYv8w1PM7cljWF4Ju47SCd9HDh4BArSDyP+tAA+kZw1Oh+u8bQe71fpfGUcUHi+AKmtb3hmA2NBLLnY5VT7y3perGSJZhx5hT7yBhf6DlVBzd2TkkwKpgSQT1zgnz2ETK1IGCb7522YZJlbtFO7206SlJx9y/CY/KOuiOz+B6sOHd19GN/5587r00oo9jvYrA1COh3rnn7Z1mIXrQmVRBhwXBsQl4RGPv/ePUiu9af6qgppkrd1tlcdZIX5hoCPiTV9fyUuCIStB1VT/y+jc4UvJityhx38UNrfZ9IVph++7EFzK01DzHrHulrKBetaUgawwAof4RXkEMnnC9WZ3gXcQ2U9WEngvQnXii2zcUiY8tK/qL4R+1XqtFnAPin73mdaEbrys7dVv5cWd4OXr0vQwl2xYrVcN1hBB/ZSZkcsxc/g9mv k/865PAq rPWKg+LPnE2uUITKRjK5hsUNUGn1bT+bKGMOUTX4sZWfHzgmIkikcPDaUYAWM9VkT+cBdEiTExfg1o3uKPU2nHnKRxswRC9fMW/qYUXw53kbkWFz1c1k63rEX9asw3sqWUhIYVOVhR7g0qwuJfgIL0e/2zTPS7heedaIynH6CIBW7S2HFC+g/vB7Rl9rfMk+fCrTe0UyXYNjic3SHAg5hz1R4KUNn5EgDDyLj5yzFW6rpUqhsLL4xhk3RTFtlydovx4bym1lpqghCYNwv4lZWSMtt4c8ydJukIc/6TiwvVj+OiHOD2WD+poxggIiNYRWG+iEfs0p+6mJRczzVba2ChA2j8V/kj32vWFBADzl1HGUhq5Y2kFMxywutKCQP1xBQdBdRHKmRHLytOocQeLw/OAJD+WEwRZfdWzbW1/Szdg0C+ds= X-Bogosity: Ham, tests=bogofilter, spamicity=0.051018, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Feb 21, 2023 at 12:32 AM Pasha Tatashin wrote: > > Hello, > > As a part of an ongoing work of replacing some containerized work load > with virtual machines within Google, I have worked on making the > memory translations faster. > > I would like to propose the following topic for this year's LSF/MM/BPF: > > Discuss a set of techniques that can improve the guest performance, > memory footprint overhead, observability, and manageability of virtual > machines by hypervirtualizing the guest memory to the extreme. The end > goal is to allow very lightweight virtual machines to be closer in > performance to the containers. > > The following items are going to be discussed in this topic: > - Reducing the cost of SLAT page table translations. Intel's implementation of SLAT, known as Extended Page Table (EPT), was introduced in the Nehalem microarchitecture found in certain Core i7, Core i5, and Core i3 processors. ARM's virtualization extensions support SLAT, known as Stage-2 page-tables provided by a Stage-2 MMU. The guest uses the Stage-1 MMU. Support was added as optional in the ARMv7ve architecture and is also supported in the ARMv8 (32-bit and 64-bit) architectures. I am interested in this. Hope we have a better solution to reduce the cost of SLAT. > - Reducing the memory footprint overhead. > - Reducing the memory management overhead. > - Increasing the observability of guest memory. >