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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C419C433ED for ; Fri, 7 May 2021 11:28:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F80961458 for ; Fri, 7 May 2021 11:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233900AbhEGL3c (ORCPT ); Fri, 7 May 2021 07:29:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:43976 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233369AbhEGL3b (ORCPT ); Fri, 7 May 2021 07:29:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 287B9B14A; Fri, 7 May 2021 11:28:30 +0000 (UTC) Subject: Re: [PATCH Part2 RFC v2 08/37] x86/sev: Split the physmap when adding the page in RMP table To: Dave Hansen , Andy Lutomirski , Brijesh Singh Cc: X86 ML , LKML , kvm list , Thomas Gleixner , Borislav Petkov , Joerg Roedel , Tom Lendacky , Paolo Bonzini , Ingo Molnar , David Rientjes , Sean Christopherson , Peter Zijlstra , "H. Peter Anvin" , Tony Luck References: <20210430123822.13825-1-brijesh.singh@amd.com> <20210430123822.13825-9-brijesh.singh@amd.com> From: Vlastimil Babka Message-ID: <5c07ff2c-efb4-5f7b-0ad6-d52d985e5c46@suse.cz> Date: Fri, 7 May 2021 13:28:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 5/3/21 5:41 PM, Dave Hansen wrote: > On 5/3/21 8:15 AM, Andy Lutomirski wrote: >> How much performance do we get back if we add a requirement that only >> 2M pages (hugetlbfs, etc) may be used for private guest memory? > > Are you generally asking about the performance overhead of using 4k > pages instead of 2M for the direct map? We looked at that recently and > pulled together some data: IIUC using 2M for private guest memory wouldn't be itself sufficient, as the guest would also have to share pages with host with 2MB granularity, and that might be too restrictive? >> https://lore.kernel.org/lkml/213b4567-46ce-f116-9cdf-bbd0c884eb3c@linux.intel.com/ >