Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp448237pxb; Fri, 8 Jan 2021 08:59:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpGydKsRBlKH81sAu2RxkzTvvKiBGiTwDKbtEoFOWzON2+xhWvDLC/weUyra6tt1mxHexM X-Received: by 2002:aa7:dd17:: with SMTP id i23mr5851593edv.14.1610125170864; Fri, 08 Jan 2021 08:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610125170; cv=none; d=google.com; s=arc-20160816; b=sz0K6i6QB5cRcOqSbQS6h04CuLlj3C5HCXKCWvBgX1vjj1m8cF3255oEMlQkNZhIbn ULhSKA6uBlfj2XfbwoF2n2RhLxCTE/sj8PylwZZ6uJ7599tPBTDQyZfy85wULHG9Sbma +ShQYoZ3qo34pMav3jjfKXtedodyKrlANlx1Y4P20Migno50kKQjOuTz6sie18qvhO2q 4spSrMLe/L/epcbehF1TzKoRWKygE+QuR7E/koRLwfXAKkd1Jy2JJdsvfNufPNK7496S 6ACXIK4CF7bNkRgN7WBKlb3S10wtP6p8X964ECzbK2h2DEr7XO8UkIBzB6prZqEFk/up Jo0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yNCtO/6yW3p5fzndxhSFUzUAHtK4RmnorBQLqNXZzV0=; b=fbQjdv73wiuUJS/b2+FknQ+9RbTRi4TtTJu9UOJu6NvhJJmePE4uXTk1Nbhrw6UbOi hIoL5ZioJ3N05u7iYnzBBbhQ/1jdCZXaLu5hQ3UPJ1jwGeoPttKtn2VbGE8petEXdH/E JIyXoo07Ha8lgsmYa4VayupFA3dr6o37uun/8HJE9jE1lYIlk4xYIfuOiy7/qGUdp5t+ RhnVYaohwV17d+YIUH408FLzSVesMgRv7ypgMZNnvl4Q1ibFtBJ8wFc3Jb0XQrMFnTvY 06ZaloNqhiMMZz5737h/ovVwib4ndy/LnJyDh3R96RpQnv4PqANuQRFMgw03d+GfHwU0 zxKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mamyD7aV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si3794234edq.20.2021.01.08.08.59.06; Fri, 08 Jan 2021 08:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mamyD7aV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbhAHQ5K (ORCPT + 99 others); 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-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.