Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp890079lqt; Fri, 7 Jun 2024 01:29:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLaOgMGAs2MI8dfxUQhJmwdTLGFFyTWzhqsxqrTT4/N4s/9vHiNgU27HjW+HiwBx6R+H7jlSydKDTvsb+1BqpkugkPKwENDu5ygfkRcQ== X-Google-Smtp-Source: AGHT+IFKNmhPFP7R5GztCBxxMrUOxLwyGQXA4BYGngtoYj2ExlSxGlsmPU0/QeEKooMKLEutoFFj X-Received: by 2002:a17:902:d2d2:b0:1f4:808e:9f6e with SMTP id d9443c01a7336-1f6d019f1dbmr27420885ad.21.1717748962242; Fri, 07 Jun 2024 01:29:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717748962; cv=pass; d=google.com; s=arc-20160816; b=o1Ow8bXZkMwjBbSj0WI7lWJdw3aUJUFK+v2qR6eccP1SmQgW+TU6H2CNx0okt8AaRQ jCzQ+3gmUX1mXJ5/P6HxKimSB+S15k7Zskb5pv8T5QHy/3xp+HwxHooWsaL1hKVtm3Gv rbIZ62OF7lLcwjjHWIlMKfB7hM1wIflbIOlxcdl81HLm5YLA4wwrRL/1AR5ixd7aPx13 gnt2JR9XX/8NOQ0l0s9u6h6d+oSMVY8otlhk+3408lJer27Tqfd/ALcFLxikHLoNyxXi Knx7QRvDqpJPuWabPMver6DwrFyFXQabF8k5xZYsnW3R2O7ZV/zN2HHYRGZcBUYDrgte IOfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=EW7bKZ5WQXahHLhRzPz5GDqoOvjasCZdis6BWjFnuIs=; fh=GJG/NU90aTRpuRBcwB0FPtqzaFtxvRlLpXbiFDYNmt0=; b=CFjRkDELyjVVdvNih7OzKw8O46dsKHP6YqC73k9kUn/z13Y4XlzYyq6p+o/2cHAACO fIxP0xqrmC9op5l1YbhhkwH15HILm53kz5LpyIItJX6D8RQeo7pL7bqkXj/eB4r6WJJc To4xXL5Mf3g5lc3dfRQwBlQlzxSoIqJlgDl2R4MAVfNsvVEdSW87dAGpNC3aMa/6nIBi mSutLyt06Oupgvp1ORz7cdB3Fd9fLJu2Ue/vXjEb231/Xp53WfIkywpXihB0YdG8+EWA wJBW+KeGT+l4qaqd8pl73lZnKiVavNc53n9OzQZ8rEIVtYz+5bYQuLCTbCkCud0BRSaO tDlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bhe9/DLi"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-205599-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d5ed4si25537785ad.228.2024.06.07.01.29.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205599-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bhe9/DLi"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-205599-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 79E42B22CE5 for ; Fri, 7 Jun 2024 08:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52CB115B0FD; Fri, 7 Jun 2024 08:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bhe9/DLi" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A91015AAC7 for ; Fri, 7 Jun 2024 08:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717748867; cv=none; b=gii+xwzYespTfPDleF8oGKDdCTWvxBhGDhOqfns7960q1gIQEXp9SI4Wj3u+gcXuq67CcAO9HgHX8PVkR7v2Fg/ORrRMbmeSZcbWbMyZh3i7fesgSGHnBlpX77MeCUmChFaGco9ezNPvnx8ON7z7/bjM9M8ZtDq3WOf8JAWn2BU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717748867; c=relaxed/simple; bh=EW7bKZ5WQXahHLhRzPz5GDqoOvjasCZdis6BWjFnuIs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Vjj2qYej/cR9SI86K48Y2pzCOHKlCSYC5P3xrSOjrA1nunJhsLUOjKB9Jjd2K7F1Rr+RhN8l582Tu6jRhIdhz1dDGhZk9L4Zo0mcAnUGTtjU8cPgM0MB44cvB8tH6fXat+/MrOrLMvm/Yb5bjCvROVJrdxmT3uD7sZFSSVwafq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bhe9/DLi; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717748865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EW7bKZ5WQXahHLhRzPz5GDqoOvjasCZdis6BWjFnuIs=; b=bhe9/DLiCi3F0p1/ePBpVh+BvPV88JnocW8IIBD1hiaX5UmvcXnH/Thb5su/6p+raHlcsw w9hpXDBpiIERNJjApSnwrbrwEY6OwLXriJxWsGoM4aoZ+fqAZDJXMnxcFGAtK+8GZVgxMZ Usf54e2o9eScdwqeGY965oRDDqDgzdM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-541-c09q79t7N9-sYkH67fJHRg-1; Fri, 07 Jun 2024 04:27:43 -0400 X-MC-Unique: c09q79t7N9-sYkH67fJHRg-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-35858762c31so1111141f8f.0 for ; Fri, 07 Jun 2024 01:27:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717748862; x=1718353662; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EW7bKZ5WQXahHLhRzPz5GDqoOvjasCZdis6BWjFnuIs=; b=w8g9lpfPzIp26j3tdv8BkgRzQIjH5HpgSL92qsuub9fpXKIomo6uq9LTjs51dI3W1R xszfbz6ehwoad2NN7+SRgvACSCjJqklMrlEQWuyUjBGrRY23whk7kRb/iNZeu+rJa9Ob woNx5bXmQ+L/2lOZ71U1lylXMe7Bqp6+0FnFd/4+deijIhZ95MjROhje2kux8kUwJNFN R1Nskdu1Y/86rsqgTZmbM8oyjc+1Nf/LL/r3DFvwokPYjnlTu2/Qbz0bfluFKbXx6KPq TZLh2V0eka3+hoaRoPVg9CKymWTmiyNYVd3PwtrO+7Y5bEyY4b4EoMXOW55UFfuZKJ33 qjPg== X-Forwarded-Encrypted: i=1; AJvYcCW5JnFHcZoByfZX3dG19YsyRo+ZpqLFckqkpWpJTSJAGZsCnjzP+FXbgqQPXmFUMBRObbCOHoAUdj99sHcO2jGdxkRMnBu2yzF+s+JY X-Gm-Message-State: AOJu0YxUInYdbVblvndPN/qxzRCgGMKCAiYcwj9NkaYW37eCjTMlr3B6 3P8WhMLifrijN+iFvtJoxvUeAAK/wi981mgM0+s89gBNccuGpqH/od6WwRUPzIVvzXhAHdadJK9 TYWRY2qx2Lag8i4CIjIkFeL6jg5JQEMabjCTOrBWKpSpPMk8oSYz5L7xIp2o080ehqHn2j4l0U2 oVipXA70EnEOg6jgMdIbH3A8HWPUGFTBda8qx1 X-Received: by 2002:a5d:4cd0:0:b0:35f:d07:d34 with SMTP id ffacd0b85a97d-35f0d070e32mr118695f8f.27.1717748862052; Fri, 07 Jun 2024 01:27:42 -0700 (PDT) X-Received: by 2002:a5d:4cd0:0:b0:35f:d07:d34 with SMTP id ffacd0b85a97d-35f0d070e32mr118683f8f.27.1717748861729; Fri, 07 Jun 2024 01:27:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530210714.364118-1-rick.p.edgecombe@intel.com> <20240530210714.364118-10-rick.p.edgecombe@intel.com> <643a2ae1c0e894a4dd623dfe8c8f7ca5eb897ce6.camel@intel.com> In-Reply-To: <643a2ae1c0e894a4dd623dfe8c8f7ca5eb897ce6.camel@intel.com> From: Paolo Bonzini Date: Fri, 7 Jun 2024 10:27:29 +0200 Message-ID: Subject: Re: [PATCH v2 09/15] KVM: x86/tdp_mmu: Support mirror root for TDP MMU To: "Edgecombe, Rick P" Cc: "kvm@vger.kernel.org" , "seanjc@google.com" , "Huang, Kai" , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "Zhao, Yan Y" , "Aktas, Erdem" , "dmatlack@google.com" , "Yamahata, Isaku" , "isaku.yamahata@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 12:01=E2=80=AFAM Edgecombe, Rick P wrote: > > On Thu, 2024-05-30 at 14:07 -0700, Rick Edgecombe wrote: > > > > Update handle_changed_spte() to take a role. Use this for a KVM_BUG_ON(= ). > > I'm wondering if the KVM_BUG_ON() is not worth the cost to the diffstat. Agreed, it seems like pointless churn. Paolo