From: Michael Mueller <mimu@linux.ibm.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>,
frankja@linux.vnet.ibm.com
Cc: kvm@vger.kernel.org, cohuck@redhat.com, david@redhat.com,
thuth@redhat.com, linux-s390@vger.kernel.org
Subject: Re: [PATCH] KVM: s390: introduce module parameter kvm.use_gisa
Date: Thu, 27 Feb 2020 17:10:45 +0100 [thread overview]
Message-ID: <6d7b7e6b-23af-05c7-5b59-aa83f86ee2ad@linux.ibm.com> (raw)
In-Reply-To: <9195cc6d-a266-1c05-cba9-e434cd1bd0b7@de.ibm.com>
On 27.02.20 14:24, Christian Borntraeger wrote:
>
>
> On 27.02.20 13:43, Michael Mueller wrote:
>>
>>
>> On 27.02.20 13:27, Christian Borntraeger wrote:
>>>
>>>
>>> On 27.02.20 10:10, Michael Mueller wrote:
>>>> The boolean module parameter "kvm.use_gisa" controls if newly
>>>> created guests will use the GISA facility if provided by the
>>>> host system. The default is yes.
>>>>
>>>> # cat /sys/module/kvm/parameters/use_gisa
>>>> Y
>>>>
>>>> The parameter can be changed on the fly.
>>>>
>>>> # echo N > /sys/module/kvm/parameters/use_gisa
>>>>
>>>> Already running guests are not affected by this change.
>>>>
>>>> The kvm s390 debug feature shows if a guest is running with GISA.
>>>>
>>>> # grep gisa /sys/kernel/debug/s390dbf/kvm-$pid/sprintf
>>>> 00 01582725059:843303 3 - 08 00000000e119bc01 gisa 0x00000000c9ac2642 initialized
>>>> 00 01582725059:903840 3 - 11 000000004391ee22 00[0000000000000000-0000000000000000]: AIV gisa format-1 enabled for cpu 000
>>>> ...
>>>> 00 01582725059:916847 3 - 08 0000000094fff572 gisa 0x00000000c9ac2642 cleared
>>>>
>>>> In general, that value should not be changed as the GISA facility
>>>> enhances interruption delivery performance.
>>>>
>>>> A reason to switch the GISA facility off might be a performance
>>>> comparison run or debugging.
>>>>
>>>> Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
>>>
>>> Looks good to me. Regarding the other comments, I think allowing for dynamic changes
>>> and keeping use_gisa vs disable_gisa makes sense. So I would think that the patch
>>> as is makes sense.
>>>
>>> The only question is: shall we set use_gisa to 0 when the machine does not support
>>> it (e.g. VSIE?) and then also forbid setting it to 1? Could be overkill.
>>
>> Then I would rename the parameter to "try_to_use_gisa" instead. (a joke ;) )
>>
>> In that case we exit gisa_init() because of the missing AIV facility.
>>
>> void kvm_s390_gisa_init(struct kvm *kvm)
>> {
>> struct kvm_s390_gisa_interrupt *gi = &kvm->arch.gisa_int;
>>
>> --> if (!css_general_characteristics.aiv)
>> return;
>> gi->origin = &kvm->arch.sie_page2->gisa;
>> gi->alert.mask = 0;
>> ...
>> }
>>
>
> I know. My point was more: "can we expose this". But this is probably overkill.
I agree with Connie here, that would make the whole thing
just more error-prone. That way the messages are at least
consistent.
>
next prev parent reply other threads:[~2020-02-27 16:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 9:10 [PATCH] KVM: s390: introduce module parameter kvm.use_gisa Michael Mueller
2020-02-27 9:26 ` David Hildenbrand
2020-02-27 12:04 ` Michael Mueller
2020-02-27 12:31 ` David Hildenbrand
2020-02-27 12:57 ` Michael Mueller
2020-02-27 9:47 ` Cornelia Huck
2020-02-27 12:19 ` Michael Mueller
2020-02-27 12:27 ` Christian Borntraeger
2020-02-27 12:43 ` Michael Mueller
2020-02-27 13:24 ` Christian Borntraeger
2020-02-27 16:10 ` Michael Mueller [this message]
2020-02-27 12:48 ` Cornelia Huck
2020-02-27 12:56 ` Michael Mueller
2020-02-27 16:23 ` Christian Borntraeger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d7b7e6b-23af-05c7-5b59-aa83f86ee2ad@linux.ibm.com \
--to=mimu@linux.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.vnet.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox