ia64/xen-unstable
changeset 2348:4cbe16ee99d3
bitkeeper revision 1.1159.1.107 (412dfaebCIngUElp8LanU3kSkz3C7Q)
Grant-table skeleton in Xen/Linux.
Grant-table skeleton in Xen/Linux.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Thu Aug 26 14:59:55 2004 +0000 (2004-08-26) |
parents | 950fc272bee9 |
children | cdffed58ec5d |
files | .rootkeys linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile linux-2.4.27-xen-sparse/mkbuildtree linux-2.6.7-xen-sparse/arch/xen/kernel/Makefile linux-2.6.7-xen-sparse/arch/xen/kernel/gnttab.c linux-2.6.7-xen-sparse/include/asm-xen/gnttab.h |
line diff
1.1 --- a/.rootkeys Thu Aug 26 13:57:01 2004 +0000 1.2 +++ b/.rootkeys Thu Aug 26 14:59:55 2004 +0000 1.3 @@ -169,6 +169,7 @@ 40f56239bvOjuuuViZ0XMlNiREFC0A linux-2.6 1.4 40f56239pYRq5yshPTkv3ujXKc8K6g linux-2.6.7-xen-sparse/arch/xen/kernel/empty.c 1.5 40f56238xFQe9T7M_U_FItM-bZIpLw linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c 1.6 4110f478aeQWllIN7J4kouAHiAqrPw linux-2.6.7-xen-sparse/arch/xen/kernel/fixup.c 1.7 +412dfae9eA3_6e6bCGUtg1mj8b56fQ linux-2.6.7-xen-sparse/arch/xen/kernel/gnttab.c 1.8 40f56239sFcjHiIRmnObRIDF-zaeKQ linux-2.6.7-xen-sparse/arch/xen/kernel/process.c 1.9 40f562392LBhwmOxVPsYdkYXMxI_ZQ linux-2.6.7-xen-sparse/arch/xen/kernel/reboot.c 1.10 3f68905c5eiA-lBMQSvXLMWS1ikDEA linux-2.6.7-xen-sparse/arch/xen/kernel/xen_proc.c 1.11 @@ -238,6 +239,7 @@ 41062ab7uFxnCq-KtPeAm-aV8CicgA linux-2.6 1.12 40f5623bxUbeGjkRrjDguCy_Gm8RLw linux-2.6.7-xen-sparse/include/asm-xen/asm-i386/xor.h 1.13 40f5623bYNP7tHE2zX6YQxp9Zq2utQ linux-2.6.7-xen-sparse/include/asm-xen/ctrl_if.h 1.14 40f5623b3Eqs8pAc5WpPX8_jTzV2qw linux-2.6.7-xen-sparse/include/asm-xen/evtchn.h 1.15 +412dfaeazclyNDM0cpnp60Yo4xulpQ linux-2.6.7-xen-sparse/include/asm-xen/gnttab.h 1.16 40f5623aGPlsm0u1LTO-NVZ6AGzNRQ linux-2.6.7-xen-sparse/include/asm-xen/hypervisor.h 1.17 40f5623cndVUFlkxpf7Lfx7xu8madQ linux-2.6.7-xen-sparse/include/asm-xen/multicall.h 1.18 3f108af1ylCIm82H052FVTfXACBHrw linux-2.6.7-xen-sparse/include/asm-xen/proc_cmd.h
2.1 --- a/linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile Thu Aug 26 13:57:01 2004 +0000 2.2 +++ b/linux-2.4.27-xen-sparse/arch/xen/kernel/Makefile Thu Aug 26 14:59:55 2004 +0000 2.3 @@ -6,12 +6,12 @@ all: kernel.o head.o init_task.o 2.4 2.5 O_TARGET := kernel.o 2.6 2.7 -export-objs := i386_ksyms.o 2.8 +export-objs := i386_ksyms.o gnttab.o 2.9 2.10 obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o \ 2.11 ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o \ 2.12 i386_ksyms.o i387.o evtchn.o ctrl_if.o pci-dma.o \ 2.13 - reboot.o fixup.o 2.14 + reboot.o fixup.o gnttab.o 2.15 2.16 ifdef CONFIG_PCI 2.17 obj-y += pci-i386.o pci-pc.o
3.1 --- a/linux-2.4.27-xen-sparse/mkbuildtree Thu Aug 26 13:57:01 2004 +0000 3.2 +++ b/linux-2.4.27-xen-sparse/mkbuildtree Thu Aug 26 14:59:55 2004 +0000 3.3 @@ -206,6 +206,7 @@ ln -sf ../asm-i386/user.h 3.4 ln -sf ../asm-i386/vm86.h 3.5 ln -sf ../../${LINUX_26}/include/asm-xen/ctrl_if.h 3.6 ln -sf ../../${LINUX_26}/include/asm-xen/evtchn.h 3.7 +ln -sf ../../${LINUX_26}/include/asm-xen/gnttab.h 3.8 ln -sf ../../${LINUX_26}/include/asm-xen/hypervisor.h 3.9 ln -sf ../../${LINUX_26}/include/asm-xen/multicall.h 3.10 ln -sf ../../${LINUX_26}/include/asm-xen/proc_cmd.h 3.11 @@ -223,6 +224,7 @@ ln -sf ../../i386/kernel/sys_i386.c 3.12 ln -sf ../../../${LINUX_26}/arch/xen/kernel/ctrl_if.c 3.13 ln -sf ../../../${LINUX_26}/arch/xen/kernel/evtchn.c 3.14 ln -sf ../../../${LINUX_26}/arch/xen/kernel/fixup.c 3.15 +ln -sf ../../../${LINUX_26}/arch/xen/kernel/gnttab.c 3.16 ln -sf ../../../${LINUX_26}/arch/xen/kernel/reboot.c 3.17 ln -sf ../../../${LINUX_26}/arch/xen/i386/kernel/ioport.c 3.18 ln -sf ../../../${LINUX_26}/arch/xen/i386/kernel/pci-dma.c
4.1 --- a/linux-2.6.7-xen-sparse/arch/xen/kernel/Makefile Thu Aug 26 13:57:01 2004 +0000 4.2 +++ b/linux-2.6.7-xen-sparse/arch/xen/kernel/Makefile Thu Aug 26 14:59:55 2004 +0000 4.3 @@ -9,4 +9,5 @@ XENARCH := $(subst ",,$(CONFIG_XENARCH)) 4.4 4.5 extra-y += vmlinux.lds.s 4.6 4.7 -obj-y := ctrl_if.o evtchn.o fixup.o process.o reboot.o xen_proc.o empty.o 4.8 +obj-y := ctrl_if.o evtchn.o fixup.o process.o reboot.o xen_proc.o empty.o \ 4.9 + gnttab.o
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/linux-2.6.7-xen-sparse/arch/xen/kernel/gnttab.c Thu Aug 26 14:59:55 2004 +0000 5.3 @@ -0,0 +1,46 @@ 5.4 +/****************************************************************************** 5.5 + * gnttab.c 5.6 + * 5.7 + * Two sets of functionality: 5.8 + * 1. Granting foreign access to our memory reservation. 5.9 + * 2. Accessing others' memory reservations via grant references. 5.10 + * (i.e., mechanisms for both sender and recipient of grant references) 5.11 + * 5.12 + * Copyright (c) 2004, K A Fraser 5.13 + */ 5.14 + 5.15 +#include <linux/config.h> 5.16 +#include <linux/module.h> 5.17 +#include <asm-xen/gnttab.h> 5.18 + 5.19 +EXPORT_SYMBOL(gnttab_grant_foreign_access); 5.20 +EXPORT_SYMBOL(gnttab_end_foreign_access); 5.21 +EXPORT_SYMBOL(gnttab_grant_foreign_transfer); 5.22 +EXPORT_SYMBOL(gnttab_end_foreign_transfer); 5.23 + 5.24 +grant_ref_t 5.25 +gnttab_grant_foreign_access( 5.26 + domid_t domid, unsigned long frame, int readonly) 5.27 +{ 5.28 + return 0; 5.29 +} 5.30 + 5.31 +void 5.32 +gnttab_end_foreign_access( 5.33 + grant_ref_t ref, int readonly) 5.34 +{ 5.35 +} 5.36 + 5.37 +grant_ref_t 5.38 +gnttab_grant_foreign_transfer( 5.39 + domid_t domid) 5.40 +{ 5.41 + return 0; 5.42 +} 5.43 + 5.44 +unsigned long 5.45 +gnttab_end_foreign_transfer( 5.46 + grant_ref_t ref) 5.47 +{ 5.48 + return 0; 5.49 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/linux-2.6.7-xen-sparse/include/asm-xen/gnttab.h Thu Aug 26 14:59:55 2004 +0000 6.3 @@ -0,0 +1,35 @@ 6.4 +/****************************************************************************** 6.5 + * gnttab.h 6.6 + * 6.7 + * Two sets of functionality: 6.8 + * 1. Granting foreign access to our memory reservation. 6.9 + * 2. Accessing others' memory reservations via grant references. 6.10 + * (i.e., mechanisms for both sender and recipient of grant references) 6.11 + * 6.12 + * Copyright (c) 2004, K A Fraser 6.13 + */ 6.14 + 6.15 +#ifndef __ASM_GNTTAB_H__ 6.16 +#define __ASM_GNTTAB_H__ 6.17 + 6.18 +#include <linux/config.h> 6.19 +#include <asm-xen/hypervisor.h> 6.20 +#include <asm-xen/hypervisor-ifs/grant_table.h> 6.21 + 6.22 +grant_ref_t 6.23 +gnttab_grant_foreign_access( 6.24 + domid_t domid, unsigned long frame, int readonly); 6.25 + 6.26 +void 6.27 +gnttab_end_foreign_access( 6.28 + grant_ref_t ref, int readonly); 6.29 + 6.30 +grant_ref_t 6.31 +gnttab_grant_foreign_transfer( 6.32 + domid_t domid); 6.33 + 6.34 +unsigned long 6.35 +gnttab_end_foreign_transfer( 6.36 + grant_ref_t ref); 6.37 + 6.38 +#endif /* __ASM_GNTTAB_H__ */