WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] passthrough: fix MSI-X table fixmap allocation

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] passthrough: fix MSI-X table fixmap allocation
From: Qing He <qing.he@xxxxxxxxx>
Date: Mon, 16 Feb 2009 17:33:22 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 Feb 2009 01:33:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5BEDCA3.2C01%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090216084423.GA24095@ub-qhe2> <C5BEDCA3.2C01%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Mon, 2009-02-16 at 17:04 +0800, Keir Fraser wrote:
> On 16/02/2009 08:44, "Qing He" <qing.he@xxxxxxxxx> wrote:
> 
> > Currently, msix table pages are allocated a fixmap page per vector,
> > the available fixmap pages will be depleted when assigning devices with
> > large number of vectors.  This patch fixes it, and a bug that prevents
> > cross-page MSI-X table from working properly
> > 
> > Signed-off-by: Qing He <qing.he@xxxxxxxxx>
> 
> How does it fix it? Just a couple of sentences please, which I'll add to the
> changeset comment.

It now allocates msix table fixmap pages per device, if the table
entries of two msix vectors share the same page, it will only be
mapped to fixmap once. A ref count is maintained so that it can
be unmapped when all the vectors are freed.

Also changes the meaning of msi_desc->mask_base from the va of msix
table start to the va of the target entry. The former one is currently
bugged (it always maps the first page but msix can support up to 2048
entries) and can't handle separately allocated pages.

Thanks,
Qing

> 
>  -- Keir
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>