Skip to content
  • Sudeep Holla's avatar
    arm64: KVM: unregister notifiers in hyp mode teardown path · 06a71a24
    Sudeep Holla authored
    Commit 1e947bad ("arm64: KVM: Skip HYP setup when already running
    in HYP") re-organized the hyp init code and ended up leaving the CPU
    hotplug and PM notifier even if hyp mode initialization fails.
    
    Since KVM is not yet supported with ACPI, the above mentioned commit
    breaks CPU hotplug in ACPI boot.
    
    This patch fixes teardown_hyp_mode to properly unregister both CPU
    hotplug and PM notifiers in the teardown path.
    
    Fixes: 1e947bad
    
     ("arm64: KVM: Skip HYP setup when already running in HYP")
    Cc: Christoffer Dall <christoffer.dall@linaro.org>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
    06a71a24