Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3800211pxj; Mon, 24 May 2021 15:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvAmEBoJHkXBbNd8FxV+ucvhMBZJTgUyfXWt8vJnIlOEdvAQmX6MvzGTzC+wcAiz38QTJw X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr25056017ejc.98.1621895161040; Mon, 24 May 2021 15:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621895161; cv=none; d=google.com; s=arc-20160816; b=H7RWyJoIFA/MvsDi567SsGtOHhgsugEJBUh22qrRLRBx+jkD4vhPURMmPsbP1vy76q 4zunVgEwz0VufgPfuoJ5sLvUnkPpsa81i5GluLbusxmu0GbzV5/16wT2e+W2onkoTWOm DwM7VQN9LjmMG/vRac/a9wzG/PNbnObjVjHmrJZUIitFUltpwxdzAMlgy9iMm3EX2700 Bv+GZlFqAxnA7QwHmU1N8907ErrcZ71FF76y7OCL81r0+SuAZifVL4SDIiY0k2tYRVRc Y/Tq3uxZBQBixh3sYW7lFFM7bp/rK7HETjnt2Q/WXoj8RSy/2keMGYFnZgtOXL9qWzL2 ZUOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GDIQ9fX7lLs/gbyWNEU6V6HWzQKvLmHPZGiIasFlfRM=; b=bQ9rskyDbtKhu/sR7IMWaPwMUEvAOW+PU71tk7dwzMRCm5GnLdzXQcZVUfVNk8xVF2 1ZRU+T2WYBgBZh8UAbc1Clj80jOASQaSKkCzwJEtg/fAZ9KJLVQw1NooAuT4U7iYfFIK +4epnLj6kQ7ATk31XAkb4GJ3dv7WCeNTbNXVTyL0DfXWueUja9nNP0mWMKfSgSzuPCTb agIFgJsAdc4vFdRNBAVO//Y7KnA+Xs3rcdh2ZVT9SDhqgvx29rOLl79QoMN+lG30D4eJ e+1kOaEO9aW9yqxArqT+uk5TNJcGDFOAh7C1aH2royjo+FiBYMSgEtbd1E8pvKNiaR9d 9KVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oXVIQseL; 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 fi25si14026093ejb.552.2021.05.24.15.25.38; Mon, 24 May 2021 15:26:01 -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=oXVIQseL; 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 S229586AbhEXWXL (ORCPT + 99 others); Mon, 24 May 2021 18:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhEXWXC (ORCPT ); Mon, 24 May 2021 18:23:02 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C93C061756 for ; Mon, 24 May 2021 15:21:32 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id n3-20020a9d74030000b029035e65d0a0b8so5332027otk.9 for ; Mon, 24 May 2021 15:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GDIQ9fX7lLs/gbyWNEU6V6HWzQKvLmHPZGiIasFlfRM=; b=oXVIQseLDoeABV/dp53lRn0giiPNZMb1SK5CpIaX74y8d+rhVsMtH4iNDvzelsXt3R MOphmVil/Eff+qNgr1AJf2R9XVwwslGTbNk4ZImOHcinCwCR/lQbNHoSex6Shrotkaqx UTRdl+JWDMyCfW4qxcBOfccdBPJm/3r3iM4M4PfqO3/z9nZf5YGj1a7+qA7nxXltUgpj CdP8U3jellankNmbaUC44RGRdP3EJo8OIzpfiB2nrzllD2u8PXBi3978tk9cD0cRNUM4 67MJHJmxgqiHetnAA1coICZMbqJABK+RHME5mkwNzAl3q0s7XdhFEzs4sbP4A4/A4zcw hz9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GDIQ9fX7lLs/gbyWNEU6V6HWzQKvLmHPZGiIasFlfRM=; b=n2z4OKafwUj7QWbbjtfhT72nsdJB5tRzLOES1v/GHskUNppBKj4k2GU0J8iNrXzh56 cJ/MyPFy8xmIrXz6B6VD2KzlEeTCJSF85hpcLuHcK+6svcziISKQmn37bkV3d91dJyAc GZrE7S3A8D+sl4fZs7NH3jZfmL6NefOqyVQ34ShiNUvU089KNQqAjaWcCvux2c/z+NQw iNtQKzLs9HIdb65WMl078s0cLRekBIrIspxN2NZ6V1d8w60W7gYZCOfx5tt8V+zbLLV1 pQeAohnlb4EdpBVxvwLxLNXlFxpga94U+j9IM8/lza0G5o7CcNc9KSraadPq/8zBJHvQ Cvpg== X-Gm-Message-State: AOAM533JWAMUI5cQHPdPhtBmsWLOF4xl/BvNrhG7/Z38QG/Mvt6GkdDy WbaG1md9Zjofq1LMXn9sUE4xAb8/EmDJo96dUgDfWQ== X-Received: by 2002:a9d:5786:: with SMTP id q6mr20800952oth.56.1621894891564; Mon, 24 May 2021 15:21:31 -0700 (PDT) MIME-Version: 1.0 References: <20210424004645.3950558-1-seanjc@google.com> <20210424004645.3950558-43-seanjc@google.com> In-Reply-To: From: Jim Mattson Date: Mon, 24 May 2021 15:21:20 -0700 Message-ID: Subject: Re: [PATCH 42/43] KVM: VMX: Drop VMWRITEs to zero fields at vCPU RESET To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm list , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 2:15 PM Paolo Bonzini wrote: > > On 24/04/21 02:46, Sean Christopherson wrote: > > Don't waste time writing zeros via VMWRITE during vCPU RESET, the VMCS > > is zero allocated. > > Is this guaranteed to be valid, or could the VMCS in principle use some > weird encoding? (Like it does for the access rights, even though this > does not matter for this patch). I see nothing in the SDM that would indicate that zero must be encoded as zero.