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=-13.6 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 319F4C433E0 for ; Fri, 8 Jan 2021 16:57:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E12C423A00 for ; Fri, 8 Jan 2021 16:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728214AbhAHQ5K (ORCPT ); Fri, 8 Jan 2021 11:57:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbhAHQ5J (ORCPT ); Fri, 8 Jan 2021 11:57:09 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8073C061381 for ; Fri, 8 Jan 2021 08:56:29 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id e2so5933044plt.12 for ; Fri, 08 Jan 2021 08:56:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yNCtO/6yW3p5fzndxhSFUzUAHtK4RmnorBQLqNXZzV0=; b=mamyD7aVefxXHSc0LtlmG4t++ZIjOOj3QcVIfNoYoXib0ACTP6nMvBBGoLPkVxJZAD s3i+wJYwOl2/MhyDUjdRYFZ2X0CWKrubEbCny9IDjEpklBIW1CB7bNPkHp/j8EpSi2Sh G7f0CLyvv8ZZS4PulMkw77VZj5jGTMjqYhjX7z6TZTlplemr1umiN64Ga3xygEfriINH IUAh41ld264wccs6Jqk9LieoAAbCBhVvkcUrNhF5sjuubAeVZEuHVh23fzNCmJiKlxQJ exJKX9gSa3h/23/9QfVkfG7dto2KHz3CpdQeSuwPPS1uCh/hAIi5Vx+xrmDZXkOJp39/ ld/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yNCtO/6yW3p5fzndxhSFUzUAHtK4RmnorBQLqNXZzV0=; b=MKXRaE6n43SPA4LIYdJugToKHKplzjDN3rqGMy4VWMevAnvot81rPr+C/pf0KGDJNk ViUiJuOcEJQmuxmiw0kuIJqiC6wwvh0IetcWCmln3Lcuuyj5k4H2DNeoZITjf8kxm1Fs KElavuajpiGSLuJcuNlWeTP6ff28vuAWeLCvM8sJJ7SkK1k3jBAmVl0/zETREruESamN 9MIFfLad/fn6xy9pAASJawPC96afnqkINYdA5R/1fzPGbDJPhVpdbgPQq/i8gbgAbkAE oGzZvotjb/HJje5BDrkP+Q/BNeSpIx6sonPFRAU95F5QUbJc+TvAj7jukheJqBkRBz7n uOtQ== X-Gm-Message-State: AOAM532EuODGp2KPtsu1K+/ghsW3byyQbHpOX2gywcuMAY4Kq3WxcSEm 4MYFNVGl71Gi6zPtVYP5hZeFEA== X-Google-Smtp-Source: ABdhPJxFiTyxBb4nEiwal+GHVSCCZg27kwU0605PJ6wD3sxi9pXqBwPKaneArotjNmoKpZUdxoJztQ== X-Received: by 2002:a17:902:b7c3:b029:da:76bc:2aa9 with SMTP id v3-20020a170902b7c3b02900da76bc2aa9mr7860992plz.21.1610124988722; Fri, 08 Jan 2021 08:56:28 -0800 (PST) Received: from google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) by smtp.gmail.com with ESMTPSA id a19sm8781542pfi.130.2021.01.08.08.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 08:56:27 -0800 (PST) Date: Fri, 8 Jan 2021 08:56:20 -0800 From: Sean Christopherson To: Steve Rutherford Cc: Ashish Kalra , "Dr. David Alan Gilbert" , "Singh, Brijesh" , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Joerg Roedel , Borislav Petkov , "Lendacky, Thomas" , X86 ML , KVM list , LKML , "dovmurik@linux.vnet.ibm.com" , "tobin@ibm.com" , "jejb@linux.ibm.com" , "frankeh@us.ibm.com" , "Grimm, Jon" Subject: Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3 Message-ID: References: <20201218193956.GJ2956@work-vm> <20201218195641.GL2956@work-vm> <20210106230555.GA13999@ashkalra_ubuntu_server> <20210107170728.GA16965@ashkalra_ubuntu_server> <20210107184125.GA17388@ashkalra_ubuntu_server> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021, Steve Rutherford wrote: > Supporting merging of consecutive entries (or not) is less important > to get right since it doesn't change any of the APIs. If someone runs > into performance issues, they can loop back and fix this then. I'm > slightly concerned with the behavior for overlapping regions. I'm assuming merging entries will be a near-trivial effort once everything else is implemented, e.g. KVM will need to traverse the list to remove entries when address are converted back to private. Piling on merging functionality at that point should not be all that hard, especially if the list is sorted and entries are merged on insertion.