All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: fix pt_chk_bar_overload
@ 2008-07-16 16:02 Jean Guyader
  2008-07-16 16:04 ` Jean Guyader
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Guyader @ 2008-07-16 16:02 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]


ioemu: fix the devices loop.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>

-- 
Jean Guyader

[-- Attachment #2: ioemu_fix_passthrough_compilation.patch --]
[-- Type: text/plain, Size: 783 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-24  3:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 16:02 [PATCH] ioemu: fix pt_chk_bar_overload Jean Guyader
2008-07-16 16:04 ` Jean Guyader
2008-07-17  7:05   ` [PATCH] ioemu: alternative patch fixing pt_chk_bar_overlap Yuji Shimada
2008-07-18 14:24     ` Ian Jackson
2008-07-18 14:27       ` Jean Guyader
2008-07-18 14:54         ` Ian Jackson
2008-07-22  8:14           ` Yuji Shimada
2008-07-22 10:55             ` Ian Jackson
2008-07-24  3:00               ` Yuji Shimada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.