All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: armbru@redhat.com, mdroth@linux.vnet.ibm.com,
	qemu-devel@nongnu.org, borntraeger@de.ibm.com,
	jfrei@linux.vnet.ibm.com, Xu Wang <gesaint@linux.vnet.ibm.com>,
	lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH 3/6] s390/kvm: diag288 instruction interception and handling
Date: Wed, 22 Apr 2015 11:16:00 +0200	[thread overview]
Message-ID: <553766D0.8090709@suse.de> (raw)
In-Reply-To: <20150422103212.403e6050.cornelia.huck@de.ibm.com>

On 04/22/2015 10:32 AM, Cornelia Huck wrote:
> On Tue, 21 Apr 2015 21:09:05 +0200
> Alexander Graf <agraf@suse.de> wrote:
>
>> On 04/17/2015 09:52 AM, Cornelia Huck wrote:
>>> From: Xu Wang <gesaint@linux.vnet.ibm.com>
>>>
>>> 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 <gesaint@linux.vnet.ibm.com>
>>> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
>>> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
>> 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.


Alex

  reply	other threads:[~2015-04-22  9:17 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17  7:52 [Qemu-devel] [PATCH 0/6] s390x: support diag288 watchdog Cornelia Huck
2015-04-17  7:52 ` [Qemu-devel] [PATCH 1/6] s390x/virtio-ccw: enable has_dynamic_sysbus Cornelia Huck
2015-04-21 19:06   ` Alexander Graf
2015-04-22  8:25     ` Cornelia Huck
2015-04-22  9:14       ` Alexander Graf
2015-04-22 11:40         ` Cornelia Huck
2015-04-22 12:21           ` Alexander Graf
2015-04-24  9:07             ` Cornelia Huck
2015-04-27 13:57               ` Alexander Graf
2015-04-27 14:19                 ` Cornelia Huck
2015-04-27 15:15                   ` Andreas Färber
2015-04-27 17:02                     ` Cornelia Huck
2015-04-27 15:28                   ` Alexander Graf
2015-04-27 16:56                     ` Cornelia Huck
2015-04-28  6:50                       ` Markus Armbruster
2015-04-17  7:52 ` [Qemu-devel] [PATCH 2/6] watchdog: Add watchdog device diag288 to the sysbus Cornelia Huck
2015-04-29 12:43   ` Markus Armbruster
2015-04-29 14:58     ` Cornelia Huck
2015-05-08  9:16   ` Cornelia Huck
2015-04-17  7:52 ` [Qemu-devel] [PATCH 3/6] s390/kvm: diag288 instruction interception and handling Cornelia Huck
2015-04-21 19:09   ` Alexander Graf
2015-04-22  8:32     ` Cornelia Huck
2015-04-22  9:16       ` Alexander Graf [this message]
2015-04-22 11:37         ` Cornelia Huck
2015-04-17  7:52 ` [Qemu-devel] [PATCH 4/6] watchdog: Add migration support to diag288 watchdog device Cornelia Huck
2015-04-17  7:52 ` [Qemu-devel] [PATCH 5/6] nmi: Implement inject_nmi() for non-monitor context use Cornelia Huck
2015-04-17  7:52 ` [Qemu-devel] [PATCH 6/6] watchdog: Add new Virtual Watchdog action INJECT-NMI Cornelia Huck
2015-04-17 12:28   ` Eric Blake
2015-04-20 15:23     ` Cornelia Huck

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=553766D0.8090709@suse.de \
    --to=agraf@suse.de \
    --cc=armbru@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=gesaint@linux.vnet.ibm.com \
    --cc=jfrei@linux.vnet.ibm.com \
    --cc=lcapitulino@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.