From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: linux-s390@vger.kernel.org, kvm@vger.kernel.org, gleb@kernel.org,
qemu-devel@nongnu.org, agraf@suse.de, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 4/5] KVM: s390: irq routing for adapter interrupts.
Date: Fri, 21 Mar 2014 11:08:40 +0100 [thread overview]
Message-ID: <20140321110840.1af6c078.cornelia.huck@de.ibm.com> (raw)
In-Reply-To: <532C0713.7080208@de.ibm.com>
On Fri, 21 Mar 2014 10:32:03 +0100
Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> On 17/03/14 19:11, Cornelia Huck wrote:
> > Introduce a new interrupt class for s390 adapter interrupts and enable
> > irqfds for s390.
> >
> > This is depending on a new s390 specific vm capability, KVM_CAP_S390_IRQCHIP,
> > that needs to be enabled by userspace.
> >
> > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
> > ---
> > Documentation/virtual/kvm/api.txt | 21 +++-
> > Documentation/virtual/kvm/devices/s390_flic.txt | 6 +-
> > arch/s390/include/asm/kvm_host.h | 10 ++
> > arch/s390/kvm/Kconfig | 2 +
> > arch/s390/kvm/Makefile | 2 +-
> > arch/s390/kvm/interrupt.c | 132 ++++++++++++++++++++++-
> > arch/s390/kvm/irq.h | 22 ++++
> > arch/s390/kvm/kvm-s390.c | 17 +++
> > include/linux/kvm_host.h | 9 ++
> > include/uapi/linux/kvm.h | 11 ++
> > 10 files changed, 222 insertions(+), 10 deletions(-)
> > create mode 100644 arch/s390/kvm/irq.h
> > diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
> > index 94b337e..8155bb4 100644
> > --- a/arch/s390/kvm/interrupt.c
> > +++ b/arch/s390/kvm/interrupt.c
> > @@ -13,6 +13,7 @@
> > #include <linux/interrupt.h>
> > #include <linux/kvm_host.h>
> > #include <linux/hrtimer.h>
> > +#include <linux/mmu_context.h>
> > #include <linux/signal.h>
> > #include <linux/slab.h>
> > #include <asm/asm-offsets.h>
> > @@ -1118,8 +1119,13 @@ static int kvm_s390_adapter_map(struct kvm *kvm, unsigned int id, __u64 addr)
> > goto out;
> > }
> > INIT_LIST_HEAD(&map->list);
> > - map->addr = addr;
> > - ret = get_user_pages_fast(addr, 1, 1, &map->page);
> > + map->guest_addr = addr;
> > + map->addr = gmap_translate(addr, kvm->arch.gmap);
> > + if (map->addr == -EFAULT) {
> > + ret = -EFAULT;
> > + goto out;
> > + }
> > + ret = get_user_pages_fast(map->addr, 1, 1, &map->page);
> > if (ret < 0)
> > goto out;
> > BUG_ON(ret != 1);
> > @@ -1144,7 +1150,7 @@ static int kvm_s390_adapter_unmap(struct kvm *kvm, unsigned int id, __u64 addr)
> >
> > down_write(&adapter->maps_lock);
> > list_for_each_entry_safe(map, tmp, &adapter->maps, list) {
> > - if (map->addr == addr) {
> > + if (map->guest_addr == addr) {
> > found = 1;
> > list_del(&map->list);
> > put_page(map->page);
>
>
> Can't these two hunks be merged into the previous patch?
The guest_addr stuff should be in the previous patch, proably some
rebasing fallout. Will fix.
>
> Otherwise:
> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
>
next prev parent reply other threads:[~2014-03-21 10:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 18:11 [Qemu-devel] [PATCH v2 0/5] KVM: irqfds for s390 Cornelia Huck
2014-03-17 18:11 ` [Qemu-devel] [PATCH v2 1/5] KVM: eventfd: Fix lock order inversion Cornelia Huck
2014-03-17 21:55 ` Christian Borntraeger
2014-03-18 9:18 ` Cornelia Huck
2014-03-18 16:05 ` Paolo Bonzini
2014-03-17 18:11 ` [Qemu-devel] [PATCH v2 2/5] KVM: Add per-vm capability enablement Cornelia Huck
2014-03-17 22:09 ` Christian Borntraeger
2014-03-21 9:12 ` Christian Borntraeger
2014-03-17 18:11 ` [Qemu-devel] [PATCH v2 3/5] KVM: s390: adapter interrupt sources Cornelia Huck
2014-03-18 8:11 ` Heiko Carstens
2014-03-18 8:41 ` Cornelia Huck
2014-03-21 9:26 ` Christian Borntraeger
2014-03-21 10:07 ` Cornelia Huck
2014-03-17 18:11 ` [Qemu-devel] [PATCH v2 4/5] KVM: s390: irq routing for adapter interrupts Cornelia Huck
2014-03-21 9:32 ` Christian Borntraeger
2014-03-21 10:08 ` Cornelia Huck [this message]
2014-03-17 18:11 ` [Qemu-devel] [PATCH v2 5/5] KVM: Bump KVM_MAX_IRQ_ROUTES for s390 Cornelia Huck
2014-03-18 16:07 ` Paolo Bonzini
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=20140321110840.1af6c078.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).