From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH] ioemu: fix pt_chk_bar_overload Date: Wed, 16 Jul 2008 17:02:39 +0100 Message-ID: <487E1B9F.8060305@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040003090000030701070204" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------040003090000030701070204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ioemu: fix the devices loop. Signed-off-by: Jean Guyader -- Jean Guyader --------------040003090000030701070204 Content-Type: text/plain; name="ioemu_fix_passthrough_compilation.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ioemu_fix_passthrough_compilation.patch" diff --git a/hw/pass-through.c b/hw/pass-through.c index bddc203..f29f07d 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -713,7 +713,7 @@ int pt_init(PCIBus *e_bus, char *direct_pci) dpci_infos.pci_access = pci_access; dpci_infos.e_bus = e_bus; - if ( strlen(direct_pci) == 0 ) { + if ( !direct_pci || strlen(direct_pci) == 0 ) { return 0; } diff --git a/hw/pass-through.h b/hw/pass-through.h index ffd87ef..d642be3 100644 --- a/hw/pass-through.h +++ b/hw/pass-through.h @@ -27,7 +27,7 @@ #define PT_LOGGING_ENABLED #ifdef PT_LOGGING_ENABLED -#define PT_LOG(_f, _a...) fprintf(logfile, "%s: " _f, __func__, ##_a) +#define PT_LOG(_f, _a...) fprintf(stdout, "%s: " _f, __func__, ##_a) #else #define PT_LOG(_f, _a...) #endif --------------040003090000030701070204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040003090000030701070204--