[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e9fc3d3e-173c-6e8b-3f1f-187b1c72ff6c@linaro.org>
Date: Thu, 23 Feb 2023 09:21:30 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Elliot Berman <quic_eberman@...cinc.com>,
Alex Elder <elder@...aro.org>,
Prakruthi Deepak Heragu <quic_pheragu@...cinc.com>
Cc: Murali Nalajala <quic_mnalajal@...cinc.com>,
Trilok Soni <quic_tsoni@...cinc.com>,
Srivatsa Vaddagiri <quic_svaddagi@...cinc.com>,
Carl van Schaik <quic_cvanscha@...cinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Jonathan Corbet <corbet@....net>,
Bagas Sanjaya <bagasdotme@...il.com>,
Catalin Marinas <catalin.marinas@....com>,
Jassi Brar <jassisinghbrar@...il.com>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v10 13/26] gunyah: vm_mgr: Add ioctls to support basic
non-proxy VM boot
On 23/02/2023 00:50, Elliot Berman wrote:
>>>
>>> +
>>> + mem_handle = mapping->parcel.mem_handle;
>>> + dtb_offset = ghvm->dtb_config.gpa - mapping->guest_phys_addr;
>>> +
>>> + ret = gh_rm_vm_configure(ghvm->rm, ghvm->vmid, ghvm->auth,
>>> mem_handle,
>>
>> where is authentication mechanism (auth) comming from? Who is supposed
>> to set this value?
>>
>> Should it come from userspace? if so I do not see any UAPI facility to
>> do that via VM_START ioctl.
>>
>
> Right, we are only adding the support for unauthenticated VMs for now.
> There would be further UAPI facilities to set the authentication type.
We have to be careful, please note that you can not change an existing
UAPI to accommodate new features.
There are two ways to do this properly:
1. Design UAPI to accommodate features that will be part of this in very
soon or in future. This way the UAPI is stable and does not change
over time when we add support this feature in driver.
In this particular case, vm authentication type is one that needs to
come from user, rather than kernel assuming it, so definitely this need
to be properly addressed by passing this info from userspace.
Or rename this IOCTl to something like VM_START_UNAUTH_VM to make this
more explicit.
2. For each feature add new UAPI as and when its required, which is
really the only option when we failed to design UAPIs correctly in the
first place.
--srini
>
>>
>>> + 0, 0, dtb_offset, ghvm->dtb_config.size);
>>> + if (ret) {
Powered by blists - more mailing lists