From: Ian Campbell Subject: Re: [PATCH 2 of 2] xl, libxl: Add per-device and global permissive config options for pci passthrough Date: Mon, 2 Apr 2012 16:29:57 +0100 Message-ID: <1333380597.25602.89.camel@zakaz.uk.xensource.com> References: <62b1030a2485536caf99.1333363657@kodo2> <1333366219.25602.58.camel@zakaz.uk.xensource.com> <4F79C452.50401@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F79C452.50401@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > >> diff -r 5386937e6c5c -r 62b1030a2485 tools/libxl/libxl_pci.c > >> --- a/tools/libxl/libxl_pci.c Mon Apr 02 11:29:34 2012 +0100 > >> +++ b/tools/libxl/libxl_pci.c Mon Apr 02 11:45:00 2012 +0100 > >> @@ -55,7 +55,10 @@ static void libxl_create_pci_backend_dev > >> if (pcidev->vdevfn) > >> flexarray_append_pair(back, libxl__sprintf(gc, "vdevfn-%d", num), libxl__sprintf(gc, "%x", pcidev->vdevfn)); > >> flexarray_append(back, libxl__sprintf(gc, "opts-%d", num)); > >> - flexarray_append(back, libxl__sprintf(gc, "msitranslate=%d,power_mgmt=%d", pcidev->msitranslate, pcidev->power_mgmt)); > >> + flexarray_append(back, > >> + libxl__sprintf(gc, "msitranslate=%d,power_mgmt=%d,permissive=%d", > >> + pcidev->msitranslate, pcidev->power_mgmt, > >> + pcidev->permissive)); > > Since we are already writing this key, and AFAICT this matches xend's > > behaviour, I think it is correct to add the new parameter here. But... > > > > Does anything actually read this key? I can't find anything in pciback > > or qemu. > No idea -- I was just following suit. In any case, it's probably not a > bad idea to have this kind of thing in there to help debug stuff. > > Let me know if you want to do something else, otherwise I'll keep it in > for my next patch series. It's fine, I was just wondering if anyone knew what it was for. Ian.