From nobody Thu Apr 2 20:14:49 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 2A9273A1A3D for ; Thu, 26 Mar 2026 18:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774549058; cv=none; b=jniTa/+2EBCutvWgFtYKcJqDaioFsg87LF4st91GRqyAfNnuPoKsgO7/7NASwLAm/EbRbIgyMsjOyYxB5ziJRut1cBLq1KVNplz5rCjEVgud5W7Y9S/q9jQJ0Ii8Gfns5wMOIqTW21z8M03qD+l46G7fy6+PSg79IKk2LyKMps8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774549058; c=relaxed/simple; bh=+XRLjOpS4v+IUj8Epgk8vsqlWWWhFf+iPFdKVLl6SyA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nxzwb03kSqD8aSx91/358BswbGSFtYuMp3477yF3eky6vN0OOscyW6SySYzFi31TuyVT2P+caFZbtsbiOkUoJvoTu+xL28ov7veoxKfE0ABTZK8+RtmOxcZYuXD5CBtXq57BkG/CHW75sLGKc00t0p68sC4R2QJrUOX+IwztHGk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=R0xAP3CF; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=Ppq93EGH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="R0xAP3CF"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ppq93EGH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774549055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NZNDRdV67MUP45bmnySAtmpJD5gxz3701J4cRjhnqB0=; b=R0xAP3CFlapPh7xquX8z+YInKOnoWgb7eu/UY3xV/Uzs76Bf08Whre9v3rlcboQBZ6VVLg bmw7a/DiAXLArFOlfxtzPUptlcp+ySyhE2qP8UuI67STwO81BmuFIAYHq7AWl+GIfJ/ukQ i7LvS7q+QGPD0eGSkSQaRqnVnQTNq3Q= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-582-DxVWBZH8Nw2_JvEEYV5NIA-1; Thu, 26 Mar 2026 14:17:34 -0400 X-MC-Unique: DxVWBZH8Nw2_JvEEYV5NIA-1 X-Mimecast-MFC-AGG-ID: DxVWBZH8Nw2_JvEEYV5NIA_1774549053 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-486fb142205so17973635e9.1 for ; Thu, 26 Mar 2026 11:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1774549052; x=1775153852; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NZNDRdV67MUP45bmnySAtmpJD5gxz3701J4cRjhnqB0=; b=Ppq93EGHnaFYB0wuR6HlipR53JmjRrUyUU31fXBE7zWLUZO+ZDV2Ln1K68B9ZeDrDY 2CbNWubRZfhtWdiU3LeNfcNO/hFI8okWDIEC6DcW9eGuu+LLyX8kLi5GsFuLQKp8PrZ9 hQ9L+HsMWaet+4YB7Ye3Z9e4vDD3dMFD5p91XsHmai6YsCd2yUazDH5HGMHHLWT8d2GJ tgamg8WYsIB6GLcwFwu1Xnojyuhtiui6Vu+OuDpzzD6FB9x0T2sjatz9CihZ+UkJrU0q j82TMnnT9a08MW4k6rfZYHQH5uwR+n4PZ6SJDtjB0PZEg6Eh/bC/gKjWid9ugYD9AbPd pN+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774549052; x=1775153852; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=NZNDRdV67MUP45bmnySAtmpJD5gxz3701J4cRjhnqB0=; b=bIFzDFd/F9RuYqGjq19e7I21t8c62Pm722NLd0HW/znzBcCpAIO5BQ9r8cNuZxsL9e 0/rOEfy9rv9O5gtQ7tcCHzGZFo+oFvRpR8lvCccHxocBIrmnqWWGe/exXD20jXBlV4JI QbiIVTFs9fcqYrYGy4m9HsFVggC/RP1ECB26sazOc1q92QJVLSTy+vnevDGm+XY7zGGI 5I7G7bvC2NqrHGKsjci9YgZOTeFg1rANys1GGyDw0NDtS11mmY1KT8mnKLiDvGz0hu0+ UOYjpJ4uZX1qHAOaDBCk1fmzJeg27zU+38IagNQD+/rCprUmaqlWCP19V2R/uoIXe9Ba ezEA== X-Gm-Message-State: AOJu0YwbGodCvrHiBdxl3ovzzLZ9i9NkMEod3onIrCZPQhVr6HId9R4l OQtPY12Svvr/Xme4Qauh/9+2JkMC0kt1amo9WJaaT/Z1O9MpENVwIHC25W5eG1whmbioLDXfAlQ 9FYQ0Q+mhRUY9bSB556wFXkD1pWn+F3kYK00wKgv/1hjrUZN57wlicLuk2XeAzh+52+hbtalaNQ 6QUlrTuXvr0sI1KCnXbjD6PCKkYLWK0QrBLUU5RGzZw+sQcKbFgw== X-Gm-Gg: ATEYQzwgow20BUAku7vHFQuuipMAjuAPAwJPkEvyY7ICKVwfbxefSn43FrigANJp73c qTypaHusS2edytG8AtPJPCXTQGooX8KCXk2AFjD67Igo1rKVX3UYO8jEM+6O39aSyjeGdgcVIbW recmRUfyZLmc5ix+GzXbBGau72VSDigjy2GAry+LfWcTVZlELMIM29xDd3MCnF+5SQEUoYAwMvl NL+2OeWJp58+VROtmLyq7dRtviiMa2dp+tattMidDL95AlbKVl18tj6jmaWZODieFArnkOQWaSa 59msLEfHyYyz0/FqrzYVewWcanYpmRhvncC7TI0LLslT6H8QLwKCFmmK+ODjrgxNvFY7+r9nXH/ nhVsrhEuOhw8m7y2+EdNG9yDP79XRMeM8Ty2fgp9RgUgJVPNXXAPEK88hCNbQs1eS/wQapYmDaJ mRG4NItPIP9Ey3H676LDMqiP2j X-Received: by 2002:a05:600c:8b53:b0:485:33ad:3c9f with SMTP id 5b1f17b1804b1-48716071d0bmr131990875e9.25.1774549051832; Thu, 26 Mar 2026 11:17:31 -0700 (PDT) X-Received: by 2002:a05:600c:8b53:b0:485:33ad:3c9f with SMTP id 5b1f17b1804b1-48716071d0bmr131990135e9.25.1774549051290; Thu, 26 Mar 2026 11:17:31 -0700 (PDT) Received: from [192.168.10.48] ([151.49.85.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48722d23679sm97827235e9.9.2026.03.26.11.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2026 11:17:29 -0700 (PDT) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Jon Kohler , Nikunj A Dadhania , Amit Shah , Sean Christopherson , Marcelo Tosatti Subject: [PATCH 02/24] KVM: x86/mmu: remove SPTE_PERM_MASK Date: Thu, 26 Mar 2026 19:17:00 +0100 Message-ID: <20260326181723.218115-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260326181723.218115-1-pbonzini@redhat.com> References: <20260326181723.218115-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jon Kohler SPTE_PERM_MASK is no longer referenced by anything in the kernel. Signed-off-by: Jon Kohler Message-ID: <20251223054806.1611168-3-jon@nutanix.com> Signed-off-by: Paolo Bonzini --- arch/x86/kvm/mmu/spte.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kvm/mmu/spte.h b/arch/x86/kvm/mmu/spte.h index 91ce29fd6f1b..28086fa86fe0 100644 --- a/arch/x86/kvm/mmu/spte.h +++ b/arch/x86/kvm/mmu/spte.h @@ -42,9 +42,6 @@ static_assert(SPTE_TDP_AD_ENABLED =3D=3D 0); #define SPTE_BASE_ADDR_MASK (((1ULL << 52) - 1) & ~(u64)(PAGE_SIZE-1)) #endif =20 -#define SPTE_PERM_MASK (PT_PRESENT_MASK | PT_WRITABLE_MASK | shadow_user_m= ask \ - | shadow_x_mask | shadow_nx_mask | shadow_me_mask) - #define ACC_EXEC_MASK 1 #define ACC_WRITE_MASK PT_WRITABLE_MASK #define ACC_USER_MASK PT_USER_MASK --=20 2.53.0