Re: [PATCH v3] x86/asm: Force native_apic_mem_read to use mov

From: Kevin Loughlin
Date: Thu Mar 14 2024 - 11:57:27 EST


On Fri, Feb 9, 2024 at 10:20 AM Adam Dunlap <acdunlap@xxxxxxxxxx> wrote:
>
> On Fri, Feb 9, 2024 at 7:22 AM Ard Biesheuvel <ardb@xxxxxxxxxx> wrote:
> >
> > this seems like the kind of thing we'll want in -stable in case folks
> > are compiling stable kernels with new clangs.
>
> That makes sense. Note that there was another patch accepted recently
> that fixed another
> clang-with-SEV problem [1], so they should probably be backported to
> the same stable
> branches since neither is that useful without the other.
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=1c811d403afd73f04bde82b83b24c754011bd0e8

Agreed; clang builds of SEV-SNP guests will need both this patch and
[1]. If an additional patch [2] also gets merged, we may want to do
the same for [2] as well.

[2] https://lore.kernel.org/lkml/20240313121546.2964854-1-kevinloughlin@xxxxxxxxxx/