Message ID | 20170804112946.5247-5-cohuck@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 04.08.2017 13:29, Cornelia Huck wrote: > Only set the zpci feature bit on builds that actually support pci. > > Signed-off-by: Cornelia Huck <cohuck@redhat.com> > --- > target/s390x/kvm.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c > index c4c5791d27..bc62bba5b7 100644 > --- a/target/s390x/kvm.c > +++ b/target/s390x/kvm.c > @@ -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 */ > - set_bit(S390_FEAT_ZPCI, model->features); > + 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)) { > Yup, looks good to me. Reviewed-by: David Hildenbrand <david@redhat.com>
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c index c4c5791d27..bc62bba5b7 100644 --- a/target/s390x/kvm.c +++ b/target/s390x/kvm.c @@ -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 */ - set_bit(S390_FEAT_ZPCI, model->features); + 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)) {
Only set the zpci feature bit on builds that actually support pci. Signed-off-by: Cornelia Huck <cohuck@redhat.com> --- target/s390x/kvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)