diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-10-02 14:00:02 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-10-24 15:05:55 +0200 |
commit | 6067788f04b1020b316344fe34746f96d594a042 (patch) | |
tree | 653ec407ebec049190c9d0ed56b8dc3f36546633 /arch/x86/virt/vmx/tdx | |
parent | ba3aeb97cb2c53025356f31c5a0a294385194115 (diff) |
x86/microcode: Provide new control functions
The current all in one code is unreadable and really not suited for
adding future features like uniform loading with package or system
scope.
Provide a set of new control functions which split the handling of the
primary and secondary CPUs. These will replace the current rendezvous
all in one function in the next step. This is intentionally a separate
change because diff makes an complete unreadable mess otherwise.
So the flow separates the primary and the secondary CPUs into their own
functions which use the control field in the per CPU ucode_ctrl struct.
primary() secondary()
wait_for_all() wait_for_all()
apply_ucode() wait_for_release()
release() apply_ucode()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231002115903.377922731@linutronix.de
Diffstat (limited to 'arch/x86/virt/vmx/tdx')
0 files changed, 0 insertions, 0 deletions