[PATCH v2 1/2] KVM: Use syscore_ops instead of reboot_notifier to hook restart/shutdown
Paolo Bonzini
pbonzini at redhat.com
Tue Dec 12 05:38:02 PST 2023
On Tue, Dec 12, 2023 at 9:51 AM Gowans, James <jgowans at amazon.com> wrote:
> 1. Does hardware_disable_nolock actually need to be done on *every* CPU
> or would the offlined ones be fine to ignore because they will be reset
> and the VMXE bit will be cleared that way? With cooperative CPU handover
> we probably do indeed want to do this on every CPU and not depend on
> resetting.
Offlined and onlined CPUs are handled via the CPU hotplug state machine,
which calls into kvm_online_cpu and kvm_offline_cpu.
Paolo
More information about the kvm-riscv
mailing list