[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 06/21] xen/domctl: Add XEN_DOMCTL_CONFIG_VIOMMU_* and viommu config param


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Mon, 5 Dec 2022 14:45:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Rh80Bkr6hy3oFrqLRwscaJHjeAfsYCw9hJNKpfbImyA=; b=S7wdJPS72KW+JDHuqc3K8dTSpAX8Nw29ZiT5lG9Ytdsjlklb0rhmyQdqntZHhW2I4SgTWapQeaNVW5lbJDCP5QtrkM74Vzt25/AzZ8zdVXhWLNAvYwZMIMJ+psE6tJt2cRsDTEpwGXdF9BvwqGE68rTRQXvXzC8WNZSb3vaTw+/T7fvLKUJ2hxPHJbFsL4PMZrJlo5Us98pp4RQ2a+l2OD4autifxG/b0IONxyHyXMarx872izbtrn4z1mHvdRHsqP+pnf+7CC+NxQSw7jRQSD+kslZphzQ9wfWdgor3+HolDRwxf9/AZz3l1OF4ffwPN/1Ef9lNonvpZfRl1GYXcQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQUaHX5lPzrLkNvGJAL1Ba+h/YkWy212aGU/duMxCuWZVw3mscYV2saH6pXYQDRbLWhwqBv/1WajRRfiajhmkwPQsdjBtSu+aJYS1CIOmxauux9aK6c5ap/x84SDdcy8r+3699SBdIky5VhSvqeD6RCAl6xH8hADtg3zl981oM07+WB4i0tqynxpaXd/EZdwzBF2CYksx5JeDB1aLzfTGy2pRXCCTgtmZGWsAs9Zv/P7Oa52gWlwj+5qW5QgIw++wHpftrBDByWwdey/NBDVOqmkHSbe2cUaY4zan/F4t+JKqHznnQErT/U7FWjRsd9hzcBsFKiaG0KbBZSh8OMzNw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 05 Dec 2022 14:45:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHZBZ8CXEc5ZItnGkaj2GP9yveEkK5aSbwAgAUbbwA=
  • Thread-topic: [RFC PATCH 06/21] xen/domctl: Add XEN_DOMCTL_CONFIG_VIOMMU_* and viommu config param

Hi Jan,

> On 2 Dec 2022, at 8:45 am, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 01.12.2022 17:02, Rahul Singh wrote:
>> Add new viommu_type field and field values XEN_DOMCTL_CONFIG_VIOMMU_NONE
>> XEN_DOMCTL_CONFIG_VIOMMU_SMMUV3 in xen_arch_domainconfig to
>> enable/disable vIOMMU support for domains.
>> 
>> Also add viommu="N" parameter to xl domain configuration to enable the
>> vIOMMU for the domains. Currently, only the "smmuv3" type is supported
>> for ARM.
>> 
>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
>> ---
>> docs/man/xl.cfg.5.pod.in             | 11 +++++++++++
>> tools/golang/xenlight/helpers.gen.go |  2 ++
>> tools/golang/xenlight/types.gen.go   |  1 +
>> tools/include/libxl.h                |  5 +++++
>> tools/libs/light/libxl_arm.c         | 13 +++++++++++++
>> tools/libs/light/libxl_types.idl     |  6 ++++++
>> tools/xl/xl_parse.c                  |  9 +++++++++
>> 7 files changed, 47 insertions(+)
> 
> This diffstat taken together with the title makes me assume that e.g. ...
> 
>> --- a/tools/libs/light/libxl_arm.c
>> +++ b/tools/libs/light/libxl_arm.c
>> @@ -179,6 +179,19 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc,
>>         return ERROR_FAIL;
>>     }
>> 
>> +    switch (d_config->b_info.arch_arm.viommu_type) {
>> +    case LIBXL_VIOMMU_TYPE_NONE:
>> +        config->arch.viommu_type = XEN_DOMCTL_CONFIG_VIOMMU_NONE;
> 
> ... this constant doesn't exist yet, and hence this would fail to build
> at this point in the series. I notice, however, that the constants are
> introduced in earlier patches. Perhaps the title here wants re-wording?

Yes, I will fix the commit msg.

Regards,
Rahul




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.