Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5389318rwb; Tue, 17 Jan 2023 13:06:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvxgRW1ldy+bqnY3EzlRvS2qTRWSbLnxplnEDDUssNZe0IRc0EF4h40stvsQB8vzcBEslY5 X-Received: by 2002:a17:90b:3c6:b0:229:81a3:144b with SMTP id go6-20020a17090b03c600b0022981a3144bmr4456431pjb.28.1673989566046; Tue, 17 Jan 2023 13:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673989566; cv=none; d=google.com; s=arc-20160816; b=itu91vfhsPeK4NQI/LLS38K3wQYCCcKo/+8H6PwFui3p3gbVxoFF9hGnJ8IZcD0P1v k/vRs0Yi1AMGKtHO0ROZITaxnd1yEsRO5cNDgSXrtXfdPeQ6dMl/bxAhg6nJB56IOVGp gVr5YjbzMSlg77xWACqK/TlApjDAMFmwFRM1Kd6GmRUKEozvTkAh4s9buaLAiSqqDPG9 BzUS4YvVRpPVE3UKm4IP04WW5jN7mM6VmmisBaQvJ8nKLPEt3LDdKYFq7SkIAyBwqMQl 0Ucp1MG4UIzCzfJQ9viKVu/NlS3ObTVHfi/wQ5g2mBqkrt31Uj4UYMPw7LL672wT9QRF g5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=fqyWeWuyc2jRA+5UQYAEtNEii+X4xnVBaHeZrCTvJ0E=; b=arBl/Pt+cQJIUgX2Dilx6SXcstqwqXfZmVoYQbtplMcgb8va1UCE/xWZ/JC/L/hC+d pQyJZmY447VxiKVJhzvhLCbNHM4M6PKhnQIUZRz6sGnE49FQNlT+Dw3wVDqQdh0Mzkfu Q5u8EGiMfLw5Sb6R9tNoejND+AwsOfVP5x/2Ry7fp/K65phMg8qkxMemJOrwKV+41kp7 BhnuyKsL6/gxXKWb/Zc6+HWAC+4U1dy9RtLJrWYdSXqv2N41WlaaH7U1unbGZQWJ0QHr l8c6PiCmQwxg80w1yoiFfjjutZXxhI+/1pMhFlGLLuodzVEEf6PUY3zSsDI8yDvqlkmW w64Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WOZiCO0n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020a63cf18000000b004b675a3de36si22003322pgg.531.2023.01.17.13.05.59; Tue, 17 Jan 2023 13:06:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WOZiCO0n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231839AbjAQUkZ (ORCPT + 49 others); Tue, 17 Jan 2023 15:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235238AbjAQUfv (ORCPT ); Tue, 17 Jan 2023 15:35:51 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD9C29E1E for ; Tue, 17 Jan 2023 11:21:00 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id d22so6559360iof.5 for ; Tue, 17 Jan 2023 11:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=fqyWeWuyc2jRA+5UQYAEtNEii+X4xnVBaHeZrCTvJ0E=; b=WOZiCO0nwdx0/J8RBZ6fUPgASslwTEHjMpdR/SRXtTppO1orXLf+wGpPFAGLkaYr1x OXLmo4L7yLAGA/t16oMCARlsfHU9udsdYYFEWSEPfBAu2jAAhX/3BmhFlbT03H3ElQ3f z2YeV4v8PshtbvM8VhbsyOBdNp/0iFw2tBVfXD0fS955lXZ6AhUOb/t8S3KjJWmIcAyz dWAdwJQro88EBSHB+tSQQqs6DWMWmYU7UFfyEC/EA4d7GdhjRYyjryeAfKTjoJZb+igk JIvT4TOCREnVJp7LIXkVZP/mU8LOw0s/VbrPvNgHeayr12eYVspqEVx5/+zbgbNXXPhq PVGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=fqyWeWuyc2jRA+5UQYAEtNEii+X4xnVBaHeZrCTvJ0E=; b=b6wErKJlCkBIGfQ3TBOp/gGsbVtmfJSPn9xptU+sStJWKRsgOLOBRj0eEvuqey9wLH uqlsZHixIUO80r7L+JZsBOwxr+h11OYCs8sx1p8Pzt5YQcDJgPhtN9J5X2HR+gS9xPGS hBtY6mOiLUGh5sD7yPgjxIo+p5rJmQ+JEqwmpOgZ1rgwgWWreKqDs7wvo09BwhWlwMsN SuIpObTAhDTJvl6YBtXRrgyCiK4bCj5mQgqxGFrp4mJKjiiuLfNW+bN15XvScuo+fybo 9U7KxQSorEZ759NsIjFcov8i4q38IcjmHU6Su2TTKBINy4GuT1dD3H2qmpRGmJ3nxlSy 9Nzw== X-Gm-Message-State: AFqh2kp3g1MSAYlokCDcDIOFjCpNpSLAfdtMNedZHStIu2FuMkrZ4KzL jkcXI1Fuhkyllj/hVvuobvtbD8uluiz1PAEW X-Received: by 2002:a6b:14c2:0:b0:6eb:68a1:78c with SMTP id 185-20020a6b14c2000000b006eb68a1078cmr3273688iou.10.1673983260051; Tue, 17 Jan 2023 11:21:00 -0800 (PST) Received: from [172.22.22.4] ([98.61.227.136]) by smtp.googlemail.com with ESMTPSA id e10-20020a026d4a000000b0038ac4923addsm9518035jaf.53.2023.01.17.11.20.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 11:20:59 -0800 (PST) Message-ID: Date: Tue, 17 Jan 2023 13:20:58 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: Alex Elder Subject: Re: [PATCH v8 05/28] virt: gunyah: Add hypercalls to identify Gunyah To: Elliot Berman , Alex Elder , Bjorn Andersson , Catalin Marinas , Will Deacon , Murali Nalajala Cc: Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Prakruthi Deepak Heragu , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Bagas Sanjaya , Jassi Brar , Sudeep Holla , Mark Rutland , Lorenzo Pieralisi , Dmitry Baryshkov , 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, linux-acpi@vger.kernel.org References: <20221219225850.2397345-1-quic_eberman@quicinc.com> <20221219225850.2397345-6-quic_eberman@quicinc.com> <63bbc640-9b0c-95af-3d35-291da0323db3@linaro.org> <4e8a7fdf-8c91-cf2f-d369-c67b7584f580@quicinc.com> Content-Language: en-US In-Reply-To: <4e8a7fdf-8c91-cf2f-d369-c67b7584f580@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/10/23 11:56 AM, Elliot Berman wrote: >>> There are two calls to help identify Gunyah: >>> >>> 1. gh_hypercall_get_uid() returns a UID when running under a Gunyah >>>     hypervisor. >>> 2. gh_hypercall_hyp_identify() returns build information and a set of >>>     feature flags that are supported by Gunyah. >> >> The first is a "service", while the second is a "hypercall". >> Can you explain the distinction?  The sentence at the top >> refers to both as "hypercalls". >> > > I learned more details about this to answer your question. "get_uid()" > is a standardized call that is ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID > defined in include/arm-smccc.h. I'll use that. You didn't really explain the distinction between hypercall and service in Gunyah. Both are encoded as "vendor specific hypervisor service calls" according to the SVCCC specification. I haven't found where ARM_SMCCC_VENDOR_HYP_CALL_UID_FUNC_ID gets handled, but I accept your answer that it's basically a standard call. The "get UID" is the only one that's defined as a Gunyah "service"; the rest are hypercalls. It's not a big deal, I just noticed the difference and was curious about it. -Alex