Re: [PATCH v6 8/8] x86/microcode/AMD: Don't scan past the CPU equivalence table data

From: Borislav Petkov
Date: Mon Jun 18 2018 - 14:30:24 EST


On Mon, Jun 18, 2018 at 08:11:53PM +0200, Maciej S. Szmigiero wrote:
> The equivalence table size can be computed in the late loader - there is
> no problem there.
>
> However, this computed size needs to be passed somehow to functions
> scanning the equivalence table.

Ok, then let's make a compromise with a proper global descriptor which
gets passed around:

static struct equiv_cpu_table {
struct equiv_cpu_entry *table;
unsigned int size;
} *equiv_table;

But make that conversion in a prepatch pls.

Thx.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.