Re: [PATCH v6 00/16] x86/mtrr: fix handling with PAT but without MTRR

From: Juergen Gross
Date: Thu Jun 01 2023 - 08:53:27 EST


On 01.06.23 14:48, Borislav Petkov wrote:
On Thu, Jun 01, 2023 at 08:39:17AM +0200, Juergen Gross wrote:
Does this translate to: "we should remove that cleanup crap"? I'd be
positive to that. :-)

Why, what's wrong with that thing?


Why do you need it if you don't think adding MTRRs dynamically is
important?

Having a sub-optimal MTRR setup doesn't matter unless you are running
out of MTRRs to use. When you are not adding MTRRs, you can't run out
of them.

This in turn means you don't need mtrr_cleanup().


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature