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

Re: [RFC 0/7] Proposal to make x86 IOMMU driver support configurable


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Mon, 19 Dec 2022 18:28:46 +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=8xMDHeVYzIPHdKJHXHByguJU3U1VUdtoElhDpeX5Dx8=; b=j/AXKjxsoVVi9J6vPDMqgstvAderqCIY8mYArnf7JHn7FXSW/bqKDhdTW5+n60vJwxf1dfU62LGx4wqVczHGwwk8LfeChdzfqrd1nIQdlvrObtq6KURWOulZUqr8e+U3eUXq4jZG48pwsYWm15X10rQPO3CQS42OMjkGFPi9mQO0rlEkOnhi3XvfyAB2bYYpr6GXAZoaEs/5UAkcVswQcEGLcl04cGn4d4zUloUb5Ldwg2blRDjpXnFGXP11KEJZJhym/zdPoyMJC8HZrvH39sGP2ZxydXheSvvL2ibZBsy18F7Y8lnEnGwGNWz2/z2EDRN66TZkPelwS4dvcKttkQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KTwuSmGChsTtRC/ZxbtnUhJcUtMhsEp0HBvOFAgT/SrMzIN/6vUC34qgglB207Xtg8IrAyW8uFfyVrLN7ve9qFpeqmy/+Ezfo115xcGqC1gcPehmogyb9+xdWXJJ/XXb1IA3ix5SeiFUC/u3lFV/9/qbLBg26+WZzQQUkFsS/MbEAr73PZmXjX+wROaF5/d/fqqUQ/pdcI+9CJ/R0OR0AdZ2cB7kYEFEmf3jqXlaF1z8H8nSXxV5HsMIc0IFde2TSTZS093UTuIZluKhLrltjUtW5ZbdAJT6PccFpkhzFa4S4oSRZ9uL4IfKLdkore9KfkDhISHeIAVWiQh8y7A0/g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>
  • Delivery-date: Mon, 19 Dec 2022 18:29:27 +0000
  • Ironport-data: A9a23:w+ZHBKj4UM4Et9r2ixQrjBWmX161xhEKZh0ujC45NGQN5FlHY01je htvXGrQO6zeZmPzeIhybIS39h4D7JCAxoNgTQRqpH83Hn4b9cadCdqndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wbuOgTrWCYmUpH1QMpB4J0XpLg/Q+jpNjne+3CgaMv cKai8DEMRqu1iUc3lg8sspvkzsy+qWs0N8klgZmP6oS5gaPzyJ94K83fsldEVOpGuG4IcbiL wrz5OnR1n/U+R4rFuSknt7TGqHdauePVeQmoiM+t5mK2nCulARrukoIHKN0hXNsoyeIh7hMJ OBl7vRcf+uL0prkw4zxWzEAe8130DYvFLXveRBTuuTLp6HKnueFL1yDwyjaMKVBktubD12i+ tQzeBM9UTqsldvm0Y2RWu9IxcYMAvvSadZ3VnFIlVk1DN4AaLWaGeDgw48d2z09wMdTAfzZe swVLyJ1awjNaAFOPVFRD48imOCvhT/0dD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ES8qqDW7GRw7KLQupUB/aPbBCP2iIp4/84b0z6u3vcJsUzIEqkJ CES19cvX5aQTOYNSRP5uw+zvngehTPYd228LAu23FQgMyNeJP7dSueVVspj8ys5/0CH8yzYY fHBK5r
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHZE3QW0AvNHREoGky0Qoqa2T8E6a51iI0A
  • Thread-topic: [RFC 0/7] Proposal to make x86 IOMMU driver support configurable

On 19/12/2022 6:34 am, Xenia Ragiadakou wrote:
> This series aims to provide a means to render the iommu driver support for x86
> configurable. Currently, irrespectively of the target platform, both AMD and
> Intel iommu drivers are built. This is the case because the existent Kconfig
> infrastructure does not provide any facilities for finer-grained 
> configuration.
>
> The series adds two new Kconfig options, AMD_IOMMU and INTEL_VTD, that can be
> used to generate a tailored iommu configuration for a given platform.
>
> This series will be part of a broader effort to separate platform specific
> code and it is sent as an RFC to gather feedback regarding the way the
> separation should be performed.

Hello,

Thanks for the series.

From discussions in the past, we do want CONFIG_INTEL/AMD/etc and we do
want these to be selectable and available for randconfig to test.

Some sub-features are more complicated, because e.g. Centaur have CPUs
with a VT-x implementation.  This will need expressing in whatever
Kconfig scheme we end up with.

IOMMUs are more tricky still.  They are (for most intents and purposes)
mandatory on systems with >254 CPUs.  We could in principle start
supporting asymmetric IRQ routing on large systems, but Xen doesn't
currently and it would be a lot work that's definitely not high on the
priority list.  At a minimum, this will need expressing in the Kconfig
help text.

We need to decide whether it is sensible to allow users to turn off
IOMMU support.  It probably is, because you could trivially do this by
selecting CONFIG_INTEL only, and booting the result on an AMD system.


For the names, I don't think AMD_IOMMU vs INTEL_VTD is a sensible. 
Probably wants to be INTEL_IOMMU to match.

~Andrew

 


Rackspace

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