[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Linux swiotlb now uses correct method for determining if any RAM
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 112a769787d26d8658197d0eb860603383719631 # Parent eaaee5f43c6776400b2a59b71cdfb9351b1ebcf6 Linux swiotlb now uses correct method for determining if any RAM is mapped above 2GB. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r eaaee5f43c67 -r 112a769787d2 Config.mk --- a/Config.mk Mon Nov 21 14:06:49 2005 +++ b/Config.mk Mon Nov 21 15:10:19 2005 @@ -3,7 +3,7 @@ # Currently supported architectures: x86_32, x86_64 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/) XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH) -XEN_TARGET_X86_PAE ?= n +XEN_TARGET_X86_PAE ?= y # Tools to run on system hosting the build HOSTCC = gcc diff -r eaaee5f43c67 -r 112a769787d2 linux-2.6-xen-sparse/arch/xen/i386/kernel/swiotlb.c --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/swiotlb.c Mon Nov 21 14:06:49 2005 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/swiotlb.c Mon Nov 21 15:10:19 2005 @@ -24,6 +24,7 @@ #include <asm/io.h> #include <asm/pci.h> #include <asm/dma.h> +#include <asm-xen/xen-public/memory.h> #define OFFSET(val,align) ((unsigned long)((val) & ( (align) - 1))) @@ -186,10 +187,10 @@ * which we take to mean more than 2GB. */ if (xen_start_info->flags & SIF_INITDOMAIN) { - dom0_op_t op; - op.cmd = DOM0_PHYSINFO; - if ((HYPERVISOR_dom0_op(&op) == 0) && - (op.u.physinfo.total_pages > 0x7ffff)) + unsigned long ram_end; + if (HYPERVISOR_memory_op(XENMEM_maximum_ram_page, &ram_end)) + BUG(); + if (ram_end > 0x7ffff) swiotlb = 1; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |