Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1444594pxj; Sat, 15 May 2021 15:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2h2TduVbW7j9BzBHQsgr/VCL+krBdA68+xeU6qU8Bb6f3mhFsHQwt8BiRdt+07ZlXW7Wv X-Received: by 2002:a05:6402:752:: with SMTP id p18mr63673830edy.127.1621117238506; Sat, 15 May 2021 15:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621117238; cv=none; d=google.com; s=arc-20160816; b=DxmvuhQr2xTBxt4VM7Nvccu5J23FVsmjjFoaqinyaZJXxL1ZIsErYr2WaVapY4Tkpo ZiaNCgR709f6HbUAw2t+iNyKgCdIl91/0EMYiRH9ewldER509ruB9pgh18QUFeJGxXR/ C7lkObee4Av2aC4thqIpA0cms2cONdtq4ejHzapxWfGKsMmqQh+HCwOtLgMSphn7kmAq 47lZfyICbfoLgOwIPhx5mQ3nrWKQp4WZRmueh++yneobtYu+SgERFtCQEdEkSojGi9uJ u4S/Z46sYys3GBUebzqdcaHYvB7sqw+lHdn2yp+/n12f6C3kvKluMVIh+Eohvv8Uh2Zj QTIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=rvlbn7YXmJWQEdU0XuZFwn9LDEHN1DMY+yHs7siXILs=; b=k9TqsqICoffV+UpnuMgIWCtbg3fQowDFlDLJ0vk+RHcIMQexi+B20c/RNkIOtLYV/E ZS/Ah1RADVSH+yU+buA6o7pEyeL2XCvFH4ufheSe8cRsVHq9ebiIFFzo40uxwGM/OnF2 HnJ/f0yAdk8erhFMcLBGo5Qz6NiBbobilnmfyDPHZZzHAfvjFs8CBPJdO/VZyHXQH6GS Cm8+qDDMHEKTjwte/R4hKhxfR4KkQWT0qszKOvQAlFBtS+cHEpsUKZB/2+T7f/Q+vu9Y I0XK4lk8JQWqJzstsK/piUa5nplqUfXCRN95UgQ/ctzujAHyRNGThWUWxO6TY0IN8sSy urgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5GuGccL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si9665460eds.113.2021.05.15.15.20.15; Sat, 15 May 2021 15:20:38 -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=@kernel.org header.s=k20201202 header.b=D5GuGccL; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbhEOP24 (ORCPT + 99 others); Sat, 15 May 2021 11:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:60986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232442AbhEOP2z (ORCPT ); Sat, 15 May 2021 11:28:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99530611C9; Sat, 15 May 2021 15:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621092458; bh=TGvIi0NbFuAxdl24Teuj+pX3jFTEIClK6MZfrq6UzJs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=D5GuGccLxVvrFL79QQBo3U94J+pQYAXlYNB/v+BWrvm1zJr1ogOgx+KvBtGzaqZRw rZj3IEtHnV8iOk8S1I9smS04pLbKZB/QeXPl1WyJFhkU7N/I/3QEEYaUzR6beiM0+t jkKeRXahgqSFsGlb4jx9em5OLMIrnGnNC6R2neWav68AFJzNV+noC3Efclm/uKDmpJ 5tMC/ggE2vRT/O6L2grAtqpKjvLdiWAfql8puCemlRSJJkzc7INObkrICT/TZ7j/9I l03nWVgv+JXTnam8V7XrHAhShKqFu/7umFqQ20slz71OSGxp15j9b5rLGdWQlTdb/T oe1wXrPxC3phQ== Subject: Re: [PATCH v2 4/9] x86/idt: remove address argument to idt_invalidate() To: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: Linux Kernel Mailing List References: <20210515014400.2999028-1-hpa@zytor.com> <20210515014400.2999028-5-hpa@zytor.com> From: Andy Lutomirski Message-ID: Date: Sat, 15 May 2021 08:27:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210515014400.2999028-5-hpa@zytor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/21 6:43 PM, H. Peter Anvin wrote: > From: "H. Peter Anvin (Intel)" > > There is no reason to specify any specific address to > idt_invalidate(). It looks mostly like an artifact of unifying code > done differently by accident. The most "sensible" address to set here > is a NULL pointer - virtual address zero, just as a visual marker. > > This also makes it possible to mark the struct desc_ptr in > idt_invalidate() as static const. > > Signed-off-by: H. Peter Anvin (Intel) Acked-by: Andy Lutomirski > - idt_invalidate(phys_to_virt(0)); > + idt_invalidate(); This hunk is an actual change, but I'm not sure it needs to be mentioned in the changelog.