From patchwork Mon Nov 13 09:17:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 10055401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B6D960586 for ; Mon, 13 Nov 2017 09:27:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38F4C29333 for ; Mon, 13 Nov 2017 09:27:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D86E2933C; Mon, 13 Nov 2017 09:27:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B7AFE29333 for ; Mon, 13 Nov 2017 09:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=r6BQBJycxJaWSKqODV+M9nr+3jIHegYh4c8pOq7Ih2w=; b=jzmttOyDQqmrsYaULmZa0XiyyH Kxtof8NiKjbXPOxnMrbIHOhgOrdSwq/5aGTcZhSAEtqgdEHanzDODTtevCW8TmzPj4QvqV4WzcCIQ rvPpLP2Wz6tq+/aAWyok/sNNczEutGlRulTZ+IHDg7bUnJql8BQ+ocvqVda4tuGG+xDcNorxZN34x Fnjl3KW1v7pGKpPniDb2p9+oCXBn6qj9vd4MgtKLRDs9Frn6b7QN/hg5I4g53nD8mGBX5cJSwMTZL r3V9PUH8B7jpRs1pbcHx1m6ZQ5srozgluwxM1f5EPymed+ldCVlHTtFanekI1MGiL4xRtDo/5Ubfp QG1o0vpw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEB1y-00047K-NA; Mon, 13 Nov 2017 09:27:50 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEAtA-0002eY-TE for linux-arm-kernel@bombadil.infradead.org; Mon, 13 Nov 2017 09:18:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HjH8Eb1awgUBxEMzYNhrh5/Fv10UNsPDQ6rZUuKd9YU=; b=qZbEIsZoPTLbAI/ntKXnQ8cBH dL96CwKRaEPTjUrpXsxXNRlOOxhVllFfuKqUIMYeY434TCNmRezHTyEOw8SKUHz0PjpQvgKF0i7pz MbeyKkccgCZwGYoTqvS6GHuRuHYXnGvWxt6zRUlpD/g+U7VHH/y7ljLiZW13gmv0xpPv7IQygZY5r czSkf2dFLFcvfMlN9pjwjBY2/Kv6g+CkVVh79svWE6U0uxEfd30QTwH0IKf18pq/jyfmuF938+bA0 beeGcsllcDTPZCjpeBCbna75GdmZK5D9ieAmM6qZG95VOH7/N5pAKBDEH0uAYtpGyXwreX+DBW/xq WfN6+tVug==; Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEAt7-0005WF-3M for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2017 09:18:42 +0000 Received: by mail-wm0-x241.google.com with SMTP id r68so13278096wmr.0 for ; Mon, 13 Nov 2017 01:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HjH8Eb1awgUBxEMzYNhrh5/Fv10UNsPDQ6rZUuKd9YU=; b=G6ap2eOEYMit1hpcaMbGmVEkueYi90undnNbDc0rc+u0TTxDwzKUd6v2HpYp2Ha3BV IgwgUqKIOdJlhop5DvfT04rqlyybI8DmqCyvt3CGgPPLpQCyT0GfoA7A3hENngVXIf+i bTZYMCTDaJN4PMQnzGtJMR4SMNQz7DMxOW0Cs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HjH8Eb1awgUBxEMzYNhrh5/Fv10UNsPDQ6rZUuKd9YU=; b=oJrmZD5BiwDWYa3/SGiBaN/AXFdzJzXf5WarkaSquB2XkeBBsSjyJU/NTJW98bL54X vLoBPHCbUGoPTXuJGKUbLd8Kp2TOEnHw1QhbxiwcG4hsYyX7o9di3o9AJ5ECVIhumXdC WWkc3px1QcHfVj0ea+Qp5iiUsJn1UGdpDOjLdyMFq4NfGQpiauIz6sIxxCvLr7LUeU+3 I1VFDUqah4Kan53pzvizhqSZuj9qqYrlZc+aRCpunrhEHenBaq/63Fjgn0O7g5WiPSKF MMEnM05ZiKmCywhzSvwjh16NAJXTqQ71KkJ48QQicIcRLPVZxL2DKKR5U4fmGKXeQwMw dAXg== X-Gm-Message-State: AJaThX7nyNMJFlLuiuypHGTN+E2c0mBP0JZFGOpxHGGBnYHq1OjZ4cQg lya/ONzZ9SvyXgi1A8fSCTd4dA== X-Google-Smtp-Source: AGs4zMbMPM9BmR0L/N2RNP2zIZXLBTnD+NiUXHZHRQ6os0hnULKB6/7RKmVfLUI6u5ixm8b8lNP9lA== X-Received: by 10.28.71.90 with SMTP id u87mr5563748wma.91.1510564695567; Mon, 13 Nov 2017 01:18:15 -0800 (PST) Received: from localhost.localdomain (xd93dd96b.cust.hiper.dk. [217.61.217.107]) by smtp.gmail.com with ESMTPSA id x63sm9651399wma.39.2017.11.13.01.18.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Nov 2017 01:18:14 -0800 (PST) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 15/27] KVM: arm/arm64: GICv4: Propagate property updates to VLPIs Date: Mon, 13 Nov 2017 10:17:40 +0100 Message-Id: <20171113091752.10663-16-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171113091752.10663-1-christoffer.dall@linaro.org> References: <20171113091752.10663-1-christoffer.dall@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marc Zyngier Upon updating a property, we propagate it all the way to the physical ITS, and ask for an INV command to be executed there. Acked-by: Christoffer Dall Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- virt/kvm/arm/vgic/vgic-its.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c index 78d11aed1e17..4768a0e21cc5 100644 --- a/virt/kvm/arm/vgic/vgic-its.c +++ b/virt/kvm/arm/vgic/vgic-its.c @@ -297,6 +297,9 @@ static int update_lpi_config(struct kvm *kvm, struct vgic_irq *irq, spin_unlock_irqrestore(&irq->irq_lock, flags); } + if (irq->hw) + return its_prop_update_vlpi(irq->host_irq, prop, true); + return 0; }