From: Paolo Bonzini Subject: Re: [PATCH] xen-pt: Fix bug cause PCI devices re-attach failed Date: Wed, 15 Apr 2015 16:16:50 +0200 Message-ID: <552E72D2.8080405@redhat.com> References: <1428934370-29695-1-git-send-email-liang.z.li@intel.com> <552BD273.9060105@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: "Li, Liang Z" , "qemu-devel@nongnu.org" Cc: "peter.crosthwaite@xilinx.com" , "xen-devel@lists.xensource.com" , "stefano.stabellini@eu.citrix.com" , "Tian, Kevin" , "Zhang, Yang Z" , "Hu, Robert" List-Id: xen-devel@lists.xenproject.org On 15/04/2015 16:14, Li, Liang Z wrote: > Yes, it's the right place. Put aside the bug fix, I think the memory_region_ref/unref pair > should be move to xen_pt_region_update after the conditional as you point out. > Do you think so? It would make sense, but I was just guessing... I'm still not sure whether that causes any difference, also because I'm not familiar with the Xen PCI passthrough code. Paolo