qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 0/3] Implement basic MSA functions


From: David Hildenbrand
Subject: Re: [Qemu-devel] [PATCH v3 0/3] Implement basic MSA functions
Date: Thu, 21 Sep 2017 14:38:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 21.09.2017 10:23, Cornelia Huck wrote:
> On Wed, 20 Sep 2017 17:30:13 +0200
> David Hildenbrand <address@hidden> wrote:
> 
>> Some leftover from "target/s390x: tcg improvments + MSA functions".
>>
>> Implement all basic MSA (cpacf/crypto) instructions <= z13. Only provide
>> the query subfunction (to query available subfunctions), no actual
>> de/encryption yet. Good enough to unlock the STFL bits.
>>
>> I have written kvm-unit-tests for MSA functions and for SPM/IPM. Will
>> send them out soon. I use the following cpu model to test with an upstream
>> kernel compiled for z10:
>>
>> ... -cpu qemu,mvcos=on,stfle=on,ldisp=on,ldisphp=on,\
>>               eimm=on,stckf=on,csst=on,csst2=on,ginste=on,\
>>               exrl=on,msa-base=on,msa3-base=on,msa4-base=on,msa5-base=on ...
>>
>> Available on: https://github.com/davidhildenbrand/qemu.git s390x-msa
> 
> I used the following cpu model:
> 
> -cpu 
> qemu,eimm=on,ldisp=on,stckf=on,msa-base=on,msa3-base=on,msa4-base=on,msa5-base=on
> 
> and got
> 
> qemu-system-s390x: warning: 'msa5-base' requires 'kimd-sha-512'.
> qemu-system-s390x: warning: 'msa5-base' requires 'klmd-sha-512'.
> 

Yes, I am aware of that and it is on my todo list. Shouldn't matter for
now as it is completely optional and not enabled as default.

> (It works anyway.)
> 
> However,
> 
> -cpu 
> qemu,eimm=on,ldisp=on,stckf=on,msa-base=on,msa3-base=on,msa4-base=on,msa5-base=on,kimd-sha-512=on
> 
> gives
> 
> qemu-system-s390x: can't apply global qemu-s390-cpu.kimd-sha-512=on: Feature 
> 'kimd-sha-512' is not available for CPU model 'z900', it was introduced with 
> later models.
> 
> which is a bit confusing.

Due to the way we hack up the qemu cpu model, allowing to set features
that are theoretically not possible (just to have some way of enabling
them before we can change the qemu model to something never).

> 
> So I'm wondering whether providing msa5-base without the providing the
> algorithms above is sane - or whether it is just enough to satisfy some
> kernels.
> 
> [Double-checking the various dependencies looks impossible without
> access to IBM doc, anyway - I just hope you got it right back then :)]
> 

We can take care of that later (if at all relevant).

-- 

Thanks,

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]