Received: from eggs.gnu.org ([2001:4830:134:3::10]:37279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yksxy-0005JV-L2 for qemu-devel@nongnu.org; Wed, 22 Apr 2015 07:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yksxt-0008OO-DZ for qemu-devel@nongnu.org; Wed, 22 Apr 2015 07:37:18 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:60132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yksxt-0008Ns-4x for qemu-devel@nongnu.org; Wed, 22 Apr 2015 07:37:13 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Apr 2015 12:37:10 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4F6A2219005E for ; Wed, 22 Apr 2015 12:36:51 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3MBb7xb6685054 for ; Wed, 22 Apr 2015 11:37:07 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3MBb6Yu012104 for ; Wed, 22 Apr 2015 05:37:07 -0600 Date: Wed, 22 Apr 2015 13:37:05 +0200 From: Cornelia Huck Message-ID: <20150422133705.6f4ad082.cornelia.huck@de.ibm.com> In-Reply-To: <553766D0.8090709@suse.de> References: <1429257161-29597-1-git-send-email-cornelia.huck@de.ibm.com> <1429257161-29597-4-git-send-email-cornelia.huck@de.ibm.com> <5536A051.9000901@suse.de> <20150422103212.403e6050.cornelia.huck@de.ibm.com> <553766D0.8090709@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/6] s390/kvm: diag288 instruction interception and handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: armbru@redhat.com, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Xu Wang , lcapitulino@redhat.com On Wed, 22 Apr 2015 11:16:00 +0200 Alexander Graf wrote: > On 04/22/2015 10:32 AM, Cornelia Huck wrote: > > On Tue, 21 Apr 2015 21:09:05 +0200 > > Alexander Graf wrote: > > > >> On 04/17/2015 09:52 AM, Cornelia Huck wrote: > >>> From: Xu Wang > >>> > >>> Intercept the diag288 requests from kvm guests, and hand the > >>> requested command to the diag288 watchdog device for further > >>> handling. > >>> > >>> Signed-off-by: Xu Wang > >>> Reviewed-by: David Hildenbrand > >>> Signed-off-by: Cornelia Huck > >> We're getting a lot of random devices allocating diag intercepts. Can't > >> we make this an actual interface, similar to the hypercall registration > >> on sPAPR? > > I've looked at the sPAPR hcall code, and it seems to basically provide > > a table with a nice registration interface (we already use something > > similar for the diagnose 500 virtio subcodes, btw.) > > > > While we could move our basic diagnose handling over to a table-like > > approach and registering new diagnoses, I think this is orthogonal to > > introducing a diag288 watchdog device: It just makes sense to model the > > watchdog as a device that just happens to be poked via a diagnose. If > > we introduce any further diagnoses to manipulate timing etc., I agree > > we don't want to add a device for each of these. > > My thinking was in the opposite level. I really like the idea of having > separate devices for each function. But I think that they should be > completely self-contained with well defined interfaces. I don't know... having a device for e.g. a hypercall that changes some timing characteristics feels a bit artificial to me.