From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C123A1FAE for ; Fri, 28 Oct 2022 10:01:24 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id y69so7135496ede.5 for ; Fri, 28 Oct 2022 03:01:24 -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=7v1ISLFixnZeqqEYSmtAp/p3bYM7Zmro7nbWQ4w9f6M=; b=qVfHTLEw9mmR79uzZzY5uAswymulVZPsimG3IxxJGxMVN4HQ1p+pyn8uE+DVo5IAFe CSRZCDLNHEBeltUqTevMFnZTA2MG+BIQ84bif3eVJTUAD628nk16G7xg8a26EHecdljd McRSaD3GcW3MOZS3Qryb3s/6Vfre0NpYy10cHK2l+FGoK/P+bKnzEFAtkUkrPnWQMc35 4cTwEj4QMUj5lvayvT2z95j8Jrd1i8ifwRlSUF43I3qs5Vcx24Ey4OM/xaLUFb2XYz2p 3sLK77Yve8raKwQaKR19XjGSSP4F6DD5OliTXbPLcT7+tcUI8DE8nSIvU73aHSf56nGJ QSqA== 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=7v1ISLFixnZeqqEYSmtAp/p3bYM7Zmro7nbWQ4w9f6M=; b=CSxKFQk/GsikDMc0yHnvfjuIfFk/VK031rjeTvFT6wHoJ/WDKWcJ1fbw85+ZYZ8ilp cruGl4I0HcE4DYlVp+UdRIYtNrfxYTegejaoLQaqRqBVVJwjevrly3uGHV3+REq7Tf+j hcSH4bqJCg1zw96XFIC5IJqxc8innEFLVum6PVGFjsL0p0BvTz/NmDIcPKesKb5MEXgo tFfDH5YhX0W6hduNr/zHElW0tcIxOX4V5NvppguvK5IXlu5jTY1cuJ5PmvF+foJzIbZ9 RuvZb0sO43Y6dL2/zrUc0/2YIknRcztedgq2WxwCnWm+SLuwoGpcTnIQTpdmcmRvhoIc XKyA== X-Gm-Message-State: ACrzQf2kSHrajpWZhtGlpDWCndM+Mq8c5+zAczg478Kr83GNrY0j5XWv 3JTrBoNPd1+tVr2Fo879dmnzrQ== X-Google-Smtp-Source: AMsMyM5nToiMyOv2zUG2fek3v8wNMGTJ2X1qP78wOUNi+QbytqKpZx4U9KsQIDIDML1aw6n90hEHyg== X-Received: by 2002:a05:6402:4446:b0:457:eebd:fe52 with SMTP id o6-20020a056402444600b00457eebdfe52mr7428106edb.234.1666951282993; Fri, 28 Oct 2022 03:01:22 -0700 (PDT) Received: from google.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id l7-20020a170906414700b007933047f923sm1975152ejk.118.2022.10.28.03.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 03:01:22 -0700 (PDT) Date: Fri, 28 Oct 2022 10:01:19 +0000 From: Quentin Perret To: Oliver Upton Cc: Will Deacon , kvmarm@lists.linux.dev, Sean Christopherson , Vincent Donnefort , Alexandru Elisei , Catalin Marinas , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , James Morse , Chao Peng , Suzuki K Poulose , Mark Rutland , Fuad Tabba , Marc Zyngier , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 06/25] KVM: arm64: Implement do_donate() helper for donating memory Message-ID: References: <20221020133827.5541-1-will@kernel.org> <20221020133827.5541-7-will@kernel.org> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Friday 28 Oct 2022 at 07:52:38 (+0000), Oliver Upton wrote: > Is the intention of this infra to support memory donations between more > than just the host + hyp components? This patch goes out of its way to > build some generic helpers for things, but it isn't immediately obvious > why that is necessary for just two supported state transitions. Yup, the plan is to use all this infrastructure for host-guest and host-trustzone transitions, but that's indeed not very obvious from the patch. We should probably mention that in the commit message.