Commit 21eb052c authored by Cornelia Huck's avatar Cornelia Huck
Browse files

s390x/pci: do not advertise pci on non-pci builds



Only set the zpci feature bit on builds that actually support pci.

Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Acked-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 1c5deaec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2662,7 +2662,9 @@ void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)
    }

    /* We emulate a zPCI bus and AEN, therefore we don't need HW support */
    if (pci_available) {
        set_bit(S390_FEAT_ZPCI, model->features);
    }
    set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features);

    if (s390_known_cpu_type(cpu_type)) {