Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3989291pxy; Tue, 4 May 2021 14:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgHtjdZiHpXUZ5DdwvpO05TjCZ7c+VhG49IrkoBRbCDBfUSwkAXK6aaWhv+pRvy/oS9SOB X-Received: by 2002:a17:90a:d341:: with SMTP id i1mr7361992pjx.184.1620165548223; Tue, 04 May 2021 14:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620165548; cv=none; d=google.com; s=arc-20160816; b=j2RhP/SA8uYtui1gExCaAZMMNthXSupt/dwLI3dZ6hLN5cBaAdS9UyWA1NLFIAHv+R Jl0mAaIO0q0rKzz83b3Jflh0i+6g0/JrVkyoxK1c5MBw2I/lEnmUqJAR/dOeE6Gr3x/k QHJDIQ8ipuQf3qUoN5GLQN+wZjCWbKzQBhkLTYUE/pIU21pH+LFbsenShvU2HD1Y4exs Y2r7ytJvH0r7jRd/ia7pBCjA0GBNno6f0WKKmVJzNJOieWl7HUDBcbD/ulQwpakl59HG xIBfouxigGAA/USN4DzFHEs+Qk2u1PNUjBAChIBeH4f+n8GrFbz0nw69oChCtPnKa03Z sBCQ== 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=C/Cj5I1mlYbC1jzOSOOF25th5Igc+hh3GZ0g8FBcqEI=; b=pjugCFWj3FVPOvM9MFmcxVjyM0Qm8BdQ9jTQkB0QFFtyq0ayNOMfRCZRqQwFf7Mg2X Fc84LoXcAohLsYZpz3uZY00jun4o88GJjIstOLZVMMYQkeMNKfDH0pnjfR92flpAcUxm 5Hy60U8/ZiCFFhq181EEyDO1jo1EcZ4KhFPbkCG/SveRTc/mj0uQ0ClLoiffe5F3Z+ac Vw3L+z2Sv43YjhC5YqCV+Q6x6y1orpARfY7v0pMcf+Tc07HlWmDhIpn7HfDbmOK6hYHo nYretzZ1eEx3OSEJlSobEDl7SfVgjEfNdxnPreclS+ubGg4dciCi5ve3KDK9JNcgyeM7 ZHzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="iJK5pVK/"; 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 p2si4355027plp.119.2021.05.04.14.58.54; Tue, 04 May 2021 14:59:08 -0700 (PDT) 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="iJK5pVK/"; 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 S232835AbhEDUeu (ORCPT + 99 others); Tue, 4 May 2021 16:34:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231786AbhEDUet (ORCPT ); Tue, 4 May 2021 16:34:49 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C52C06174A for ; Tue, 4 May 2021 13:33:54 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id h11so398611pfn.0 for ; Tue, 04 May 2021 13:33:54 -0700 (PDT) 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=C/Cj5I1mlYbC1jzOSOOF25th5Igc+hh3GZ0g8FBcqEI=; b=iJK5pVK/mFTAX9dUEyWr8HZrmhDgXZDtAgyBPKUHMH/tfsSqh7lV8WkaqvRkVAayYJ dMIWinGEclPrkiRLO5JznMDfhYa4SPPNcgv3nwymb8py/lcXiUTUqh0JUiobhbBfyUBw gQXwAeCxMotR5IXMRTtcTZF13yvlBcqS1IeFgBTDZ1Hf8zcInRNc7vx1LKBnU3OKgMUW /D6CW0Xdhkg09ACm8LsbGTZHsDR28PW/8DPcEyqiShwOdjIsDZfkO9wSvvvrE3WOCS5N D/XA11bS2yDyGl9Rum8ifYdKmgwhh6iHHSBHmSSeyTa2P8MCaVhgWFhAfPntNpUMwSP/ 9k7A== 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=C/Cj5I1mlYbC1jzOSOOF25th5Igc+hh3GZ0g8FBcqEI=; b=ogSYWujxHtiJUbKfy0tgPjzq3HLYS+ow+Rlml/n9Jj/7Fk5fzucXikFNmJRBXQEeLE JCDOsaG8LIcLYjcw/5EFEqDRipOShKHnTJCaKRSa+bqKvfg3PZnluo5wLhSjvEhSD5Tc Wbxd4QgaIyZQAXYxNbL7gPFMcVkfPUfRsvrzzigqLGYxRZ9UNSonfX32j92kly4H+2JM OFxjAJxodAQSj3XBaHhxNlBbDwxEmz/jEyKtkCW+79EEoKQabw1ZwGoHcnmWDM1m7qs7 9oCu4hazPCDhHd8V1AO+GyPKMaceA4bqh2lPXuN+g2CDEAXYCtnKpzMcb3xofnWMOud6 z0yQ== X-Gm-Message-State: AOAM530n4wn6/aGVKKertCWWT7FdO/KZfEv7zGhbnrKeTRZ09Is1WYus FXG+RPKJtWhLXgfn5CmojNO62A== X-Received: by 2002:a17:90b:33c4:: with SMTP id lk4mr7487384pjb.225.1620160434179; Tue, 04 May 2021 13:33:54 -0700 (PDT) Received: from google.com (240.111.247.35.bc.googleusercontent.com. [35.247.111.240]) by smtp.gmail.com with ESMTPSA id k14sm15371273pjg.0.2021.05.04.13.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 13:33:53 -0700 (PDT) Date: Tue, 4 May 2021 20:33:49 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, srutherford@google.com, joro@8bytes.org, brijesh.singh@amd.com, thomas.lendacky@amd.com, ashish.kalra@amd.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , x86@kernel.org Subject: Re: [PATCH v3 2/2] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall Message-ID: References: <20210429104707.203055-1-pbonzini@redhat.com> <20210429104707.203055-3-pbonzini@redhat.com> 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 Tue, May 04, 2021, Paolo Bonzini wrote: > On 04/05/21 19:09, Sean Christopherson wrote: > > On Sat, May 01, 2021, Paolo Bonzini wrote: > > > - make it completely independent from migration, i.e. it's just a facet of > > > MSR_KVM_PAGE_ENC_STATUS saying whether the bitmap is up-to-date. It would > > > use CPUID bit as the encryption status bitmap and have no code at all in KVM > > > (userspace needs to set up the filter and implement everything). > > > > If the bit is purely a "page encryption status is up-to-date", what about > > overloading KVM_HC_PAGE_ENC_STATUS to handle that status update as well? That > > would eliminate my biggest complaint about having what is effectively a single > > paravirt feature split into two separate, but intertwined chunks of ABI. > > It's true that they are intertwined, but I dislike not having a way to read > the current state. From the guest?