[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PVH dom0 and MSIX memory mapping issue
- To: Alex Olson <this.is.a0lson@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 25 Feb 2022 15:22:59 +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=fdHSh8pofKzrcB9b/7qOSRhrz2eHlDdGdXyDUN+sHZU=; b=h1FJilQr0uuB05eG63vtbVKZZEArz9y8rntZ+g+BNczHiTTVvymo90+N9WkqJ91z0goKLJLAi1ZwlaH4WmTh4OSJVMppoTvvlW4WqAtaFP4lVoOaldSkpEt9RuydKJoz5tshCW5a3K8MefguoMeV53yXGIOStFamIftdmTECslKlPlSZsR3aJn91Y58jUaYUS1XNfHEdnQQ8L8k6nW0c3uPcUejQL75js0zcvCjm9CQPI//wT0G8cLJ3D6PNGfLiOJMhxskGH7VEg/boiK9PFOuriiT7X4c6OmaDeZIKpEbmWflsl2sAhKcyqqgCL60StltrZrjuZY8GSmg2NXtC3Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tdp2o+XUw/eO/q+H9g2qRu1w6xlSFcGy9foACSuzmHc76gVcszDyDm1vuCMsup5rbxr3jCw1O0RkHaPZSNjHNdidGZesoKEQugQFnzliwXQ0e84MRgRt3dHNw8muAIZaC+i5NAlXb9obNU6kfMTBjHJtkfHIfNcY1HaCsrooWmgbN5CkvypnKvyCVdsJ47SmLn9WbNmUTbRIvXR04PGkQ+WctU3GD4MTxG3hVi2bf98l5mgVkl1ze6KCez7Nyk3nmq38s0ZkYggf5nB4mH8joqmdVeA5RHjFHD/lOgNicw1tsq8nDyEbJk1AaJGkcEvd4U2xvT7WVMZgZoNGYExpmQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 25 Feb 2022 14:23:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 25.02.2022 14:50, Alex Olson wrote:
> I realize PVH for dom0 is still experimental, but was trying to see how well
> it
> works in the state of "master".
>
> I found one issue with MSI-X interrupts in dom0 -- a fatal page fault occurs
> when the MSI-X PBA is accessed from dom0. It looks like dom0 doesn't have an
> identity mapping for the PBA of a PCI device -- intentionally caused by
> vpci_make_msix_hole() ?
>
> I was also wondering, what is the impact of "existing mapping (...) at 0
> clobbers MSIX MMIO area".
>
> Is the purpose of vpci_make_msix_hole() to make MSIX table/PBA accesses trap
> to
> the hypervisor? Seems like the page-based granularity is too coarse since the
> PBA can be much smaller than a page as well as not aligned...
>
> I was able to get something potentially usable by adding a "ioremap" call in
> msix_read() and msix_write to deal with the access of the PBA. Wasn't sure
> if
> this was a proper way of handling things... Was also wondering if it would
> make
> sense to do the same for the "clobbers MSIX MMIO area" cases too.
You happen to ask just over two hours after a patch was posted:
https://lists.xen.org/archives/html/xen-devel/2022-02/msg01657.html
Since Roger didn't have an environment to test his change, maybe you
could do so, offering a Tested-by if successful?
Jan
|