RE: [PATCH 1/2] x86/fred: Always install system interrupt handler into IDT

From: Thomas Gleixner
Date: Tue Jun 25 2024 - 13:12:06 EST


On Tue, Jun 25 2024 at 17:08, Li, Xin3 wrote:
>> >>> And please put a comment here to explain why this is unconditionally
>> >>> done for IDT.
>> >>
>> >> Wait. If we need this during early boot, then why don't we enable
>> >> FRED earlier?
>> >
>> > Unconditionally call idt_install_sysvec() is still needed, right?
>>
>> Not when we enable FRED early enough.
>>
>
> What if FRED is disabled in the kernel command line?
>
> "fred=off" gets parsed in a later stage of the kernel initialization sequence.

You can parse it early on. There are examples for that like encryption
and other things which need to be decided way before the real parsing
happens.

Thanks,

tglx