Skip to contentSkip to conversation

fixup for the z14 cpu model

PATCH In review Christian Borntraeger 3 participants 7 messages Jul 20, 2017

lore
Share & tools
lore
#0 lore raw

cover fixup for the z14 cpu model

More testing revealed a small issue with the z14 cpu model.

Christian Borntraeger (1):
s390/cpumodel: remove KSS from the default model of z14

 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 s390/cpumodel: remove KSS from the default model of z14

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_models.c +1 -0
index f4e5bb6..d91b7b8 100644
@@ -723,6 +723,7 @@ static void check_consistency(const S390CPUModel *model)
         { S390_FEAT_KLMD_SHAKE_256, S390_FEAT_MSA },
         { S390_FEAT_PRNO_TRNG_QRTCR, S390_FEAT_MSA_EXT_5 },
         { S390_FEAT_PRNO_TRNG, S390_FEAT_MSA_EXT_5 },
+        { S390_FEAT_SIE_KSS, S390_FEAT_SIE_F2 },
     };
     int i;
 
target/s390x/gen-features.c +0 -1
index cf69157..c8dc104 100644
@@ -535,7 +535,6 @@ static uint16_t default_GEN14_GA1[] = {
     S390_FEAT_GROUP_MSA_EXT_6,
     S390_FEAT_GROUP_MSA_EXT_7,
     S390_FEAT_GROUP_MSA_EXT_8,
-    S390_FEAT_SIE_KSS,
 };
 
 /****** END FEATURE DEFS ******/
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#2 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390/cpumodel: remove KSS from the default model of z14

Quoted 5 lines · Christian Borntraeger

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

Makes sense.

Quoted 34 lines
---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
target/s390x/cpu_models.c +1 -0
index f4e5bb6..d91b7b8 100644
@@ -723,6 +723,7 @@ static void check_consistency(const S390CPUModel *model)
         { S390_FEAT_KLMD_SHAKE_256, S390_FEAT_MSA },
         { S390_FEAT_PRNO_TRNG_QRTCR, S390_FEAT_MSA_EXT_5 },
         { S390_FEAT_PRNO_TRNG, S390_FEAT_MSA_EXT_5 },
+        { S390_FEAT_SIE_KSS, S390_FEAT_SIE_F2 },
     };
     int i;
 
target/s390x/gen-features.c +0 -1
index cf69157..c8dc104 100644
@@ -535,7 +535,6 @@ static uint16_t default_GEN14_GA1[] = {
     S390_FEAT_GROUP_MSA_EXT_6,
     S390_FEAT_GROUP_MSA_EXT_7,
     S390_FEAT_GROUP_MSA_EXT_8,
-    S390_FEAT_SIE_KSS,
 };
 
 /****** END FEATURE DEFS ******/
Signature · 3 lines
Thanks,

David
Acked-by on v1 1/1
#3 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390/cpumodel: remove KSS from the default model of z14

In reply to Christian Borntraeger
Quoted 6 lines · On Thu, 20 Jul 2017 13:27:31 +0200 Christian Borntraeger…

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

Quoted 7 lines
---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

I can either queue this; or, if you want to push this out as a fixup, feel free to add

#4 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390/cpumodel: remove KSS from the default model of z14

Quoted 17 lines · Cornelia Huck
Quoted 6 lines · On Thu, 20 Jul 2017 13:27:31 +0200 Christian Borntraeger…

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

Quoted 7 lines
---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
Quoted 2 lines

I can either queue this; or, if you want to push this out as a fixup, feel free to add

I want this in 2.10, but it can wait some days of course. I am on vacation starting end of next week, so maybe its better if you do the next round (and also take care of Davids and Thomas patches if those are appropriate for 2.10)

Thanks a lot

Quoted 2 lines
#5 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390/cpumodel: remove KSS from the default model of z14

Quoted 21 lines · On Thu, 20 Jul 2017 15:10:35 +0200 Christian Borntraeger…
Quoted 17 lines · Cornelia Huck
Quoted 6 lines · On Thu, 20 Jul 2017 13:27:31 +0200 Christian Borntraeger…

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

Quoted 7 lines
---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)  
Quoted 2 lines

I can either queue this; or, if you want to push this out as a fixup, feel free to add

Quoted 6 lines

I want this in 2.10, but it can wait some days of course. I am on vacation starting end of next week, so maybe its better if you do the next round (and also take care of Davids and Thomas patches if those are appropriate for 2.10)

Thanks a lot

OK, I'll deal with this next week. I've got the vfio-ccw patches as well, anyway.

Quoted 3 lines
Quoted 2 lines
#6 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390/cpumodel: remove KSS from the default model of z14

In reply to Christian Borntraeger
Quoted 6 lines · On Thu, 20 Jul 2017 13:27:31 +0200 Christian Borntraeger…

The SIE_KSS feature will allow a guest to use KSS for a nested guest. To create a nested guest the SIE_F2 facility is still necessary. Since SIE_F2 is not part of the default model it does not make a lot of sense to provide the SIE_KSS feature in the default model. Let's also create a dependency check.

Quoted 7 lines
---
 target/s390x/cpu_models.c   | 1 +
 target/s390x/gen-features.c | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

Thanks, queued to s390-next.