From patchwork Thu Apr 9 15:20:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 46968 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E312C21416 for ; Thu, 9 Apr 2015 15:20:23 +0000 (UTC) Received: by wgin8 with SMTP id n8sf17274004wgi.0 for ; Thu, 09 Apr 2015 08:20:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Hd9Zkzib7iQpEbO+RYkfzuyrLmPYsYJ/aHPGRxkTqZA=; b=GQwfrXZ7GLa/6fB+YRuuirhXSxgPnmIU5TIhNw2arYFpzN8wOmUNpdafb/wqd52Vsw 6oyxonSFRFPAFXnXN+jRrvLBDW3CO13Df7TAyAOeyWSrZYPPaPI4hkutOJvYyODnswIM kcj2G5/e14aClfGw8JJ/TVwB7DDIENzEbz6HTHrex6B9D7RgP7YE0JUO6bLY2l9sfgKD NrCiHFQ92PoWSnD4lcWN31Yn7wZo0MzTEssKUM95bEYDFScCQ6jV0kLfdL45JTaojr8p bJWX+sdZQdKFX50zmHC7BZ5yD8ylj8iwNhosh7zsCdzX6LSYdmrdCXwx+GOANkdrgVE9 9fxQ== X-Gm-Message-State: ALoCoQlCBpYxOHRFr4tjhe6RbGVVqtHDGzAuA9OezGVl9+oHZ7y8h7nRkes/TaumN/Mq+xMEWHvR X-Received: by 10.152.19.67 with SMTP id c3mr70741lae.7.1428592823262; Thu, 09 Apr 2015 08:20:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.245.43 with SMTP id xl11ls329380lac.21.gmail; Thu, 09 Apr 2015 08:20:22 -0700 (PDT) X-Received: by 10.112.204.199 with SMTP id la7mr8760960lbc.114.1428592822808; Thu, 09 Apr 2015 08:20:22 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id te1si11693999lbb.72.2015.04.09.08.20.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 08:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbqq2 with SMTP id qq2so85013328lbb.3 for ; Thu, 09 Apr 2015 08:20:22 -0700 (PDT) X-Received: by 10.112.119.234 with SMTP id kx10mr25188795lbb.35.1428592822728; Thu, 09 Apr 2015 08:20:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.67.65 with SMTP id l1csp536449lbt; Thu, 9 Apr 2015 08:20:22 -0700 (PDT) X-Received: by 10.181.11.129 with SMTP id ei1mr4715491wid.57.1428592821899; Thu, 09 Apr 2015 08:20:21 -0700 (PDT) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com. [74.125.82.43]) by mx.google.com with ESMTPS id bn4si24670882wib.52.2015.04.09.08.20.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2015 08:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.43 as permitted sender) client-ip=74.125.82.43; Received: by wgso17 with SMTP id o17so11938852wgs.1 for ; Thu, 09 Apr 2015 08:20:21 -0700 (PDT) X-Received: by 10.194.234.40 with SMTP id ub8mr62009666wjc.100.1428592821649; Thu, 09 Apr 2015 08:20:21 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id m9sm20590698wiz.24.2015.04.09.08.20.19 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Apr 2015 08:20:20 -0700 (PDT) From: Eric Auger 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: christoffer.dall@linaro.org, kvmarm@lists.cs.columbia.edu, patches@linaro.org, aik@ozlabs.ru Subject: [PATCH 2/2] arm_gicv2m: set kvm_gsi_direct_mapping and kvm_msi_via_irqfd_allowed Date: Thu, 9 Apr 2015 16:20:08 +0100 Message-Id: <1428592808-4424-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1428592808-4424-1-git-send-email-eric.auger@linaro.org> References: <1428592808-4424-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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)