From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Alexander Graf <agraf@suse.de>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Avi Kivity <avi@redhat.com>,
Jens Freimann <jfrei@linux.vnet.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heinz Graalfs <graalfs@linux.vnet.ibm.com>,
KVM <kvm@vger.kernel.org>
Subject: Re: [PATCH 2/3] s390/kvm: Add documentation for KVM_S390_INTERRUPT.
Date: Wed, 10 Oct 2012 18:38:55 +0200 [thread overview]
Message-ID: <20121010183855.475eab15@BR9GNB5Z> (raw)
In-Reply-To: <EC4CDF41-FB37-4CB1-A6B2-83D9C2A8BAFC@suse.de>
On Wed, 10 Oct 2012 18:32:14 +0200
Alexander Graf <agraf@suse.de> wrote:
>
> On 10.10.2012, at 18:27, Marcelo Tosatti wrote:
>
> > On Tue, Oct 02, 2012 at 04:25:37PM +0200, Christian Borntraeger wrote:
> >> From: Cornelia Huck <cornelia.huck@de.ibm.com>
> >>
> >> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
> >> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> >> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> >> ---
> >> Documentation/virtual/kvm/api.txt | 33 +++++++++++++++++++++++++++++++++
> >> 1 file changed, 33 insertions(+)
> >>
> >> diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
> >> index 36befa7..c533338 100644
> >> --- a/Documentation/virtual/kvm/api.txt
> >> +++ b/Documentation/virtual/kvm/api.txt
> >> @@ -1984,6 +1984,39 @@ return the hash table order in the parameter. (If the guest is using
> >> the virtualized real-mode area (VRMA) facility, the kernel will
> >> re-create the VMRA HPTEs on the next KVM_RUN of any vcpu.)
> >>
> >> +4.77 KVM_S390_INTERRUPT
> >> +
> >> +Capability: basic
> >> +Archtectures: s390
> >
> > typo.
> >
> >> +Type: vm ioctl, vcpu ioctl
> >> +Parameters: struct kvm_s390_interrupt (in)
> >> +Returns: 0 on success, -1 on error
> >> +
> >> +Allows to inject an interrupt to the guest. Interrupts can be floating
> >> +(vm ioctl) or per cpu (vcpu ioctl), depending on the interrupt type.
> >> +
> >> +Interrupt parameters are passed via kvm_s390_interrupt:
> >> +
> >> +struct kvm_s390_interrupt {
> >> + __u32 type;
> >> + __u32 parm;
> >> + __u64 parm64;
> >> +};
> >
> > No need for a reserved area for extensibility?
>
> This is documentation for an existing ioctl, no?
> And yes, a reserved area would've been nice ;). But it's too late for that one now.
Indeed. We'll have to keep this for backward compatibility and introduce
a new mechanism for larger interrupt structures.
>
>
> Alex
>
> >
> >> +
> >> +type can be one of the following:
> >> +
> >> +KVM_S390_SIGP_STOP (vcpu) - sigp restart
> >> +KVM_S390_PROGRAM_INT (vcpu) - program check; code in parm
> >> +KVM_S390_SIGP_SET_PREFIX (vcpu) - sigp set prefix; prefix address in parm
> >> +KVM_S390_RESTART (vcpu) - restart
> >> +KVM_S390_INT_VIRTIO (vm) - virtio external interrupt; external interrupt
> >> + parameters in parm and parm64
> >> +KVM_S390_INT_SERVICE (vm) - sclp external interrupt; sclp parameter in parm
> >> +KVM_S390_INT_EMERGENCY (vcpu) - sigp emergency; source cpu in parm
> >> +KVM_S390_INT_EXTERNAL_CALL (vcpu) - sigp external call; source cpu in parm
> >> +
> >> +Note that the vcpu ioctl is asynchronous to vpcu execution.
> >
> > typo
> >
> >
>
next prev parent reply other threads:[~2012-10-10 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-02 14:25 [PATCH 0/3] s390/kvm: misc fixes Christian Borntraeger
2012-10-02 14:25 ` [PATCH 1/3] s390/kvm: Interrupt injection bugfix Christian Borntraeger
2012-10-02 14:25 ` [PATCH 2/3] s390/kvm: Add documentation for KVM_S390_INTERRUPT Christian Borntraeger
2012-10-10 16:27 ` Marcelo Tosatti
2012-10-10 16:32 ` Alexander Graf
2012-10-10 16:38 ` Cornelia Huck [this message]
2012-10-10 16:37 ` Cornelia Huck
2012-10-10 18:43 ` Marcelo Tosatti
2012-10-10 18:57 ` Marcelo Tosatti
2012-10-02 14:25 ` [PATCH 3/3] s390/kvm: dont announce RRBM support 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=20121010183855.475eab15@BR9GNB5Z \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=avi@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=graalfs@linux.vnet.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=jfrei@linux.vnet.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=schwidefsky@de.ibm.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