[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bb26d2d3-71c7-5513-5d0f-580f9da09d88@kernel.org>
Date: Sat, 15 May 2021 08:27:38 -0700
From: Andy Lutomirski <luto@...nel.org>
To: "H. Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 4/9] x86/idt: remove address argument to
idt_invalidate()
On 5/14/21 6:43 PM, H. Peter Anvin wrote:
> From: "H. Peter Anvin (Intel)" <hpa@...or.com>
>
> 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) <hpa@...or.com>
Acked-by: Andy Lutomirski <luto@...nel.org>
> - 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.
Powered by blists - more mailing lists