diff options
author | Sean Christopherson <[email protected]> | 2024-08-29 21:35:58 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-09-04 11:02:33 -0400 |
commit | b67107a251b01161956892352d53fb122346eda1 (patch) | |
tree | 41f3d60b96e6349512e2e56497c8a687cfcff768 /drivers/fpga/fpga-bridge.c | |
parent | b4886fab6fb620b96ad7eeefb9801c42dfa91741 (diff) |
KVM: Add arch hooks for enabling/disabling virtualization
Add arch hooks that are invoked when KVM enables/disable virtualization.
x86 will use the hooks to register an "emergency disable" callback, which
is essentially an x86-specific shutdown notifier that is used when the
kernel is doing an emergency reboot/shutdown/kexec.
Add comments for the declarations to help arch code understand exactly
when the callbacks are invoked. Alternatively, the APIs themselves could
communicate most of the same info, but kvm_arch_pre_enable_virtualization()
and kvm_arch_post_disable_virtualization() are a bit cumbersome, and make
it a bit less obvious that they are intended to be implemented as a pair.
Reviewed-by: Chao Gao <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Acked-by: Kai Huang <[email protected]>
Tested-by: Farrah Chen <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions