From patchwork Tue Jun 2 16:33:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 49414 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7515320BD1 for ; Tue, 2 Jun 2015 16:37:17 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf43410991lbc.2 for ; Tue, 02 Jun 2015 09:37:16 -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:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=SUCIcTvte7aaciG+kI49DsBryGU7kHOq3EujpXMmlWk=; b=TbdB8gZ+5BtesE+NlrMkyAfSX4WrUueOd2jBu+0un014bxziJBwe+0AKuDhfOSY2Cj yc/d+GPptbTODRiP9vqVt1hajT8uXM0F1he5cP0ExV1FTUAghH9JVDcU3puB2sgd7dk2 lAQOvtszS2NDpxVkwhbzGllImY31tx5elL70lHkh/GSvY8WCMvXm8hsm1FJEgS2rJs6O 3o1F0nRmf1L8TTRhxRjU4CYZoZIIri6Rak4kTBTIiCRl/+0hyClQeg04HzriTarMfcPk k/HWR9SokAexyjkvHJ0ubPfbjOgQ7pNhx5/NMO20ZrJLoRyhEz420XXG+LfujFOCo46n CE1Q== X-Gm-Message-State: ALoCoQnERPxvOGZ0rQhf86OJm4mLZxc4jNmZf4iebEzrRaWxwAbdkNj1zfX+LuOE20A0S+wl4uJv X-Received: by 10.112.189.131 with SMTP id gi3mr26574223lbc.6.1433263036283; Tue, 02 Jun 2015 09:37:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.202 with SMTP id u10ls820066lau.6.gmail; Tue, 02 Jun 2015 09:37:16 -0700 (PDT) X-Received: by 10.112.185.100 with SMTP id fb4mr27394097lbc.79.1433263036067; Tue, 02 Jun 2015 09:37:16 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id xp7si11819574lac.20.2015.06.02.09.37.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 09:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbuc2 with SMTP id uc2so108287259lbb.2 for ; Tue, 02 Jun 2015 09:37:15 -0700 (PDT) X-Received: by 10.112.150.167 with SMTP id uj7mr19586690lbb.112.1433263035938; Tue, 02 Jun 2015 09:37:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3199847lbb; Tue, 2 Jun 2015 09:37:15 -0700 (PDT) X-Received: by 10.55.19.13 with SMTP id d13mr49096316qkh.100.1433263034638; Tue, 02 Jun 2015 09:37:14 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j9si16253342qhc.78.2015.06.02.09.37.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Jun 2015 09:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:59755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzpBh-0006WB-Pz for patch@linaro.org; Tue, 02 Jun 2015 12:37:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzp8X-0001k3-Vi for qemu-devel@nongnu.org; Tue, 02 Jun 2015 12:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzp8W-0000tg-SM for qemu-devel@nongnu.org; Tue, 02 Jun 2015 12:33:57 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzp8W-0000r2-Jn for qemu-devel@nongnu.org; Tue, 02 Jun 2015 12:33:56 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Yzp8T-00031p-Iz for qemu-devel@nongnu.org; Tue, 02 Jun 2015 17:33:53 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 2 Jun 2015 17:33:47 +0100 Message-Id: <1433262832-11527-18-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1433262832-11527-1-git-send-email-peter.maydell@linaro.org> References: <1433262832-11527-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 17/22] arm_gicv2m: set kvm_gsi_direct_mapping and kvm_msi_via_irqfd_allowed X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@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.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Eric Auger 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 Signed-off-by: Peter Maydell --- 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 9f84f72..43d1976 100644 --- a/hw/intc/arm_gicv2m.c +++ b/hw/intc/arm_gicv2m.c @@ -148,6 +148,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)