[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v1] xen/arm : Add support for SMMUv3 driver
- To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- From: Rahul Singh <Rahul.Singh@xxxxxxx>
- Date: Fri, 30 Oct 2020 14:47:20 +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-SenderADCheck; bh=n9mY1Zav2n5R2cchI3Vx35ehTUmsYD9/sV52agvUnWM=; b=oHNJFpCd5K1yPsp4FyRPDRXRMPppmxsH3ljNLjKIMp72TUGRWSH+FY14kRfDhxvM0fYCYA4+mbbBNaX+7VIuBskT7eY32nLLMOzZe+6q8MWqT3IHf2PtoMQhEs1IYf8tqslQTF7lD0oLBM/+txgFJ32ezi98ahXAKx7RCO+ll9PEnnIeyszxBvaXzAbOb8Xogl+BU4Djvt92l0sAomWiz5p5lyf5nRVj07dwFFYnuFXiweAXsIx0iI3ynjvZ2PaqVl5G1ZMYw8l2+VrkzpgEKmo+9K3AwHIIvzLPPJsJwckDB74/V57J+QvgXli6i9y6dRDMPGC6tRKt0b87YKUFFw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RErhpO5DJN+jrYiho6VSpqb+6FlbgknKzaVp7DVIsqpkqtcmYRDnXJC1fGdd9Lrv+50AXlK91HjBYH8/WBEWV/mDb+C1LcSBpn5qhHaXa3sDLLoSvCRnZFqRmY72zFL2e/ShbxyIdGE+yXWF6kd5lOA9HoIcunjX2u55ELNYzDk4r9BsjyI8HGpyGWY8T+3WcIIbpI+7Iy5y46dSy8ngOMFbUwLTPgqCtqsgV9Yi3XgscPncMSxhyz/8lZQdXhVyciPGgfNiIeTfx/K3CZR5cHGiBFFDmKlcyP/vtVDGIodYael+Kj/ghZylzvnlBN9wdoT/npwxY6IQrllV5FcwQw==
- Authentication-results-original: epam.com; dkim=none (message not signed) header.d=none;epam.com; dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 30 Oct 2020 14:47:39 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: epam.com; dkim=none (message not signed) header.d=none;epam.com; dmarc=none action=none header.from=arm.com;
- Thread-index: AQHWoVvrkmJwOYERdUOadvid1OghFamwEIWAgABD5gA=
- Thread-topic: [XEN PATCH v1] xen/arm : Add support for SMMUv3 driver
Hello Oleksandr,
> On 30 Oct 2020, at 10:44 am, Oleksandr Andrushchenko
> <Oleksandr_Andrushchenko@xxxxxxxx> wrote:
>
> Hi, Rahul!
>
> On 10/20/20 6:25 PM, Rahul Singh wrote:
>> Add support for ARM architected SMMUv3 implementations. It is based on
>> the Linux SMMUv3 driver.
>>
>> Major differences between the Linux driver are as follows:
>> 1. Only Stage-2 translation is supported as compared to the Linux driver
>> that supports both Stage-1 and Stage-2 translations.
>
> First of all thank you for the efforts!
>
> I tried the patch with QEMU and would like to know if my understanding correct
>
> that this combination will not work as of now:
>
> (XEN) SMMUv3: /smmuv3@9050000: SMMUv3: DT value = eventq
I have limited knowledge about QEMU internals.As what I see from the logs,
fault is occurred at early driver initialisation when SMMU driver is trying to
probe the HW.
> (XEN) Data Abort Trap. Syndrome=0x1940010
> (XEN) Walking Hypervisor VA 0x40031000 on CPU0 via TTBR 0x00000000b8469000
> (XEN) 0TH[0x0] = 0x00000000b8468f7f
>
> [snip]
>
> If this is expected then is there any plan to make QEMU work as well?
>
> I see [1] says that "Only stage 1 and AArch64 PTW are supported." on QEMU
> side.
Yes as of now only Stage-2 is supported in XEN.If we have any requirement or
use case that depends on Stage-1 translation we can support that also in XEN.
>
>
> We are interested in QEMU/SMMUv3 as a flexible platform for PCI passthrough
>
> implementation, so it could allow testing different setups and configurations
> with QEMU.
>
>
> Thank you in advance,
>
> Oleksandr
>
> [1]
> https://patchwork.ozlabs.org/project/qemu-devel/cover/1524665762-31355-1-git-send-email-eric.auger@xxxxxxxxxx/
Regards,
Rahul
|