diff mbox series

[v1,1/2] s390x/cpu_models: drop "msa5" from the TCG "max" model

Message ID 20220322112256.118417-2-david@redhat.com
State New
Headers show
Series s390x/cpu_models: make "max" match the unmodified "qemu" CPU model under TCG | expand

Commit Message

David Hildenbrand March 22, 2022, 11:22 a.m. UTC
We don't include the "msa5" feature in the "qemu" model because it
generates a warning. The PoP states:

"The message-security-assist extension 5 requires
the secure-hash-algorithm (SHA-512) capabilities of
the message-security-assist extension 2 as a prereq-
uisite. (March, 2015)"

As SHA-512 won't be supported in the near future, let's just drop the
feature from the "max" model. This avoids the warning and allows us for
making the "max" model match the "qemu" model (except for compat
machines). We don't lose much, as we only implement the function stubs
for MSA, exclusing any real subfunctions.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/897
Signed-off-by: David Hildenbrand <david@redhat.com>
---
 target/s390x/gen-features.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Thomas Huth March 22, 2022, 4:41 p.m. UTC | #1
On 22/03/2022 12.22, David Hildenbrand wrote:
> We don't include the "msa5" feature in the "qemu" model because it
> generates a warning. The PoP states:
> 
> "The message-security-assist extension 5 requires
> the secure-hash-algorithm (SHA-512) capabilities of
> the message-security-assist extension 2 as a prereq-
> uisite. (March, 2015)"
> 
> As SHA-512 won't be supported in the near future, let's just drop the
> feature from the "max" model. This avoids the warning and allows us for
> making the "max" model match the "qemu" model (except for compat
> machines). We don't lose much, as we only implement the function stubs
> for MSA, exclusing any real subfunctions.

s/exclusing/excluding/
(but no need to respin just because of this)

> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/897
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
>   target/s390x/gen-features.c | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
> index 22846121c4..7b4430f9de 100644
> --- a/target/s390x/gen-features.c
> +++ b/target/s390x/gen-features.c
> @@ -743,8 +743,6 @@ static uint16_t qemu_LATEST[] = {
>   };
>   /* add all new definitions before this point */
>   static uint16_t qemu_MAX[] = {
> -    /* generates a dependency warning, leave it out for now */
> -    S390_FEAT_MSA_EXT_5,
>   };
>   
>   /****** END FEATURE DEFS ******/

Reviewed-by: Thomas Huth <thuth@redhat.com>
Cornelia Huck March 23, 2022, 11:18 a.m. UTC | #2
On Tue, Mar 22 2022, David Hildenbrand <david@redhat.com> wrote:

> We don't include the "msa5" feature in the "qemu" model because it
> generates a warning. The PoP states:
>
> "The message-security-assist extension 5 requires
> the secure-hash-algorithm (SHA-512) capabilities of
> the message-security-assist extension 2 as a prereq-
> uisite. (March, 2015)"
>
> As SHA-512 won't be supported in the near future, let's just drop the
> feature from the "max" model. This avoids the warning and allows us for
> making the "max" model match the "qemu" model (except for compat
> machines). We don't lose much, as we only implement the function stubs
> for MSA, exclusing any real subfunctions.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/897
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
>  target/s390x/gen-features.c | 2 --
>  1 file changed, 2 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
diff mbox series

Patch

diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
index 22846121c4..7b4430f9de 100644
--- a/target/s390x/gen-features.c
+++ b/target/s390x/gen-features.c
@@ -743,8 +743,6 @@  static uint16_t qemu_LATEST[] = {
 };
 /* add all new definitions before this point */
 static uint16_t qemu_MAX[] = {
-    /* generates a dependency warning, leave it out for now */
-    S390_FEAT_MSA_EXT_5,
 };
 
 /****** END FEATURE DEFS ******/