[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 1/7] x86/iommu: make AMD-Vi and Intel VT-d support configurable
- To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Tue, 20 Dec 2022 21:00:50 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=zogQVdm5zyvoQljLZ3NtoClglJM9hMHtl3Fq2jizJlo=; b=Z+da12TnVAKCiSP8/zjih2/u3kQGNmZB96WUBziviB1LsSLxvlwPevTuoa7TdjT5U4XS4JocUlBrE0ItRaFQqabvs66aP+OLxFRdWBAeMDFQ9vV68eoJR9lEyYh5H8q/woOG/gcHxpg2ThINaYS0kGTIu+2MvdG+64CfxrKQQ+w7jT0ERliTsQAIYAa+r9C3CB3ugTUQ0Xduxo6LwUFCnFRdx5ySfEJn26hs1jACuC5ikT+wiSiVfgVIficbUS9ar+Iczo5FnV5VHiNkZZlnNWng8ygYy0aYZOMrMufSth+5aXswNAIhsYGbbzy6MhIVZ6reob4Y/eUCnVlqeFp2CA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dv7HWApSRn2/ILkb+6kWrj4SjDSl59r5aa7xorYIQ3xi+4rCuyWsFI8XjZ4mmZPJuAiOtwtbiO1EQ3+2o8XZ9t0y935RRKDv2lV+Jj0rVZf7WxvifUTN2ZtzD1UUrwlNZrG56bi5Oq+WLwZJD+fJBqbEcb5XKyd6iQ39xo13ulAgWZesGJO6DHXr/4UKswPvQmAwDtbBxBEKRvSKtduoClOiu7k8919EGeclwzCliYQQ7zA2TnqpwLBla4aKIK6FErcL9lOkXSdTWwUiUN4gO0tpykVgY0A+OxW1QI7AsfsTlnwBnKWGGReSrW0I9pb+X4Q0zMQZZEE5jncunwV2WQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Paul Durrant <paul@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 20 Dec 2022 21:01:00 +0000
- Ironport-data: A9a23:wOYRQa7T9ibm6JOfxfXIWwxRtP3GchMFZxGqfqrLsTDasY5as4F+v mYYW27UOP6LNDT1fYtwbNjk/BhQ6JHUz9I1G1Rtr388Hi5G8cbLO4+Ufxz6V8+wwm8vb2o8t plDNYOQRCwQZiWBzvt4GuG59RGQ7YnRGvynTraBYnoqLeNdYH9JoQp5nOIkiZJfj9G8Agec0 fv/uMSaM1K+s9JOGjt8B5mr9VU+4pwehBtC5gZkPKoR5AeF/5UoJMl3yZ+ZfiOQrrZ8RoZWd 86bpJml82XQ+QsaC9/Nut4XpWVTH9Y+lSDX4pZnc/DKbipq/0Te4Y5iXBYoUm9Fii3hojxE4 I4lWapc6+seFvakdOw1C3G0GszlVEFM0OevzXOX6aR/w6BaGpdFLjoH4EweZOUlFuhL7W5m6 vxJcx4dTTS4m/+x0JmEG+VqucFgI5y+VG8fkikIITDxK98DGMmGb4CUoNhS0XE3m9xEGuvYa 4wBcz1zYR/cYhpJfFAKFJY5m+TujX76G9FagAvN+exrvC6Ok0ooj+SF3Nn9I7RmQe18mEqCq 32A1GP+GhwAb/SUyCaf82LqjejK9c/+cNJDT+Dmp6U76LGV7kBPDT8IVBiRnem8r235Vt1yB 2Av3jV7+MDe82TuFLERRSaQqmOerBcYXNZXDOQS5wSEy66S6AGcbkAGRDNcbN0ttOctWCcnk FSOmrvBHTVytJWFRHTb8a2bxRuiNC5QIWIcaCssSQoe/8KlsIw1lgjITNtoDOiylNKdJN3r6 zWDrSx7i7BNi8cOjvy/5Qqe3G7qoYXVRAko4AmRRnii8g5yeI+iYcqv9ETf6vFDao2eSzFto UQ5piRX18hWZbnlqcBHaLxl8G2BjxpdDADhvA==
- Ironport-hdrordr: A9a23:CPbP/a0fMfC1lP9KlIGOYwqjBLwkLtp133Aq2lEZdPU1SKClfq WV98jzuiWatN98Yh8dcLK7WJVoMEm8yXcd2+B4V9qftWLdyQiVxe9ZnO7f6gylNyri9vNMkY dMGpIObOEY1GIK7/rH3A==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHZE3QiiN9xXpyr80S/AFQLoEXg6a53ApeAgABBxYCAAAEBgA==
- Thread-topic: [RFC 1/7] x86/iommu: make AMD-Vi and Intel VT-d support configurable
On 20/12/2022 8:57 pm, Xenia Ragiadakou wrote:
>
> On 12/20/22 19:01, Jan Beulich wrote:
>> On 19.12.2022 07:34, Xenia Ragiadakou wrote:
>>> Currently, for x86 platforms, Xen does not provide to the users any
>>> configuration control over the IOMMU support and can only be built with
>>> both AMD and Intel IOMMU drivers enabled.
>>> However, there are use cases, e.g in safety-critical systems, that
>>> require
>>> Xen to be able to be configured to exclude unused code. A smaller
>>> tailored
>>> configuration would help Xen to meet faster certification
>>> requirements for
>>> individual platforms.
>>>
>>> Introduce two new Kconfig options, AMD_IOMMU and INTEL_VTD, to allow
>>> code
>>> specific to each IOMMU technology to be separated and, when not
>>> required,
>>> stripped. AMD_IOMMU enables IOMMU support for platforms that
>>> implement the
>>> AMD I/O Virtualization Technology. INTEL_VTD enables IOMMU support for
>>> platforms that implement the Intel Virtualization Technology for
>>> Directed I/O.
>>>
>>> Since no functional change is intended regarding the default
>>> configuration
>>> of an x86 system, both options depend on x86 and default to 'y'.
>>
>> But do things also build successfully when one or both options are
>> disabled?
>> I have to say that I would be quite surprised if that worked without
>> further
>> adjustments. In which case initially these options want to be
>> prompt-less,
>> with the prompts only added once 'n' also works.
>
> Without applying the whole series, disabling any of them or both won't
> work. Ok.
To do a multi-step implementation, you start with
config FOO
bool y
then rearrange them main code to use CONFIG_FOO as appropriate, then
have a final patch that adds a Kconfig name, help text, etc which is
what makes the config option user selectable and able to be turned off.
~Andrew
|