Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp117077lqg; Fri, 26 Apr 2024 10:13:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxB6yXINm3pRZTGK8ZSuNzljbVRIGQ5ORuqaoXWzilOhIrMnb6oGAnZkqM1mc/i2ZdIbB3+XZvoYDQNNUfiddb0sV8QRCCF+qgiaSKmw== X-Google-Smtp-Source: AGHT+IFMiRLWo3pwXvXe38bkAVuENhzZz9KEPwsp0xsi+gier2MKJWjEj7Zg1X5NIWlFv+oQMr1Z X-Received: by 2002:a05:6102:4c02:b0:47c:164b:ebf2 with SMTP id jy2-20020a0561024c0200b0047c164bebf2mr3973842vsb.0.1714151609127; Fri, 26 Apr 2024 10:13:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714151609; cv=pass; d=google.com; s=arc-20160816; b=MPpgdgw3mwvI0IxwGRpJxcZo4za2vMtqQDxXltD63J3c4EAs+Zg5tAhX1RRIla7ygm 4Y7wIQCCpU8OHbA5vXbXlDafsTLZmhsmyHqE803bMShIWJvL8ChqLlyW1Yf9PdhJsCEe P2xzGFW6wiK7vUh1dlIdx9qwq2l4/BaInPBtCZ3U0lwQCs3rHzgQ4gMLxjTdiIribKXv 5PO1wsZlLGUVwvuJyr2zuxDPZ1OqS5p35yxI0QnuAWmUHN35TAFcBgu///JQz5hI1kCP GKFB0FS25C8pbBZLxt9VL83ZpSz87bD9/aGj0A7hkTCPLQYkpcymfWLY2e6G5MrXFVfT OT7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=JOrByw+hBEQiYoKJcZ35QP+UwdL6g3Dsbjr56jvVdP8=; fh=H7bhqhmkOpIrPCOZlSup0E8PAaNmc4/5VNs2qPP3TWo=; b=FqhJ2ZOfoa08RCUOjDEzz6Et6LoS2z5LDjzOGyhgis9pOizW8US2vygNiB9ARo+D8N VBBVSikz88kigGadaVjY6daFpBCdosuPfTT55DK0ZN6gQelSP+/PTilOebQ4wgB3ND5r Dft7Sd6ZCCs/3Dnj7+xlXwCX04LvzOAVciTzs4V4HberTOLFLumKcCSs5mEZConJK/hj 2KeWlR6CdYS/er81hdh82iZJfdPxD62c5LF433GWV5Lp4v1Sw1RDOeWJJh1P9ReRlKQY K8qoNTV9Ii8Zgv8IZOd8F0qyqNTbMKqWNva+4LIH7+C9NS87mh2QPA9Butg4JG3Lfo0i 1aKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=QqRYZuW0; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-160452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j26-20020a0561023e1a00b0047be5a435b9si2940563vsv.200.2024.04.26.10.13.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=QqRYZuW0; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-160452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D2A291C2200A for ; Fri, 26 Apr 2024 17:13:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 013CB15CD58; Fri, 26 Apr 2024 17:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QqRYZuW0" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEF24148842 for ; Fri, 26 Apr 2024 17:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714151600; cv=none; b=tY18H6062xzscQCuBYrBlqejd82rc3KNpFdd7D3TvPhHyXoojD45tJnMQ4dyby2SqD1rryaq7+78n0AdJNjwsW17UMXm27K0smzs1c8VLiysmzfl+n2fML5amOd2XU/bzxIrzfhNP79x3B6xOCAEdgyuM/SeVM52MdC9E0AV8oU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714151600; c=relaxed/simple; bh=u3LNJIRVZPB3ckJD/7UCx9uJod+keupn/nmB8Mtdils=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=BhOgP+uCazwwfsYUmRHoZz3u7GvnivABZiMAI3bwB8wSbPLwaJPAXExwfeDP7HW7fVyW1k4V5jA+pYkMCrCxzRINjEU/qpW2MRGYb0iQGMa2hKU95/94zA4OO4p+xEl3zL4fafjLtBsJFMfiFbNvHfNCIltXSOMk3BCghRIjrQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=QqRYZuW0; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-61b7a24b843so38696997b3.1 for ; Fri, 26 Apr 2024 10:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714151598; x=1714756398; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=JOrByw+hBEQiYoKJcZ35QP+UwdL6g3Dsbjr56jvVdP8=; b=QqRYZuW0CYZ2i4dMPtIER4VFYt7LBQPxs6PD9/lb2Pu6RIGCClxrRcYEE8i2sjxUBW QUn0ER0L0bnoYYVkxDSgocqswfMGABN/53XFcMItMarfaI6odZTLjhaq+kGQSk7rJsrW /dPCxY4UWYIG526c30U0mqLTQEa8odOhEkNASMVBnX76ussRCBb1f8SSgMf9RDJX/qDH Ij/BDRKqLiXipB8PHE+l+PNxp++87E0rKYracqz8bvoR7jIig9omnySMUvyQ1SyGWqSU KDRhW5euys/K70fonJ8vSj3GmMmlTxnEL9g4TR9qtFFPHvfg6N+iRAtLcgFYvpx0BCrN Vmow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714151598; x=1714756398; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=JOrByw+hBEQiYoKJcZ35QP+UwdL6g3Dsbjr56jvVdP8=; b=I0cLmRzCoWXY+Ca3LFSMoqfj7QcMS1u0/P6hOHCgbutwam4+5wZovQ+EwQ5+HHSPVs K8BsWP/pdJf/FrrBIKUFRPT4XL2ZWn//+cxXdGWzaAipc7DPyMhZNZeCPBfUu/ak0G/E vYzmlaelO1zxTMe1XbWQ3hsxcxmRrsSvo2Nu3j73vHFAaK2JAXzv60eYsmbbsQvsn5n2 9YLCK3RSzRq1A/gfNNCCn41h7UJpFWuFUp8jRBPrUQLI00+Doi1BUWc2MW5sXM2oqVqa MgyuyyWtZgbmCvCVNSz0U/aabIKSLeGZh7vWKdzrQsGdAbB84jaagQ2BsFyigB1weuvu N24A== X-Forwarded-Encrypted: i=1; AJvYcCXFZA8mQ3gtjbqIa4BbT8GdvtDnJGQnW4rKoar4J6zJ2jJc6lTBL0L/PVd89BWPyitlslEMtGVUxyAbGwT8pWrkMgDxvzzMx/a/FNbc X-Gm-Message-State: AOJu0YyDhj6qocq4k0mFTdPvQOfIvDsyAenElkePsGrpS5dQmzRfbxdq txwrjNvYjiUsvbevYXOpk7ZjUHpVP62Dpbc2FpNJR3pO928yIXco+eBUgtVSzn+puP+TViNVOmE DaQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a0d:cc0a:0:b0:61a:bdb1:896e with SMTP id o10-20020a0dcc0a000000b0061abdb1896emr57616ywd.5.1714151597859; Fri, 26 Apr 2024 10:13:17 -0700 (PDT) Date: Fri, 26 Apr 2024 10:13:16 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240313171428.GK935089@ls.amr.corp.intel.com> <52bc2c174c06f94a44e3b8b455c0830be9965cdf.camel@intel.com> <1d1da229d4bd56acabafd2087a5fabca9f48c6fc.camel@intel.com> <20240319215015.GA1994522@ls.amr.corp.intel.com> <970c8891af05d0cb3ccb6eab2d67a7def3d45f74.camel@intel.com> <21d284d23a7565beb9a0d032c97cc2a2d4e3988a.camel@intel.com> Message-ID: Subject: Re: [PATCH v19 011/130] KVM: Add new members to struct kvm_gfn_range to operate on From: Sean Christopherson To: Rick P Edgecombe Cc: Tina Zhang , Hang Yuan , Kai Huang , "binbin.wu@linux.intel.com" , Bo2 Chen , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "isaku.yamahata@linux.intel.com" , "tabba@google.com" , "isaku.yamahata@gmail.com" , Erdem Aktas , Isaku Yamahata , "kvm@vger.kernel.org" , "pbonzini@redhat.com" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2024, Rick P Edgecombe wrote: > On Fri, 2024-04-26 at 09:49 -0700, Sean Christopherson wrote: > >=20 > > Heh, where's your bitmask abuse spirit?=C2=A0 It's a little evil (and b= y "evil" > > I mean awesome), but the need to process different roots is another goo= d > > argument for an enum+bitmask. >=20 > Haha. There seems to be some special love for bit math in KVM. I was just > relaying my struggle to understand permission_fault() the other day. LOL, you and everyone else that's ever looked at that code. Just wait unti= l you run into one of Paolo's decimal-based bitmasks.