From: Eric Auger <eric.auger@linaro.org>
To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org,
pbonzini@redhat.com, peter.maydell@linaro.org,
cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, agraf@suse.de,
james.hogan@imgtec.com
Cc: aik@ozlabs.ru, kvmarm@lists.cs.columbia.edu,
christoffer.dall@linaro.org, patches@linaro.org
Subject: [Qemu-devel] [PATCH v2 2/2] arm_gicv2m: set kvm_gsi_direct_mapping and kvm_msi_via_irqfd_allowed
Date: Fri, 10 Apr 2015 08:48:10 +0100 [thread overview]
Message-ID: <1428652090-5354-3-git-send-email-eric.auger@linaro.org> (raw)
In-Reply-To: <1428652090-5354-1-git-send-email-eric.auger@linaro.org>
After introduction of kvm_arch_msi_data_to_gsi, kvm_gsi_direct_mapping
now can be set on ARM. Also kvm_msi_via_irqfd_allowed can be set,
depending on kernel irqfd support, hence enabling VIRTIO-PCI with
vhost back-end.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
---
hw/intc/arm_gicv2m.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/intc/arm_gicv2m.c b/hw/intc/arm_gicv2m.c
index a80a16d..7c6bea2 100644
--- a/hw/intc/arm_gicv2m.c
+++ b/hw/intc/arm_gicv2m.c
@@ -138,6 +138,8 @@ static void gicv2m_realize(DeviceState *dev, Error **errp)
}
msi_supported = true;
+ kvm_gsi_direct_mapping = true;
+ kvm_msi_via_irqfd_allowed = kvm_irqfds_enabled();
}
static void gicv2m_init(Object *obj)
--
1.8.3.2
next prev parent reply other threads:[~2015-04-10 7:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 7:48 [Qemu-devel] [PATCH v2 0/2] ARM adaptations for vhost irqfd setup Eric Auger
2015-04-10 7:48 ` [Qemu-devel] [PATCH v2 1/2] kvm: introduce kvm_arch_msi_data_to_gsi Eric Auger
2015-04-10 9:10 ` Christoffer Dall
2015-04-10 10:50 ` Cornelia Huck
2015-04-10 7:48 ` Eric Auger [this message]
2015-04-10 8:15 ` [Qemu-devel] [PATCH v2 0/2] ARM adaptations for vhost irqfd setup Paolo Bonzini
2015-06-01 18:28 ` Peter Maydell
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=1428652090-5354-3-git-send-email-eric.auger@linaro.org \
--to=eric.auger@linaro.org \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=borntraeger@de.ibm.com \
--cc=christoffer.dall@linaro.org \
--cc=cornelia.huck@de.ibm.com \
--cc=eric.auger@st.com \
--cc=james.hogan@imgtec.com \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=patches@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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).