From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVYqI-0000co-C1 for qemu-devel@nongnu.org; Thu, 13 Jul 2017 03:47:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVYqD-0004UR-F6 for qemu-devel@nongnu.org; Thu, 13 Jul 2017 03:47:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60450) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVYqD-0004Tg-8T for qemu-devel@nongnu.org; Thu, 13 Jul 2017 03:47:17 -0400 Date: Thu, 13 Jul 2017 09:47:12 +0200 From: Cornelia Huck Message-ID: <20170713094712.48daf16d@gondolin> In-Reply-To: References: <1499864265-144136-1-git-send-email-borntraeger@de.ibm.com> <1499864265-144136-9-git-send-email-borntraeger@de.ibm.com> <20170712170713.1f5cf6b2@dhcp-192-215.str.redhat.com> <20170713092753.5a3ba530@gondolin> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 08/11] s390x/flic: introduce modify_ais_mode callback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: qemu-devel , Alexander Graf , Richard Henderson , Fei Li , Yi Min Zhao On Thu, 13 Jul 2017 09:35:16 +0200 Christian Borntraeger wrote: > On 07/13/2017 09:27 AM, Cornelia Huck wrote: > > On Thu, 13 Jul 2017 09:12:50 +0200 > > Christian Borntraeger wrote: > > > >> On 07/12/2017 05:07 PM, Cornelia Huck wrote: > >>>> + > >>>> + switch (mode) { > >>>> + case SIC_IRQ_MODE_ALL: > >>>> + flic->simm &= ~AIS_MODE_MASK(isc); > >>>> + flic->nimm &= ~AIS_MODE_MASK(isc); > >>>> + break; > >>>> + case SIC_IRQ_MODE_SINGLE: > >>>> + flic->simm |= AIS_MODE_MASK(isc); > >>>> + flic->nimm &= ~AIS_MODE_MASK(isc); > >>> > >>> Can we have some documentation about the meaning of simm/nimm in qemu? > >>> The one from the patch description of the respective kernel patch would > >>> be fine. > >> > >> Do you want to have that description as part of the patch description or > >> somewhere in the docs folder or somewhere in the code? > > > > A comment near the definition of simm/nimm would be nice. Or in the > > commit message, as for the kernel. > > > > I think I will just add this to the commit message: > > We introduce the 'simm' and 'nimm' fields to QEMUS390FLICState > to store interruption modes for each ISC. Each bit in 'simm' and > 'nimm' targets to one ISC, and collaboratively indicate three modes: s/targets to one/targets one/ > ALL-Interruptions, SINGLE-Interruption and NO-Interruptions. This > interface can initiate most transitions between the states; transition > from SINGLE-Interruption to NO-Interruptions via adapter interrupt > injection will be introduced in a following patch. The meaningful > combinations are as follows: > > interruption mode | simm bit | nimm bit > ------------------|----------|---------- > ALL | 0 | 0 > SINGLE | 1 | 0 > NO | 1 | 1 > > > Sounds good.