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 59F83C7EE2F for ; Mon, 5 Jun 2023 19:50:30 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject:From: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KlhKgEhOPIM0314ygjoIpcjfdBuNXec02SVvww6twQA=; b=mQR+gEMJW+L/AD Qfh7zr9os6nEv7RiAUTFgtGF4V+UztZwGi7Ib2O77ZAJPPQkkUy/8yxH/cMzalLtfSByOYNy4Dfay 6EZNspCsma8KjH+Z7OWzToYh5vEBbJN8OXmZD/4uOZmQadnc/UDg15CvL4zi8AgKVSi8BaxDnmtzX O2d+T6NQboMp+Hz18OBL5Rd0JEnyADOP/8X/Ajw3dVOn82/Yg7huRGKbbRbCAVaHB4GOIXUCg968s KvAYTkSr3S/g0UVkUiPJE5SACy4BXnTdw+pgPA35CPZwFJGXGnAX5i5tdNOxvDDbw/AqeaE4pQIZQ G6w0DHE4z+SkeGzF9REg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6GDQ-00Gc2x-0w; Mon, 05 Jun 2023 19:50:08 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6GDM-00Gc0c-39 for linux-arm-kernel@lists.infradead.org; Mon, 05 Jun 2023 19:50:06 +0000 Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-777a4926555so59755039f.0 for ; Mon, 05 Jun 2023 12:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685994601; x=1688586601; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=zqUbmlyyOpVxtzSDJaeMbmrOzSyNHvJjWJRif5DapRE=; b=BTWbRhmXvUhVB/espD07rFre+Ia1t3SkAcewyxuS40cXxQ55tz00JRfq571J6pqYR2 lR5hpjUrFVk/NckEWR2TeEVsLOVxrNb0LiNCBno5ZDQvmnnmnNM586TjJZmRbHTD3bs9 rDhyal+pr1KIRHSrtffQXaIzPs07pFGuubS1AWZYmzLdrJm6bvMZb19qEPSKlQqlIWmC 7RWalRtDd1+nphyBCedY8So2SbfYaoBWA+Idlw7/sq9MjRJKhqNLyBb3C7caBRGW/HDc cbaWZ8QwZGmB4kxW8I8w7R30leN+9dwjeJv38NJNRLKwqAmIuuZLnYz+vwqUXb1A17CE afUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685994601; x=1688586601; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zqUbmlyyOpVxtzSDJaeMbmrOzSyNHvJjWJRif5DapRE=; b=Zq7u0DVg61Ix5rOzzqqyETv9e6CnLVazJHAajHMKG+mdY9HPEseGLSYbIlc/0N/vMs F3NIupAuwrGIUXqg/9QyKw9mWXeaZfIE5LPpamzZYV8GwsP2CZickuhgv253pXudOtq1 K6vmkzAnV9+5oWP7hGKtccwdSk9B59+qASxbbQg0hUYkENx5ppe2N5OwJHN2T16NJvSj PqKzD6yDEPgbwyK5mPtt8DKOU9Jqhqe76JZP8a9g6K0RasfWK8DsK6RYg6bqWu4wn2oH C2bsdoRUjAvjhZV3oYV9LJfpIK4yVbceWrQwxHF1MKG83/jOnRaOtaomn9gT0heBdN5D obDg== X-Gm-Message-State: AC+VfDxeUBz3HyCIVjnLgABTUiTZYClH3ExiuvVpDQMY+bEGFnhoFxa9 nbNkqGhhVxcAcBrJ5BMI4io47g== X-Google-Smtp-Source: ACHHUZ7Mm9wiy5ptelw2AO98uw36L+kIz6u8B45c3gTGltaBfqoiSqhByCWJ3vMSfPouKBiVei/PzA== X-Received: by 2002:a05:6602:2195:b0:777:b556:c130 with SMTP id b21-20020a056602219500b00777b556c130mr23077iob.8.1685994601248; Mon, 05 Jun 2023 12:50:01 -0700 (PDT) Received: from [172.22.22.28] ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id p5-20020a5d8d05000000b0076c7a2f0f41sm2714186ioj.46.2023.06.05.12.50.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 12:50:00 -0700 (PDT) Message-ID: <85fe3f90-12ff-cb91-73c1-0efe66dae695@linaro.org> Date: Mon, 5 Jun 2023 14:49:59 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Alex Elder Subject: Re: [PATCH v13 18/24] virt: gunyah: Add resource tickets To: Elliot Berman , Srinivas Kandagatla , Prakruthi Deepak Heragu Cc: Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Dmitry Baryshkov , Bjorn Andersson , Konrad Dybcio , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Bagas Sanjaya , Will Deacon , Andy Gross , Catalin Marinas , Jassi Brar , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230509204801.2824351-1-quic_eberman@quicinc.com> <20230509204801.2824351-19-quic_eberman@quicinc.com> Content-Language: en-US In-Reply-To: <20230509204801.2824351-19-quic_eberman@quicinc.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230605_125005_022984_881A7B7A X-CRM114-Status: GOOD ( 17.41 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/9/23 3:47 PM, Elliot Berman wrote: > Some VM functions need to acquire Gunyah resources. For instance, Gunyah > vCPUs are exposed to the host as a resource. The Gunyah vCPU function > will register a resource ticket and be able to interact with the > hypervisor once the resource ticket is filled. > > Resource tickets are the mechanism for functions to acquire ownership of > Gunyah resources. Gunyah functions can be created before the VM's > resources are created and made available to Linux. A resource ticket > identifies a type of resource and a label of a resource which the ticket > holder is interested in. > > Resources are created by Gunyah as configured in the VM's devicetree > configuration. Gunyah doesn't process the label and that makes it > possible for userspace to create multiple resources with the same label. > Resource ticket owners need to be prepared for populate to be called > multiple times if userspace created multiple resources with the same > label. > > Signed-off-by: Elliot Berman Looks good to me. Reviewed-by: Alex Elder > --- > drivers/virt/gunyah/vm_mgr.c | 117 +++++++++++++++++++++++++++++++++- > drivers/virt/gunyah/vm_mgr.h | 4 ++ > include/linux/gunyah_vm_mgr.h | 14 ++++ > 3 files changed, 134 insertions(+), 1 deletion(-) . . . _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel