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

Re: [PATCH 2/2] x86/msi: Allow writes to registers on the same page as MSI-X table


  • To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 18 Nov 2022 13:33:39 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=4RoYC2/PD+8f5/Drcc6saJIflqzzbsLV/xm7Y1nUgtg=; b=mnjUMoeCg9jQSAZo6YPmDTcZRbVQPA1wQDlLf+gPveZg5smru75zqsSI9QaHt1S8G1qDBjo2psTTDQJXpeYjxtb7oIvfYCNGke6Yiloofg/tk4NRLzK/YOfl7e3bCRvnFV7yX6llgqC7QXCjCmMHZ4BnvbAhq1kD4otWp+94PKrdatZEKONItOWIpBUQnw8zcfW8oaWEs8Ipe+7YK2Gs504eRS/TXCqbVWhCncqWaw8Lseef3F2fFj7vmk1MlqGipkSjkFWnF3Yhm4ua7T8paDzXQnHi47wmL6QYHRcdUtHBeU/Ufdy03F7ferHtqDOEUjNwGfbU3E9JM/4RlgYnHg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cpw8GUIZY5wICsc80KaP52YExrBcVIKDZiOhLNo/Ch9PDNdpGz0PhDx27T/jFqsgDNecW8w9mBCyCmDiRdH1WDFo2EFxOR9PS95jWXQnFbv5TNOHC1mtgf8Dt74qxufhTholsuBhpDIewIgWtW9O0aYJex5Yvi32J9gkNY0JzUGya++FbZVmpiCXraJhK78rC+nBNCeqgUiWiWTAc9RS0YceVoT/IZDdxwqrsqZArgwR7kJeBUl5b3PZfY8yHFSBDgzRILi+j15wJkO7Hd0zPLz+qIo+mRHokt/lvF6MVHxMVBdSIexMGZY0Kcbn6hrdUxucsIeY0SSXzvZ2TX91Fg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 18 Nov 2022 12:33:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.11.2022 13:19, Marek Marczykowski-Górecki wrote:
> On Fri, Nov 18, 2022 at 08:20:14AM +0100, Jan Beulich wrote:
>> On 17.11.2022 18:31, Marek Marczykowski-Górecki wrote:
>>> On Thu, Nov 17, 2022 at 05:34:36PM +0100, Jan Beulich wrote:
>>>> Which in turn raises the question: Do you need to handle reads
>>>> in the new code in the first place?
>>>
>>> The page not being mapped is also the reason why I do need to handle
>>> reads too.
>>
>> Just for my own clarity: You mean "not mapped to qemu" here?
> 
> No, to the HVM domain (in p2m). Xen (outside of MSI-X specific code for
> HVM) doesn't know where those reads should be from.

Hmm, I was expecting them to be mapped r/o to the guest, but perhaps I'm
misremembering. Clearly both ept_p2m_type_to_flags() and
p2m_type_to_flags() take mmio_ro_ranges into consideration, which is
what I was basing my understanding on (without having looked at other
places in detail).

Jan



 


Rackspace

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