Received: from eggs.gnu.org ([2001:4830:134:3::10]:42289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykq51-0002pI-KV for qemu-devel@nongnu.org; Wed, 22 Apr 2015 04:32:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ykq4w-0001sZ-Ha for qemu-devel@nongnu.org; Wed, 22 Apr 2015 04:32:23 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:45959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykq4w-0001sH-7v for qemu-devel@nongnu.org; Wed, 22 Apr 2015 04:32:18 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Apr 2015 09:32:16 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 76F9617D8063 for ; Wed, 22 Apr 2015 09:32:53 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3M8WEh540829052 for ; Wed, 22 Apr 2015 08:32:14 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3M8WDs0032499 for ; Wed, 22 Apr 2015 04:32:14 -0400 Date: Wed, 22 Apr 2015 10:32:12 +0200 From: Cornelia Huck Message-ID: <20150422103212.403e6050.cornelia.huck@de.ibm.com> In-Reply-To: <5536A051.9000901@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> 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 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.