• Alexander Graf's avatar
    powerpc/kvm: Fix build failure with HV KVM and CBE · 5ccf55dd
    Alexander Graf authored
    When running with HV KVM and CBE config options enabled, I get
    build failures like the following:
    
      arch/powerpc/kernel/head_64.o: In function `cbe_system_error_hv':
      (.text+0x1228): undefined reference to `do_kvm_0x1202'
      arch/powerpc/kernel/head_64.o: In function `cbe_maintenance_hv':
      (.text+0x1628): undefined reference to `do_kvm_0x1602'
      arch/powerpc/kernel/head_64.o: In function `cbe_thermal_hv':
      (.text+0x1828): undefined reference to `do_kvm_0x1802'
    
    This is because we jump to a KVM handler when HV is enabled, but we
    only generate the handler with PR KVM mode.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    5ccf55dd
exceptions-64s.S 30.6 KB