From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Eric Auger <eric.auger@linaro.org>,
eric.auger@st.com, christoffer.dall@linaro.org,
qemu-devel@nongnu.org, a.rigo@virtualopensystems.com,
agraf@suse.de, aik@ozlabs.ru, bsd@redhat.com,
pbonzini@redhat.com, peter.maydell@linaro.org,
mtosatti@redhat.com, cornelia.huck@de.ibm.com, rth@twiddle.net,
thuth@linux.vnet.ibm.com, afaerber@suse.de, qemu-ppc@nongnu.org
Cc: alex.williamson@redhat.com, kvmarm@lists.cs.columbia.edu,
patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH v2 1/2] KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks
Date: Wed, 03 Sep 2014 14:50:06 +0200 [thread overview]
Message-ID: <54070E7E.9080506@de.ibm.com> (raw)
In-Reply-To: <1409738050-3810-2-git-send-email-eric.auger@linaro.org>
On 03/09/14 11:54, Eric Auger wrote:
[...]
> --- a/kvm-all.c
> +++ b/kvm-all.c
[...]
> @@ -1548,6 +1549,12 @@ int kvm_init(MachineClass *mc)
> kvm_eventfds_allowed =
> (kvm_check_extension(s, KVM_CAP_IOEVENTFD) > 0);
>
> + kvm_irqfds_allowed =
> + (kvm_check_extension(s, KVM_CAP_IRQFD) > 0);
^^^^^^^^^^^^^
> +
> + kvm_resamplefds_allowed =
> + (kvm_check_extension(s, KVM_CAP_IRQFD_RESAMPLE) > 0);
> +
[...]
> diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
> index a85a480..f937568 100644
> --- a/target-s390x/kvm.c
> +++ b/target-s390x/kvm.c
> @@ -1290,7 +1290,6 @@ void kvm_arch_init_irq_routing(KVMState *s)
> * have to override the common code kvm_halt_in_kernel_allowed setting.
> */
> if (kvm_check_extension(s, KVM_CAP_IRQ_ROUTING)) {
^^^^^^^^^^^^^^^^^^^
> - kvm_irqfds_allowed = true;
> kvm_gsi_routing_allowed = true;
> kvm_halt_in_kernel_allowed = false;
> }
I first thought that this is wrong, because on s390 we forgot to announce IRQFD when we introduced
it. As you can see in both hunks, we check for KVM_CAP_IRQ_ROUTING and not for CAP_IRQFD
Luckily, the kernel got fixed with commit ebc3226202d5956a5963185222982d435378b899
("KVM: s390: announce irqfd capability") and the capability was introduced with
commit 84223598778ba08041f4297fda485df83414d57e ("KVM: s390: irq routing for adapter interrupts").
Looks that both patches first appear with 3.15, so there should be no kernel version that
is affected by this change. You might want to add that to your changelog to help distros that
84223598778ba08041f4297fda485df83414d57e also needs ebc3226202d5956a5963185222982d435378b899.
Christian
next prev parent reply other threads:[~2014-09-03 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 9:54 [Qemu-devel] [PATCH v2 0/2] actual checks of KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE Eric Auger
2014-09-03 9:54 ` [Qemu-devel] [PATCH v2 1/2] KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks Eric Auger
2014-09-03 12:50 ` Christian Borntraeger [this message]
2014-09-03 13:19 ` Eric Auger
2014-09-03 9:54 ` [Qemu-devel] [PATCH v2 2/2] vfio: use kvm_resamplefds_enabled() Eric Auger
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=54070E7E.9080506@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=a.rigo@virtualopensystems.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=bsd@redhat.com \
--cc=christoffer.dall@linaro.org \
--cc=cornelia.huck@de.ibm.com \
--cc=eric.auger@linaro.org \
--cc=eric.auger@st.com \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=mtosatti@redhat.com \
--cc=patches@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
--cc=thuth@linux.vnet.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 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.