All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Jean Guyader <jean.guyader@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] ioemu-remote: Fix pci pass-through
Date: Tue, 15 Jul 2008 17:36:28 +0100	[thread overview]
Message-ID: <20080715163628.GU4529@implementation.uk.xensource.com> (raw)
In-Reply-To: <487CCF5D.9090200@eu.citrix.com> <487CCE11.90201@eu.citrix.com>

Hmm, I have already provided fixes for all these patches.  IanJ, it is
part of the patches I've sent you.

Jean Guyader, le Tue 15 Jul 2008 17:19:29 +0100, a écrit :
> diff --git a/xen-hooks.mak b/xen-hooks.mak
> index 4e8b1fa..af977ef 100644
> --- a/xen-hooks.mak
> +++ b/xen-hooks.mak
> @@ -39,11 +39,20 @@ OBJS += tpm_tis.o
>  
>  ifdef CONFIG_STUBDOM
>  CONFIG_PASSTHROUGH=1
> -OBJS += xenfbfront.o
> +else
> +  ifeq (,$(wildcard /usr/include/pci))
> +$(warning *** pciutils-devl package not found - missing /usr/include/pci)
> +$(warning *** PCI passthrough capability has been disabled)
> +  else
> +CONFIG_PASSTHROUGH=1
> +  endif
>  endif
>  
>  ifdef CONFIG_PASSTHROUGH
> -OBJS+= pass-through.o
> +OBJS+= pass-through.o pt-msi.o
> +LIBS += -lpci
> +CFLAGS += -DCONFIG_PASSTHROUGH 
> +$(info *** PCI passthrough capability has been enabled ***)
>  endif
>  
>  BAD_OBJS += gdbstub.o acpi.o apic.o

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


Jean Guyader, le Tue 15 Jul 2008 17:25:01 +0100, a écrit :
> ioemu-remote: Fix the pass-through compilation.
> 
> Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
> 
> -- 
> Jean Guyader

> 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

      parent reply	other threads:[~2008-07-15 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 16:19 [PATCH] ioemu-remote: Fix pci pass-through Jean Guyader
2008-07-15 16:21 ` Jean Guyader
2008-07-15 16:25   ` Jean Guyader
2008-07-15 17:53   ` Ian Jackson
2008-07-16 16:28     ` Jean Guyader
2008-07-15 16:36 ` Samuel Thibault [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080715163628.GU4529@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.com \
    --cc=jean.guyader@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.