From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E42FC433FE for ; Wed, 19 Oct 2022 16:11:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wO77doHoTZkFxGxsgxznT17F46aoIiJ59sRcqPuFE+8=; b=zNp0ruidswhlnr S2+XxjS2SRzoPucebr2RwyMLL3cB40yneNK2lkqtAo4k5muqAVNUvf1FlU5nCfTd2cIwnk4IwxAwQ kRQ9QUkAXGSK/FyZ5Fdi0KAQIIyipaZvX+o989Y/LDUnwL6JCV3dGTi0u/5STLYj3CPqqY/pzYfcZ cFVfh07W/gcNxVBjQtrKQqOOXTPwSyiTbNL3W52Udtln/pBbOBzxl3xM3vb1J9X+C5SpOqIDouRGR EiTtsyzh/NcIeixs7u94SS72pSASYBx8ZV7fUXYHvmVw1uKmQ0eZ5SQURCcKbzqMizeuHfyr9V4n1 8N29gcoO4qUjn33IdTAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1olBeO-003lPO-2P; Wed, 19 Oct 2022 16:10:36 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1olBUJ-003cJf-5j for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2022 16:00:12 +0000 Received: by mail-ed1-x529.google.com with SMTP id s30so25955697eds.1 for ; Wed, 19 Oct 2022 09:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=O1cLnZm/LoMDz6+B+n/voHfjErB3lHfA2RpQhUASGvA=; b=QEfVmhM5sGU3Xc0Ip8XZ+3M85MM3WzsDLdEFW3/OAoq7D2HKb5EimjYNE7sB4wabyQ ZlHQaVlLKXDEtCh+ZZkYC5z9NFwm+WSCKWH5t2oFd8Kl5q8JrIzPaKiQhzbAiI/uq0Y0 sJJU+pEMOHvIpNtacM8sw/bQrS+ML3efhbqVqQlZH5D9NN8ky4KyzOkuCuAgJPVM1Nvz TozCIkrRoDHYWCaMPkyWN9GQRlw7F0C1XlpVvJ63Xc642eXLgBdDwC3OUZdHDhc6L+9U ODt5w2q7btTathGgOFXcYTeddKewwVS0Xs2ttNN0sLafHgUsZOC/n6tvTuusev3NFqDk nD/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=O1cLnZm/LoMDz6+B+n/voHfjErB3lHfA2RpQhUASGvA=; b=quu6cjRoAXjAFgC/8oJb5un9Q5OWqSM++JtfrQvd5o751A7D/KlZJkoXGz5DA5Zwvz a0RlBX1ZK1I8Fr302/HY9/bqUhHHzMNiW0YsNiVCY5zgdGBr+3xcBuStIFiXXsxzUneI gHxucvs0Qpc8fRRmHBaGbxpBs9a5BS9bGIHbwi2DiQuM1+9wkDU+Kyyg1yGA4vw5aQlR LZHqrpFuTHzLPYJw/fjSofoYdBQ9NqppgI8P/eNyqzKgalV/FJ9I01360vSqwG8qXMPa 7LVo5U1F6fo8fWXOUPrIV3nZ/tAB7cHhyDtWRzmzZPaIdisvJcWFBHK6FPz/kevZew4k 1KbA== X-Gm-Message-State: ACrzQf0hNL63ou4NAPz56urlF0DVvY3kpejmRJj2stYHgNP5m6nhBbWT Tu81xMUCfUztC6nKDTbFLCUpvQ== X-Google-Smtp-Source: AMsMyM5QMuc5Rbw4TEB4HtWjB3v+wmX3RoEZYauNqEalxnRU7JT9FpVZpYv0p3M9Zr/IdzmzP0TTcQ== X-Received: by 2002:a05:6402:26d5:b0:45d:8d93:d5be with SMTP id x21-20020a05640226d500b0045d8d93d5bemr8108248edd.13.1666195209385; Wed, 19 Oct 2022 09:00:09 -0700 (PDT) Received: from google.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 16-20020a170906309000b0078d22b0bcf2sm9204303ejv.168.2022.10.19.09.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 09:00:08 -0700 (PDT) Date: Wed, 19 Oct 2022 16:00:06 +0000 From: Quentin Perret To: Will Deacon Cc: kvmarm@lists.linux.dev, Sean Christopherson , Vincent Donnefort , Alexandru Elisei , Catalin Marinas , James Morse , Chao Peng , Suzuki K Poulose , Mark Rutland , Fuad Tabba , Oliver Upton , Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 13/25] KVM: arm64: Instantiate pKVM hypervisor VM and vCPU structures from EL1 Message-ID: References: <20221017115209.2099-1-will@kernel.org> <20221017115209.2099-14-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221017115209.2099-14-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221019_090011_260793_8C0E7292 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Monday 17 Oct 2022 at 12:51:57 (+0100), Will Deacon wrote: > +struct kvm_protected_vm { > + pkvm_handle_t handle; > + struct mutex vm_lock; Why is this lock needed btw? Isn't kvm->lock good enough? > + > + struct { > + void *pgd; > + void *vm; > + void *vcpus[KVM_MAX_VCPUS]; > + } hyp_donations; > +}; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel