]> Git Repo - qemu.git/commitdiff
s390x/ccw: create s390 phb for compat reasons as well
authorCornelia Huck <[email protected]>
Fri, 15 Sep 2017 09:45:23 +0000 (11:45 +0200)
committerCornelia Huck <[email protected]>
Tue, 19 Sep 2017 16:31:32 +0000 (18:31 +0200)
d32bd032d8 ("s390x/ccw: create s390 phb conditionally") made
registering the s390 pci host bridge conditional on presense
of the zpci facility bit. Sadly, that breaks migration from
machines that did not use the cpu model (2.7 and previous).

Create the s390 phb for pre-cpu model machines as well: We can
tweak s390_has_feat() to always indicate the zpci facility bit
when no cpu model is available (on 2.7 and previous compat machines).

Fixes: d32bd032d8 ("s390x/ccw: create s390 phb conditionally")
Acked-by: Christian Borntraeger <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/cpu_models.c

index c295e641e6f9a979790d7a276888c4aa023e1576..5169379db5269396c52a2a29802415acea1d2d34 100644 (file)
@@ -196,6 +196,9 @@ bool s390_has_feat(S390Feat feat)
             }
         }
 #endif
+        if (feat == S390_FEAT_ZPCI) {
+            return true;
+        }
         return 0;
     }
     return test_bit(feat, cpu->model->features);
This page took 0.028011 seconds and 4 git commands to generate.