Commit 8d08fa93 authored by Greg Kurz's avatar Greg Kurz Committed by David Gibson
Browse files

spapr_pci: Drop useless CONFIG_KVM ifdefery



kvm_enabled() expands to (0) when CONFIG_KVM is not defined.

Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
Message-Id: <156051052977.224162.17306829691809502082.stgit@bahia.lan>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 25c79a30
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1951,11 +1951,9 @@ static void spapr_phb_realize(DeviceState *dev, Error **errp)
     * For KVM we want to ensure that this memory is a full page so that
     * our memory slot is of page size granularity.
     */
#ifdef CONFIG_KVM
    if (kvm_enabled()) {
        msi_window_size = getpagesize();
    }
#endif

    memory_region_init_io(&sphb->msiwindow, OBJECT(sphb), &spapr_msi_ops, spapr,
                          "msi", msi_window_size);