From patchwork Tue May 9 10:44:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9717543 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 6854860237 for ; Tue, 9 May 2017 10:46:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5718B283F2 for ; Tue, 9 May 2017 10:46:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C043283F9; Tue, 9 May 2017 10:46:22 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 C420D282E8 for ; Tue, 9 May 2017 10:46:21 +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=Ou1y7LHpyjIHP2B+e1Fxkxm4xya3eCxAHQ49s4IdffA=; b=sNpqRLxK4xCjljFs3b+4n4Pg2C PwXLqXowgkhMVZCoQMkGZXATfVszt69kW5BPYQc01pIs01kN5oMCPZy6lPawjLB3bNI208MFyU3Oe sDrRzbSWDnChFPuGAag0xfQE/7t9UpnYJo/9dE3FGHLkGolxa3hbHO3D0dXtwot3XdXqNCr+vNDBB 9yp9keLkCvE2ULGKX1bJdsFPotIU2xLdbxl7G1ewcDGgGibwwkBpRPF2kT6Q9LtsydVXhl0c2o89S y1zN9a4nutKQEGgKpaTiOd3TdZ/o+jnLt8fRNd5/axI4gR46XDa3cQpOWusR2VuzBfPFtwdX8qUfj ULn/FDuA==; 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 1d82ep-0003kB-Fy; Tue, 09 May 2017 10:46:19 +0000 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d82eA-0002qK-8f for linux-arm-kernel@lists.infradead.org; Tue, 09 May 2017 10:45:40 +0000 Received: by mail-qk0-x22e.google.com with SMTP id u75so75008940qka.3 for ; Tue, 09 May 2017 03:45:17 -0700 (PDT) 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=Wt+2A07nYJAqWi/ed3Hs57Lmx+N6+7R7Xyh2cHtV2uA=; b=cNUNWWm1syJrvuIhy66MxmcTv91URXekMtx2KZMcuNv+9pZX2Lv/EBT5U0FlSPTmtS W0Ag4OieKifESX3XkKfOOBxKtvAvG4gChktZvrsJvcD9tfRkE62YyHnI3uYkdF9sN2gL 13MwBtIXVhbH2EwOv/DB8PvDtVJ2EJHkHt49Y= 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=Wt+2A07nYJAqWi/ed3Hs57Lmx+N6+7R7Xyh2cHtV2uA=; b=J7+noRCU/h61bQ1lfDsI+s5lR5M0LJlrGnfJGGm2/JJtrC7XUt+42mHwI659Tu2FYO aJ4INTNa4+W3uspaKOjuutyOrlguWWLe1T79MWNxYLVgKP97SUqnfLMVnGdDsjnGQ674 QrjasHhqAR1qq5nLd/c7M60zHOv3JgxOfRMdMwAhK4xEqhgsAR9lEkcfl2EjYGkN0VHu prmKMeKmfKg1x3e/7qx/cMTdF8aGbQX+gZINWZ6lnp8LJuN4W6tL482M1RJrNRVnujWs bIqNequ67GTjZmNg1QLSUE7uxXikETfn2io+6lNPtlWtOb1FqQ+2Z38FTrJAtsqs7n6W P74g== X-Gm-Message-State: AN3rC/6+g1wTzxi8ZemBT33eOE3UZgFnQreFUXcXdUoX2lVaXmccvXTa fHAwuEo3TtG+Lg1k X-Received: by 10.80.193.9 with SMTP id l9mr15875270edf.118.1494326717098; Tue, 09 May 2017 03:45:17 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id o30sm2331510edc.42.2017.05.09.03.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 May 2017 03:45:16 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 04/37] KVM: arm/arm64: Add GICV3 pending table save API documentation Date: Tue, 9 May 2017 12:44:33 +0200 Message-Id: <20170509104506.30929-5-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170509104506.30929-1-cdall@linaro.org> References: <20170509104506.30929-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170509_034538_501464_09951236 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. 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 , Eric Auger , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.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: Eric Auger Add description for how to save GICV3 LPI pending bit into guest RAM pending tables. Signed-off-by: Eric Auger Acked-by: Christoffer Dall Acked-by: Marc Zyngier --- Documentation/virtual/kvm/devices/arm-vgic-v3.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/virtual/kvm/devices/arm-vgic-v3.txt b/Documentation/virtual/kvm/devices/arm-vgic-v3.txt index c1a2461..9293b45 100644 --- a/Documentation/virtual/kvm/devices/arm-vgic-v3.txt +++ b/Documentation/virtual/kvm/devices/arm-vgic-v3.txt @@ -167,11 +167,17 @@ Groups: KVM_DEV_ARM_VGIC_CTRL_INIT request the initialization of the VGIC, no additional parameter in kvm_device_attr.addr. + KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES + save all LPI pending bits into guest RAM pending tables. + + The first kB of the pending table is not altered by this operation. Errors: -ENXIO: VGIC not properly configured as required prior to calling this attribute -ENODEV: no online VCPU -ENOMEM: memory shortage when allocating vgic internal data + -EFAULT: Invalid guest ram access + -EBUSY: One or more VCPUS are running KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO