• Sean Christopherson's avatar
    KVM: PPC: Drop dead code related to KVM_ARCH_WANT_MMU_NOTIFIER · 1853d750
    Sean Christopherson authored
    Assert that both KVM_ARCH_WANT_MMU_NOTIFIER and CONFIG_MMU_NOTIFIER are
    defined when KVM is enabled, and return '1' unconditionally for the
    CONFIG_KVM_BOOK3S_HV_POSSIBLE=n path.  All flavors of PPC support for KVM
    select MMU_NOTIFIER, and KVM_ARCH_WANT_MMU_NOTIFIER is unconditionally
    defined by arch/powerpc/include/asm/kvm_host.h.
    
    Effectively dropping use of KVM_ARCH_WANT_MMU_NOTIFIER will simplify a
    future cleanup to turn KVM_ARCH_WANT_MMU_NOTIFIER into a Kconfig, i.e.
    will allow combining all of the
    
      #if defined(CONFIG_MMU_NOTIFIER) && defined(KVM_ARCH_WANT_MMU_NOTIFIER)
    
    checks into a single
    
      #ifdef CONFIG_KVM_GENERIC_MMU_NOTIFIER
    
    without having to worry about PPC's "bare" usage of
    KVM_ARCH_WANT_MMU_NOTIFIER.
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarFuad Tabba <tabba@google.com>
    Message-Id: <20231027182217.3615211-6-seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    1853d750
powerpc.c 57.8 KB