diff options
author | Sean Christopherson <[email protected]> | 2023-07-21 13:18:42 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-08-03 15:37:14 -0700 |
commit | 5e408396c60cd0f0b53a43713016b6d6af8d69e0 (patch) | |
tree | 903b6f3221c77e427ab92923d3a38cf70055f5dd /net/lapb/lapb_out.c | |
parent | b23c83ad2c638420ec0608a9de354507c41bec29 (diff) |
x86/reboot: Harden virtualization hooks for emergency reboot
Provide dedicated helpers to (un)register virt hooks used during an
emergency crash/reboot, and WARN if there is an attempt to overwrite
the registered callback, or an attempt to do an unpaired unregister.
Opportunsitically use rcu_assign_pointer() instead of RCU_INIT_POINTER(),
mainly so that the set/unset paths are more symmetrical, but also because
any performance gains from using RCU_INIT_POINTER() are meaningless for
this code.
Reviewed-by: Kai Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions