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

Re: [XEN PATCH v1] xen/arm : Add support for SMMUv3 driver


  • To: Rahul Singh <Rahul.Singh@xxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Fri, 30 Oct 2020 15:02:30 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=VLlrb76xIQet8Y6fn0HO1ccId/+9T+kzIKATnE77fZ4=; b=IYUrH80p3tlHNj70RqvSfDEbNUHpayRjGTfjDK2vL5va1GaIUiVohjrQsbWaML1W+csI9Lj8kGgq0wa9TEGJNq0ygb65gdFgN/3Dm317dY8zP+2jiJ8EYEEp4q0PXaSnIzheK+GQSc9ZlH05cc7HQLr5gG2iUg2210n8je86W50fqe+fCLZ0uZeHbmmjKJxnlHn6v3ThDfkFdNq2W7upry1l/NndVh3LSL76q8idgL8R1eKS1Wb1mIxQgJBUfeAJP0Cr1F7Yb2KucfDbfGAdhdmsWv+QtYMSebwtFgyp8rflzhCdgEWm/F7azm04BLZvPbuzKghSjmC+SqoUdOp1UA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cHHnaKppuuCX5qYeU6JtYUrq9onNIUC/oum3i8BLrwqHXQXu/g71Muigg/h4m0/OVIrO4wGiQ0OLdTFaXthBQM51PPpihtuAFyGUciay9qpdCFOqsSNmSwCY6zyN43lBaDV97QrHcWySuQKNpc++X9m4ju1nJpexKrxne6z2jDR2/Ze75L3bjNs1ZzRm5pb+1LFXQNWJvT1F+7c18JVcNh4vyA2SFheMamHONpQ+xwATAkEQA01DEjsaK1RtyhsK959Uyzc83ypXQPJ+Q7xmsCAhKh7YE7j4cWax3T7Q1A6O5m91uYVGl2Dk9+uZStVQfGse3fEblM/UCj0P3pxoNQ==
  • Authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=epam.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 15:02:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWrqmeCV4SGlhADU2GY14D47cn76mwOdAAgAAEO4A=
  • Thread-topic: [XEN PATCH v1] xen/arm : Add support for SMMUv3 driver

Hi,

On 10/30/20 4:47 PM, Rahul Singh wrote:
> 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.
The use case is below: PCI passthrough and various configurations including 
SR-IOV which is possible with QEMU...
>
>>
>> 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://urldefense.com/v3/__https://patchwork.ozlabs.org/project/qemu-devel/cover/1524665762-31355-1-git-send-email-eric.auger@xxxxxxxxxx/__;!!GF_29dbcQIUBPA!h-EaE0OnSbXtLBSwIS311alDl7pn8sH7sihgIYqilM5-r-8kCH6USNNlLB3xhbzc6eczUOrhcw$
>>  [patchwork[.]ozlabs[.]org]
> Regards,
> Rahul

Thank you,

Oleksandr

 


Rackspace

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