• Paul Mackerras's avatar
    KVM: PPC: Book 3S: Fix compilation for !HV configs · 7657f408
    Paul Mackerras authored
    Commits 2f5cdd5487 ("KVM: PPC: Book3S HV: Make secondary threads more
    robust against stray IPIs") and 1c2066b0f7 ("KVM: PPC: Book3S HV: Make
    virtual processor area registration more robust") added fields to
    struct kvm_vcpu_arch inside #ifdef CONFIG_KVM_BOOK3S_64_HV regions,
    and added lines to arch/powerpc/kernel/asm-offsets.c to generate
    assembler constants for their offsets.  Unfortunately this led to
    compile errors on Book 3S machines for configs that had KVM enabled
    but not CONFIG_KVM_BOOK3S_64_HV.  This fixes the problem by moving
    the offending lines inside #ifdef CONFIG_KVM_BOOK3S_64_HV regions.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    7657f408
asm-offsets.c 28.6 KB