All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 1/6] HVM PCI Passthrough (non-IOMMU)
@ 2007-05-31 23:04 Guy Zana
  2007-06-04 18:25 ` Muli Ben-Yehuda
  2007-06-06 16:00 ` [PATCH] [HVM] Prevent usb driver crashes in Windows Ben Guthro
  0 siblings, 2 replies; 17+ messages in thread
From: Guy Zana @ 2007-05-31 23:04 UTC (permalink / raw)
  To: xen-devel

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

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>

[-- Attachment #2: conf.patch --]
[-- Type: application/octet-stream, Size: 2104 bytes --]

--- 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 
+
+# PCI pass-through flags 
+mapping_1to1 ?= y
+passthrough ?= y
 
 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 
 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
+
+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
 
 ifneq ($(max_phys_cpus),)
 CFLAGS-y               += -DMAX_PHYS_CPUS=$(max_phys_cpus)

[-- 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	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-06-06 19:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-31 23:04 [RFC][PATCH 1/6] HVM PCI Passthrough (non-IOMMU) Guy Zana
2007-06-04 18:25 ` Muli Ben-Yehuda
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

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.