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

Re: [PATCH v1 0/3] vpci/msix: separate out common MSI-X code


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Wed, 28 Oct 2026 08:43:57 +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=arcselector10001; 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=3k2MgLDCk3FIhsRPvknL2cyyE80gg7qtG6s2Iv9BIsM=; b=XgSi73qQE7AH4Occ/eV8WjRhPt57ZHO/js34GG2PO5ne5XG3O4aauBS4MQJfm/I/G//dgkgVJepJhYn4zJq2zAW06jovPo/NOU9Fgnz4kDobth9wlpaGgDn4m4/yJm5dbI5xI95HhYzpuRzxWXbkHFpH9eCOdvDbN/Y3a9BFMP3t/JYlcdXW/Q4zPMdzHp6e0FB639RJ3q1h7K0AUdDkDvRZm0a+s2D+lQo76GpVuvFr3Y3xy5FElYoCcPrXymEu2v9tNPX7050+7jFh8Tcyy3LRfAg5iiW1zJ+8iMFzb8UN90QqY5PAwHHaXUHFUlksiYcPIfPGGj6kXBMvOuY+rw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BabKwu7h+DAEK0ebg0FBuqWIlSEp1Kj7k8tm04VjTyBwxchrnhx3MkHEhDcqOoe9Y9SDAq6WyUoJBnUnLOnCcEf/JqAy8hWjjFoKPA0MQ2Eql8FgRqiIvNfCz/ty1ODfUagds3l1A/+m3oJgs5PWKq15VIz+f+QHd8JbOscQYwO3cnu+i1bo9QBe9y8Qmh125gyzuq0d1sYHLo41NX87nLj6of1GbfKlsdS0gGeReZURz9I7wEhvsvjLMnnlxhaVqK+c49GnZpQ/aLeF/aQ9wt0s/YYSytd84F5IHGevL6S5J2Na95qwW8RZ1tGdCOahdDJT05ri5y3hRLdgoMNIfg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 28 Oct 2026 08:44:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHdZUVvbuj2+I/wmEeMfHolzOWTxrcPwg+AgAFhaACAAAvYAIABdxSA
  • Thread-topic: [PATCH v1 0/3] vpci/msix: separate out common MSI-X code

On 10/27/26 12:21 PM, Jan Beulich wrote:
> On 27.10.2026 10:39, Mykyta Poturai wrote:
>> On 10/26/26 2:34 PM, Jan Beulich wrote:
>>> On 26.10.2026 13:27, Mykyta Poturai wrote:
>>>> This is preparatory work to make vPCI MSI-X functional on Arm. Split the
>>>> vPCI MSI-X code so that intercepting the MSI-X table and PBA stays x86
>>>> only,
>>>
>>> This likely is related to peculiarities of Arm's interrupt handling, yet
>>> on the surface I can't see why not intercepting MSI-X table accesses
>>> would be safe. Would it be possible to extend background here a little?
>>
>> On Arm most of the work is done by the ITS, so the only thing the device
>> needs to write to the doorbell register is the EventID. Interrupt
>> translation is fully configured in the ITS; it will reject invalid
>> EventIDs and also has a sideband DeviceID, so misconfigured devices
>> cannot trigger each other's interrupts. Memory-wise everything is gated
>> by the IOMMU, so a wrong doorbell address would not pose any risk either.
> 
> And a guest fiddling with the mask bits behind Xen's back isn't a problem
> either?
> 
> Jan

No. Masking/unmasking an interrupt the guest has already mapped is just 
the guest doing its own configuration. Unmasking an unmapped interrupt 
will result in it being discarded by the ITS. So I don't see a problem 
here either.

 


Rackspace

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