All of lore.kernel.org
 help / color / mirror / Atom feed
From: Muli Ben-Yehuda <muli@il.ibm.com>
To: Guy Zana <guy@neocleus.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [RFC][PATCH 1/6] HVM PCI Passthrough (non-IOMMU)
Date: Mon, 4 Jun 2007 21:25:30 +0300	[thread overview]
Message-ID: <20070604182530.GD4556@rhun.ibm.com> (raw)
In-Reply-To: <9392A06CB0FDC847B3A530B3DC174E7B02A95EDB@mse10be1.mse10.exchange.ms>

On Thu, May 31, 2007 at 07:04:40PM -0400, Guy Zana wrote:
> conf.patch:
> 
>     - Compile in x86_32 (disable PAE)
>     - Additional compilation switches (found in Config.mk):
>       mapping_1to1 - enables the 1:1 layout that allows DMA
>       passthrough  - enables non-IOMMU pass-through
> 
> Signed-off-by: Guy Zana <guy@neocleus.com>
> 
> --- a/Config.mk	Sat May 05 13:48:05 2007 +0100
> +++ b/Config.mk	Thu May 31 21:05:07 2007 +0300
> @@ -1,7 +1,11 @@
>  # -*- mode: Makefile; -*-
>  
>  # A debug build of Xen and tools?
> -debug ?= n
> +debug ?= n 

Whitespace damage.

> +
> +# PCI pass-through flags 
> +mapping_1to1 ?= y
> +passthrough ?= y

Does one make sense without the other?


>  XEN_COMPILE_ARCH    ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
>                           -e s/ppc/powerpc/ -e s/i86pc/x86_32/)
> @@ -9,7 +13,7 @@ XEN_OS              ?= $(shell uname -s)
>  XEN_OS              ?= $(shell uname -s)
>  
>  ifeq ($(XEN_TARGET_ARCH),x86_32)
> -XEN_TARGET_X86_PAE  ?= y
> +XEN_TARGET_X86_PAE  ?= n 

Is there a dependency between 1-1 / passthrough and !PAE, or is this
just for convenience?

>  endif
>  
>  CONFIG_$(XEN_OS) := y
> --- a/tools/Rules.mk	Sat May 05 13:48:05 2007 +0100
> +++ b/tools/Rules.mk	Thu May 31 21:04:53 2007 +0300
> @@ -13,6 +13,14 @@ X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
>  X11_LDPATH = -L/usr/X11R6/$(LIBDIR)
>  
>  CFLAGS += -D__XEN_TOOLS__
> +
> +ifeq ($(passthrough),y)
> +    CFLAGS += -DCONFIG_NEO
> +endif

You probably want a better name than CONFIG_NEO, much to the
disappointment of matrix fans everywhere.

> +
> +ifeq ($(mapping_1to1),y)
> +    CFLAGS += -DCONFIG_1TO1
> +endif
>  
>  # Enable implicit LFS support *and* explicit LFS names.
>  CFLAGS  += $(shell getconf LFS_CFLAGS)
> --- a/xen/Rules.mk	Sat May 05 13:48:05 2007 +0100
> +++ b/xen/Rules.mk	Thu May 31 21:04:53 2007 +0300
> @@ -50,12 +50,16 @@ ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/a
>  ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/built_in.o
>  ALL_OBJS-y               += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
>  
> -CFLAGS-y               += -g -D__XEN__
> -CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY
> -CFLAGS-$(verbose)      += -DVERBOSE
> -CFLAGS-$(crash_debug)  += -DCRASH_DEBUG
> -CFLAGS-$(perfc)        += -DPERF_COUNTERS
> -CFLAGS-$(perfc_arrays) += -DPERF_ARRAYS
> +CFLAGS-y                        += -g -D__XEN__
> +# NEO stuff
> +CFLAGS-$(passthrough)           += -DCONFIG_NEO
> +CFLAGS-$(mapping_1to1)          += -DCONFIG_1TO1
> +
> +CFLAGS-$(ACM_SECURITY)          += -DACM_SECURITY
> +CFLAGS-$(verbose)               += -DVERBOSE
> +CFLAGS-$(crash_debug)           += -DCRASH_DEBUG
> +CFLAGS-$(perfc)                 += -DPERF_COUNTERS
> +CFLAGS-$(perfc_arrays)          += -DPERF_ARRAYS

This should be changed to only touch the new bits, makes it easier to
review.

Cheers,
Muli

  reply	other threads:[~2007-06-04 18:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-31 23:04 [RFC][PATCH 1/6] HVM PCI Passthrough (non-IOMMU) Guy Zana
2007-06-04 18:25 ` Muli Ben-Yehuda [this message]
2007-06-04 21:43   ` Guy Zana
2007-06-05  6:37     ` Muli Ben-Yehuda
2007-06-06 16:00 ` [PATCH] [HVM] Prevent usb driver crashes in Windows Ben Guthro
2007-06-06 16:05   ` [PATCH] Fix vnc port offset in xenstore Ben Guthro
2007-06-06 16:08     ` [PATCH] [HVM] Fix 64 bit PV-on-HVM driver builds Ben Guthro
2007-06-06 16:12       ` [PATCH] [HVM] Allow mkbuildtree to override XEN and XL Ben Guthro
2007-06-06 16:17       ` [PATCH] [HVM] Fix 64 bit PV-on-HVM driver builds Jan Beulich
2007-06-06 16:26         ` [PATCH] [QEMU] remove .depend file on clean build Ben Guthro
2007-06-06 16:38       ` [PATCH] [HVM] Fix 64 bit PV-on-HVM driver builds Keir Fraser
2007-06-06 18:42         ` Dave Lively
2007-06-06 18:57           ` Keir Fraser
2007-06-06 19:20             ` David Lively
2007-06-06 16:40   ` [PATCH] [HVM] Prevent usb driver crashes in Windows Keir Fraser
2007-06-06 17:03     ` Steve Ofsthun
2007-06-06 18:22       ` Keir Fraser

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=20070604182530.GD4556@rhun.ibm.com \
    --to=muli@il.ibm.com \
    --cc=guy@neocleus.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.