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. 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 D549EC38A02 for ; Fri, 28 Oct 2022 10:09:37 +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=rHSCfGCB8epbz/5GeCKv4qstpcfzz8pQCdLrTspYC3A=; b=r28XIrBPQ1nX23 UlbkWfL38GJ18eQgQXMaszFc9IUYc7oPsQ0DzGi6pymn4rzSUlBpTCciWjbWMbrowXTy4ViVOdGXM aKh4bTZUVu9yKXXfztiQV8NclQjXNJG/aePlWwwaJYfnvgAkmulk9HrWCYkau6IqdvmT9BghnJGxm vrPIVdjMBD4jiCS4CoK9+YhPj98t4dM9wub2IP58C8oDswuBAdCn5gU3icX2hrrLSlpmMSF5BeobQ +KRHAlMs59xqoe8Y24g4jQvt3UeLKN2qABbgvyOL+myKICSPGvhknc4PXkOERNOtBXGNhK6uDIBFi MG/I0bdQyx/NrNrF1aEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooMHg-00GY9U-Dc; Fri, 28 Oct 2022 10:08:18 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooMB4-00GV6p-NI for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 10:01:29 +0000 Received: by mail-ed1-x533.google.com with SMTP id a13so7175205edj.0 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=lpah6tJm/A3WHq7CEj4OCeaUrVmfBMvm83r8IWVEqNgSUdV16UP2oTeWIwOqUZKNW2 vg1L1zuC8NgKZt6QvLtDd7NosQwTPpVeJqWdDQG9EZR6keydS8ZQr9mn0I+KcVk8Y9O/ a29GgpM2RqxP50g1QnzbFH4J5nuQDEL2KQ0cx/8nrFoOZtUMYpYuzYtkQRFLTO0vhecF ePOVESJpxlTVbC90asAt5piei8NrNs9pzHSsH/FazvKJa53ZkaKMfFWSUSOOUoEt9AkN vDxEtrjFV14hp5zrZcQsXpI/uNcO9EEMFQ6VNXe8V4qKsQQm8oXpFj/YJHbJAQgaFeZF Pi0w== X-Gm-Message-State: ACrzQf3dJsTDvtd0/xs7YsOauNtMAixVXflldouZHyaXzKMVXFpBpS+U PS7RwjA6zYuwIIPXL4brm6Ni8g== 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221028_030126_824100_AAFA2EBA X-CRM114-Status: GOOD ( 11.49 ) 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 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel