From patchwork Fri Apr 10 07:48:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 46997 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC961218D9 for ; Fri, 10 Apr 2015 07:48:22 +0000 (UTC) Received: by lamp14 with SMTP id p14sf2200944lam.3 for ; Fri, 10 Apr 2015 00:48:22 -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=Nvvg6/KoUO9IAn8Pfv4WbL3hbfv1LRRqTy0W7dZxpyl9Kw2Uj38NaCbMoJMD5l0ngT 4X3Dop76GkkYFrGrIjmfaVXe7Rnv09j/Xv1Kbf/I76cLdUKMYXry3nA2aP6OBrOiXxlr SiP0FTVpY09cuPXZgdYyIbr6CufKX+twD2ludE4OsjJDTLKE5xJsMokL2HTFZyhpzPxG rpTiCH5mjrBAicy7DUdJYhAlpWzik9pF5zwSv74wMpJSSIf2VvcI5gIvBMJUcLVLGNK4 lxGMuWjptObC+CpCWhzsigCI59pNgSa+iWpST4QITmmBD3UX8q1bMy7KPe8pMHzYho5A UEDA== X-Gm-Message-State: ALoCoQkzhQvj2BSdgBcaG6zCHiyIDGK/MYeTDfQEryi2sb8sTbgcuBdpZ2ZWHn6RdvRQt89U9dc/ X-Received: by 10.152.206.36 with SMTP id ll4mr62242lac.6.1428652102026; Fri, 10 Apr 2015 00:48:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.2 with SMTP id x2ls420061lag.99.gmail; Fri, 10 Apr 2015 00:48:21 -0700 (PDT) X-Received: by 10.152.234.169 with SMTP id uf9mr272107lac.88.1428652101861; Fri, 10 Apr 2015 00:48:21 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id bd7si843325lab.77.2015.04.10.00.48.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 00:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbzk7 with SMTP id zk7so7698847lbb.0 for ; Fri, 10 Apr 2015 00:48:21 -0700 (PDT) X-Received: by 10.113.10.134 with SMTP id ea6mr250336lbd.29.1428652101742; Fri, 10 Apr 2015 00:48:21 -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 l1csp930329lbt; Fri, 10 Apr 2015 00:48:20 -0700 (PDT) X-Received: by 10.180.216.103 with SMTP id op7mr12671713wic.90.1428652100442; Fri, 10 Apr 2015 00:48:20 -0700 (PDT) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com. [74.125.82.46]) by mx.google.com with ESMTPS id ci10si1849651wjc.121.2015.04.10.00.48.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 00:48:20 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.46 as permitted sender) client-ip=74.125.82.46; Received: by wgyo15 with SMTP id o15so9476810wgy.2 for ; Fri, 10 Apr 2015 00:48:20 -0700 (PDT) X-Received: by 10.180.188.193 with SMTP id gc1mr12743184wic.7.1428652099826; Fri, 10 Apr 2015 00:48:19 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id df1sm5833465wib.12.2015.04.10.00.48.18 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Apr 2015 00:48:18 -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 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 Message-Id: <1428652090-5354-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1428652090-5354-1-git-send-email-eric.auger@linaro.org> References: <1428652090-5354-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.171 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)