move Xen linux header files
Move Xen linux headers to more appropriate places.
include/asm-xen/*.h -> include/xen/*.h include/asm-xen/xen-public/*.h -> include/xen/*.h include/asm-xen/linux-public/*.h -> include/linux/xen
This is largely automated, builds and runs clean on i386 and x86_64. It's a simple step towards merging subarch.
I've got a patch I can post, but above description explains it more succintly than the patch (diffstat below). Thoughts?
linux-2.6-xen-sparse/include/asm-xen/balloon.h | 54 --- linux-2.6-xen-sparse/include/asm-xen/ctrl_if.h | 160 --------- linux-2.6-xen-sparse/include/asm-xen/evtchn.h | 135 -------- linux-2.6-xen-sparse/include/asm-xen/foreign_page.h | 30 - linux-2.6-xen-sparse/include/asm-xen/gnttab.h | 72 ---- linux-2.6-xen-sparse/include/asm-xen/hypervisor.h | 199 ------------ linux-2.6-xen-sparse/include/asm-xen/linux-public/privcmd.h | 90 ----- linux-2.6-xen-sparse/include/asm-xen/linux-public/suspend.h | 43 -- linux-2.6-xen-sparse/include/asm-xen/queues.h | 81 ---- linux-2.6-xen-sparse/include/asm-xen/synch_bitops.h | 2 linux-2.6-xen-sparse/include/asm-xen/xen_proc.h | 13 linux-2.6-xen-sparse/include/asm-xen/xenbus.h | 127 ------- linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/common.c | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/entry.S | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/head.S | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/io_apic.c | 4 linux-2.6-xen-sparse/arch/xen/i386/kernel/ioport.c | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c | 4 linux-2.6-xen-sparse/arch/xen/i386/kernel/smp.c | 2 linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c | 4 linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c | 2 linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c | 4 linux-2.6-xen-sparse/arch/xen/i386/mm/init.c | 2 linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c | 2 linux-2.6-xen-sparse/arch/xen/kernel/Makefile | 8 linux-2.6-xen-sparse/arch/xen/kernel/ctrl_if.c | 4 linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c | 12 linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c | 8 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c | 12 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/entry.S | 2 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/io_apic.c | 4 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/ioport.c | 2 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/pci-dma.c | 2 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/process.c | 4 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c | 4 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup64.c | 2 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c | 8 linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c | 2 linux-2.6-xen-sparse/drivers/xen/blkback/common.h | 10 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 8 linux-2.6-xen-sparse/drivers/xen/blkfront/block.h | 6 linux-2.6-xen-sparse/drivers/xen/blktap/blktap.h | 8 linux-2.6-xen-sparse/drivers/xen/blktap/blktap_datapath.c | 2 linux-2.6-xen-sparse/drivers/xen/blktap/blktap_userdev.c | 2 linux-2.6-xen-sparse/drivers/xen/console/console.c | 8 linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c | 2 linux-2.6-xen-sparse/drivers/xen/netback/common.h | 6 linux-2.6-xen-sparse/drivers/xen/netback/netback.c | 6 linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 12 linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c | 6 linux-2.6-xen-sparse/drivers/xen/usbback/common.h | 6 linux-2.6-xen-sparse/drivers/xen/usbfront/usbfront.c | 2 linux-2.6-xen-sparse/drivers/xen/usbfront/xhci.h | 2 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_comms.c | 4 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 6 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c | 2 linux-2.6-xen-sparse/include/asm-xen/asm-i386/fixmap.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-i386/page.h | 4 linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h | 4 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/fixmap.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/page.h | 4 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h | 2 linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h | 6 linux-2.6-xen-sparse/include/linux/xen/privcmd.h | 90 +++++ linux-2.6-xen-sparse/include/linux/xen/suspend.h | 43 ++ linux-2.6-xen-sparse/include/xen/balloon.h | 54 +++ linux-2.6-xen-sparse/include/xen/ctrl_if.h | 160 +++++++++ linux-2.6-xen-sparse/include/xen/evtchn.h | 135 ++++++++ linux-2.6-xen-sparse/include/xen/foreign_page.h | 30 + linux-2.6-xen-sparse/include/xen/gnttab.h | 72 ++++ linux-2.6-xen-sparse/include/xen/hypervisor.h | 199 ++++++++++++ linux-2.6-xen-sparse/include/xen/queues.h | 81 ++++ linux-2.6-xen-sparse/include/xen/synch_bitops.h | 2 linux-2.6-xen-sparse/include/xen/xen_proc.h | 13 linux-2.6-xen-sparse/include/xen/xenbus.h | 127 +++++++ linux-2.6-xen-sparse/mkbuildtree | 6 tools/blktap/Makefile | 2 tools/libxc/Makefile | 2 tools/security/Makefile | 2 84 files changed, 1130 insertions(+), 1132 deletions(-)
Quoted 6 lines · Chris Wright <chrisw <at> osdl.org> writes:
Move Xen linux headers to more appropriate places.
include/asm-xen/*.h->include/xen/*.hinclude/asm-xen/xen-public/*.h->include/xen/*.hinclude/asm-xen/linux-public/*.h->include/linux/xen
Where do any arch-dep headers go? In the patch I'm floating to linux-ia64, they are in, e.g., include/asm-ia64/xen/*.h
Also, from the diffstat its hard to see which files are coming and going...
Thanks,
Dan
Quoted 11 lines · * Dan Magenheimer ([email protected]) wrote:
Quoted 6 lines · Chris Wright <chrisw <at> osdl.org> writes:
Move Xen linux headers to more appropriate places.
include/asm-xen/*.h->include/xen/*.hinclude/asm-xen/xen-public/*.h->include/xen/*.hinclude/asm-xen/linux-public/*.h->include/linux/xenWhere do any arch-dep headers go? In the patch I'm floating to linux-ia64, they are in, e.g.,
include/asm-ia64/xen/*.h
include/asm-$ARCH/mach-xen/*.h is where I've put them for i386.
Quoted 2 lines
Also, from the diffstat its hard to see which files are coming and going...
I use a script which may be the most succinct way to see the change. Here's the core of the script:
---
#! /bin/sh
# move Xen headers
mkdir linux-2.6-xen-sparse/include/xen/
mkdir linux-2.6-xen-sparse/include/linux/xen/
mv linux-2.6-xen-sparse/include/asm-xen/*.h linux-2.6-xen-sparse/include/xen/
mv linux-2.6-xen-sparse/include/asm-xen/linux-public/*.h linux-2.6-xen-sparse/include/linux/xen/
rmdir linux-2.6-xen-sparse/include/asm-xen/linux-public/
find linux-2.6-xen-sparse -name \*.[chS] | while read x; do ./edit.pl $x; done
---
edit.pl just updates the #include bits
Below is the patch, it's quite noisy because of the #include fixups.
linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/common.c +1 -1
@@ -15,7 +15,7 @@#include <asm/apic.h> #include <mach_apic.h> #endif -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> #include "cpu.h"
linux-2.6-xen-sparse/arch/xen/i386/kernel/entry.S +1 -1
@@ -48,7 +48,7 @@ #include <asm/smp.h> #include <asm/page.h> #include "irq_vectors.h" -#include <asm-xen/xen-public/xen.h> +#include <xen/xen.h> #define nr_syscalls ((syscall_table_size)/4)
linux-2.6-xen-sparse/arch/xen/i386/kernel/head.S +1 -1
@@ -22,7 +22,7 @@ #include <asm/segment.h> #include <asm/thread_info.h> #include <asm/asm_offsets.h> -#include <asm-xen/xen-public/arch-x86_32.h> +#include <xen/arch-x86_32.h> /* * References to members of the new_cpu_data structure.
linux-2.6-xen-sparse/arch/xen/i386/kernel/io_apic.c +2 -2
@@ -44,8 +44,8 @@#ifdef CONFIG_XEN -#include <asm-xen/xen-public/xen.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/xen.h> +#include <xen/physdev.h> /* Fake i8259 */ #define make_8259A_irq (_irq) (io_apic_irqs &= ~(1UL<<(_irq)))
linux-2.6-xen-sparse/arch/xen/i386/kernel/ioport.c +1 -1
@@ -15,7 +15,7 @@#include <linux/stddef.h> #include <linux/slab.h> #include <linux/thread_info.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/physdev.h> /* Set EXTENT bits starting at BASE in BITMAP to value TURN_ON. */ static void set_bitmap (unsigned long *bitmap,unsigned int base,unsigned int extent,int new_value)
linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c +1 -1
@@ -13,7 +13,7 @@#include <linux/pci.h> #include <linux/version.h> #include <asm/io.h> -#include <asm-xen/balloon.h> +#include <xen/balloon.h> #include <asm/tlbflush.h> struct dma_coherent_mem {
linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c +1 -1
@@ -48,7 +48,7 @@#include <asm/i387.h> #include <asm/irq.h> #include <asm/desc.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/physdev.h> #ifdef CONFIG_MATH_EMULATION #include <asm/math_emu.h> #endif
linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c +2 -2
@@ -53,8 +53,8 @@#include <asm/io_apic.h> #include <asm/ist.h> #include <asm/io.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/hypervisor.h> +#include <xen/physdev.h> #include "setup_arch_pre.h" #include <bios_ebda.h>
linux-2.6-xen-sparse/arch/xen/i386/kernel/smp.c +1 -1
@@ -26,7 +26,7 @@#if 0 #include <mach_apic.h> #endif -#include <asm-xen/evtchn.h> +#include <xen/evtchn.h> #define xxprint (msg) HYPERVISOR_console_io(CONSOLEIO_write, strlen(msg), msg)
linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c +2 -2
@@ -62,7 +62,7 @@#include <mach_wakecpu.h> #include <smpboot_hooks.h> -#include <asm-xen/evtchn.h> +#include <xen/evtchn.h> /* Set if we find a B stepping CPU */ static int __initdata smp_b_stepping;
@@ -1324,7 +1324,7 @@ }#ifdef CONFIG_HOTPLUG_CPU -#include <asm-xen/ctrl_if.h> +#include <xen/ctrl_if.h> /* hotplug down/up funtion pointer and target vcpu */ struct vcpu_hotplug_handler_t {
linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c +1 -1
@@ -70,7 +70,7 @@#include "io_ports.h" -#include <asm-xen/evtchn.h> +#include <xen/evtchn.h> extern spinlock_t i8259A_lock;int pit_latch_buggy;/* extern */
linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c +2 -2
@@ -33,8 +33,8 @@#include <linux/vmalloc.h> #include <asm/page.h> #include <asm/pgtable.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/balloon.h> +#include <xen/hypervisor.h> +#include <xen/balloon.h> #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )#include <linux/percpu.h> #include <asm/tlbflush.h>
linux-2.6-xen-sparse/arch/xen/i386/mm/init.c +1 -1
@@ -39,7 +39,7 @@#include <asm/tlb.h> #include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> unsigned int __VMALLOC_RESERVE =128 <<20 ;
linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c +1 -1
@@ -24,7 +24,7 @@#include <asm/io.h> #include <asm/mmu_context.h> -#include <asm-xen/foreign_page.h> +#include <xen/foreign_page.h> void show_mem (void ) {
linux-2.6-xen-sparse/arch/xen/kernel/Makefile +4 -4
@@ -4,12 +4,12 @@ XENARCH := $(subst ",,$(CONFIG_XENARCH)) -CPPFLAGS_vmlinux.lds += -U$(XENARCH) +#CPPFLAGS_vmlinux.lds += -U$(XENARCH) -$(obj)/vmlinux.lds.S: - @ln -fsn $(srctree)/arch/$(XENARCH)/kernel/vmlinux.lds.S $@ +#$(obj)/vmlinux.lds.S: +# @ln -fsn $(srctree)/arch/$(XENARCH)/kernel/vmlinux.lds.S $@ -extra-y += vmlinux.lds +#extra-y += vmlinux.lds obj-y := ctrl_if.o evtchn.o fixup.o reboot.o gnttab.o devmem.o
linux-2.6-xen-sparse/arch/xen/kernel/ctrl_if.c +2 -2
@@ -36,8 +36,8 @@#include <linux/irq.h> #include <linux/interrupt.h> #include <linux/module.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/evtchn.h> +#include <xen/ctrl_if.h> +#include <xen/evtchn.h> #if 0 #define DPRINTK(_f, _a...) printk(KERN_ALERT "(file=%s, line=%d) " _f, \
linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c +6 -6
@@ -37,12 +37,12 @@#include <asm/atomic.h> #include <asm/system.h> #include <asm/ptrace.h> -#include <asm-xen/synch_bitops.h> -#include <asm-xen/xen-public/event_channel.h> -#include <asm-xen/xen-public/physdev.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/evtchn.h> +#include <xen/synch_bitops.h> +#include <xen/event_channel.h> +#include <xen/physdev.h> +#include <xen/ctrl_if.h> +#include <xen/hypervisor.h> +#include <xen/evtchn.h> #if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 )EXPORT_SYMBOL (force_evtchn_callback);
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c +4 -4
@@ -16,10 +16,10 @@#include <asm/pgtable.h> #include <asm/fixmap.h> #include <asm/uaccess.h> -#include <asm-xen/xen_proc.h> -#include <asm-xen/linux-public/privcmd.h> -#include <asm-xen/gnttab.h> -#include <asm-xen/synch_bitops.h> +#include <xen/xen_proc.h> +#include <linux/xen/privcmd.h> +#include <xen/gnttab.h> +#include <xen/synch_bitops.h> #if 1 #define ASSERT (_p) \
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c +6 -6
@@ -8,12 +8,12 @@#include <linux/sysrq.h> #include <asm/irq.h> #include <asm/mmu_context.h> -#include <asm-xen/evtchn.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/xen-public/dom0_ops.h> -#include <asm-xen/linux-public/suspend.h> -#include <asm-xen/queues.h> -#include <asm-xen/xenbus.h> +#include <xen/evtchn.h> +#include <xen/hypervisor.h> +#include <xen/dom0_ops.h> +#include <linux/xen/suspend.h> +#include <xen/queues.h> +#include <xen/xenbus.h> #define SHUTDOWN_INVALID -1#define SHUTDOWN_POWEROFF 0
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/entry.S +1 -1
@@ -46,7 +46,7 @@ #include <asm/thread_info.h> #include <asm/hw_irq.h> #include <asm/errno.h> -#include <asm-xen/xen-public/arch-x86_64.h> +#include <xen/arch-x86_64.h> #include "irq_vectors.h"
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/io_apic.c +2 -2
@@ -80,8 +80,8 @@#ifdef CONFIG_XEN -#include <asm-xen/xen-public/xen.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/xen.h> +#include <xen/physdev.h> /* Fake i8259 */ #define make_8259A_irq (_irq) (io_apic_irqs &= ~(1UL<<(_irq)))
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/ioport.c +1 -1
@@ -16,7 +16,7 @@#include <linux/stddef.h> #include <linux/slab.h> #include <linux/thread_info.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/physdev.h> /* * sys_iopl has to be used when you want to access the IO ports
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/pci-dma.c +1 -1
@@ -8,7 +8,7 @@#include <linux/pci.h> #include <linux/module.h> #include <asm/io.h> -#include <asm-xen/balloon.h> +#include <xen/balloon.h> /* Map a set of buffers described by scatterlist in streaming * mode for DMA. This is the scatter-gather version of the
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/process.c +2 -2
@@ -49,8 +49,8 @@#include <asm/pda.h> #include <asm/prctl.h> #include <asm/kdebug.h> -#include <asm-xen/xen-public/dom0_ops.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/dom0_ops.h> +#include <xen/physdev.h> #include <asm/desc.h> #include <asm/proto.h> #include <asm/hardirq.h>
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c +2 -2
@@ -58,9 +58,9 @@#include <asm/setup.h> #include <asm/mach_apic.h> #include <asm/numa.h> -#include <asm-xen/xen-public/physdev.h> +#include <xen/physdev.h> #include "setup_arch_pre.h" -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> #define PFN_UP (x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)#define PFN_PHYS (x) ((x) << PAGE_SHIFT)
linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup64.c +1 -1
@@ -31,7 +31,7 @@#include <asm/mman.h> #include <asm/numa.h> -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> char x86_boot_params[BOOT_PARAM_SIZE ]__initdata = {0 ,};
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +4 -4
@@ -41,16 +41,16 @@#include <linux/bootmem.h> #include <linux/highmem.h> #include <linux/vmalloc.h> -#include <asm-xen/xen_proc.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/balloon.h> +#include <xen/xen_proc.h> +#include <xen/hypervisor.h> +#include <xen/balloon.h> #include <asm/pgalloc.h> #include <asm/pgtable.h> #include <asm/uaccess.h> #include <asm/tlb.h> #include <linux/list.h> -#include <asm-xen/xenbus.h> +#include <xen/xenbus.h> #define PAGES2KB (_p) ((_p)<<(PAGE_SHIFT-10))
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c +1 -1
@@ -13,7 +13,7 @@#include "common.h" #ifdef CONFIG_XEN_BLKDEV_GRANT -#include <asm-xen/xen-public/grant_table.h> +#include <xen/grant_table.h> #endif /*
linux-2.6-xen-sparse/drivers/xen/blkback/common.h +5 -5
@@ -12,11 +12,11 @@#include <asm/io.h> #include <asm/setup.h> #include <asm/pgalloc.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/evtchn.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/xen-public/io/blkif.h> -#include <asm-xen/xen-public/io/ring.h> +#include <xen/ctrl_if.h> +#include <xen/evtchn.h> +#include <xen/hypervisor.h> +#include <xen/io/blkif.h> +#include <xen/io/ring.h> #if 0 #define ASSERT (_p) \
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +4 -4
@@ -53,11 +53,11 @@#include <linux/sched.h> #include <linux/interrupt.h> #include <scsi/scsi.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/evtchn.h> +#include <xen/ctrl_if.h> +#include <xen/evtchn.h> #ifdef CONFIG_XEN_BLKDEV_GRANT -#include <asm-xen/xen-public/grant_table.h> -#include <asm-xen/gnttab.h> +#include <xen/grant_table.h> +#include <xen/gnttab.h> #endif typedef unsigned char byte ;/* from linux/ide.h */
linux-2.6-xen-sparse/drivers/xen/blkfront/block.h +3 -3
@@ -44,9 +44,9 @@#include <linux/blkdev.h> #include <linux/major.h> #include <linux/devfs_fs_kernel.h> -#include <asm-xen/xen-public/xen.h> -#include <asm-xen/xen-public/io/blkif.h> -#include <asm-xen/xen-public/io/ring.h> +#include <xen/xen.h> +#include <xen/io/blkif.h> +#include <xen/io/ring.h> #include <asm/io.h> #include <asm/atomic.h> #include <asm/uaccess.h>
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.h +4 -4
@@ -15,15 +15,15 @@#include <linux/config.h> #include <linux/sched.h> #include <linux/interrupt.h> -#include <asm-xen/ctrl_if.h> +#include <xen/ctrl_if.h> #include <linux/slab.h> #include <linux/blkdev.h> #include <asm/io.h> #include <asm/setup.h> #include <asm/pgalloc.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/xen-public/io/blkif.h> -#include <asm-xen/xen-public/io/ring.h> +#include <xen/hypervisor.h> +#include <xen/io/blkif.h> +#include <xen/io/ring.h> /* Used to signal to the backend that this is a tap domain. */ #define BLKTAP_COOKIE 0xbeadfeed
linux-2.6-xen-sparse/drivers/xen/blktap/blktap_datapath.c +1 -1
@@ -9,7 +9,7 @@*/ #include "blktap.h" -#include <asm-xen/evtchn.h> +#include <xen/evtchn.h> /*-----[ The data paths ]-------------------------------------------------*/
linux-2.6-xen-sparse/drivers/xen/blktap/blktap_userdev.c +1 -1
@@ -20,7 +20,7 @@#include <linux/poll.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> -#include <asm-xen/xen-public/io/blkif.h> /* for control ring. */ +#include <xen/io/blkif.h> /* for control ring. */ #include "blktap.h"
linux-2.6-xen-sparse/drivers/xen/console/console.c +4 -4
@@ -48,10 +48,10 @@#include <asm/io.h> #include <asm/irq.h> #include <asm/uaccess.h> -#include <asm-xen/xen-public/event_channel.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/evtchn.h> -#include <asm-xen/ctrl_if.h> +#include <xen/event_channel.h> +#include <xen/hypervisor.h> +#include <xen/evtchn.h> +#include <xen/ctrl_if.h> /* * Modes:
linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c +1 -1
@@ -45,7 +45,7 @@#include <linux/irq.h> #include <linux/init.h> #define XEN_EVTCHN_MASK_OPS -#include <asm-xen/evtchn.h> +#include <xen/evtchn.h> #if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 )#include <linux/devfs_fs_kernel.h>
linux-2.6-xen-sparse/drivers/xen/netback/common.h +3 -3
@@ -14,9 +14,9 @@#include <linux/in.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/evtchn.h> -#include <asm-xen/xen-public/io/netif.h> +#include <xen/ctrl_if.h> +#include <xen/evtchn.h> +#include <xen/io/netif.h> #include <asm/io.h> #include <asm/pgalloc.h>
linux-2.6-xen-sparse/drivers/xen/netback/netback.c +3 -3
@@ -11,15 +11,15 @@*/ #include "common.h" -#include <asm-xen/balloon.h> +#include <xen/balloon.h> #if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 )#include <linux/delay.h> #endif #if defined(CONFIG_XEN_NETDEV_GRANT_TX ) || defined(CONFIG_XEN_NETDEV_GRANT_RX ) -#include <asm-xen/xen-public/grant_table.h> -#include <asm-xen/gnttab.h> +#include <xen/grant_table.h> +#include <xen/gnttab.h> #ifdef GRANT_DEBUG static void dump_packet (int tag,u32 addr,unsigned char *p)
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +6 -6
@@ -47,16 +47,16 @@#include <net/route.h> #include <asm/io.h> #include <asm/uaccess.h> -#include <asm-xen/evtchn.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/xen-public/io/netif.h> -#include <asm-xen/balloon.h> +#include <xen/evtchn.h> +#include <xen/ctrl_if.h> +#include <xen/io/netif.h> +#include <xen/balloon.h> #include <asm/page.h> #include <asm/uaccess.h> #if defined(CONFIG_XEN_NETDEV_GRANT_TX ) || defined(CONFIG_XEN_NETDEV_GRANT_RX ) -#include <asm-xen/xen-public/grant_table.h> -#include <asm-xen/gnttab.h> +#include <xen/grant_table.h> +#include <xen/gnttab.h> #ifdef GRANT_DEBUG static void dump_packet (int tag,u32 addr,u32 ap)
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c +3 -3
@@ -25,9 +25,9 @@#include <asm/pgtable.h> #include <asm/uaccess.h> #include <asm/tlb.h> -#include <asm-xen/linux-public/privcmd.h> -#include <asm-xen/xen-public/dom0_ops.h> -#include <asm-xen/xen_proc.h> +#include <linux/xen/privcmd.h> +#include <xen/dom0_ops.h> +#include <xen/xen_proc.h> #if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,0 )#define pud_t pgd_t
linux-2.6-xen-sparse/drivers/xen/usbback/common.h +3 -3
@@ -12,10 +12,10 @@#include <asm/io.h> #include <asm/setup.h> #include <asm/pgalloc.h> -#include <asm-xen/ctrl_if.h> -#include <asm-xen/hypervisor.h> +#include <xen/ctrl_if.h> +#include <xen/hypervisor.h> -#include <asm-xen/xen-public/io/usbif.h> +#include <xen/io/usbif.h> #if 0 #define ASSERT (_p) \
linux-2.6-xen-sparse/drivers/xen/usbfront/usbfront.c +1 -1
@@ -69,7 +69,7 @@#include "../../../../../drivers/usb/hcd.h" -#include <asm-xen/xen-public/io/usbif.h> +#include <xen/io/usbif.h> #include <asm/ctrl_if.h> #include <asm/xen-public/io/domain_controller.h>
linux-2.6-xen-sparse/drivers/xen/usbfront/xhci.h +1 -1
@@ -15,7 +15,7 @@#include <linux/list.h> #include <linux/usb.h> -#include <asm-xen/xen-public/io/usbif.h> +#include <xen/io/usbif.h> #include <linux/spinlock.h> /* xhci_port_t - current known state of a virtual hub ports */
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_comms.c +2 -2
@@ -27,8 +27,8 @@* IN THE SOFTWARE. */ -#include <asm-xen/hypervisor.h> -#include <asm-xen/evtchn.h> +#include <xen/hypervisor.h> +#include <xen/evtchn.h> #include <linux/wait.h> #include <linux/interrupt.h> #include <linux/sched.h>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +3 -3
@@ -27,9 +27,9 @@*/ #define DEBUG -#include <asm-xen/hypervisor.h> -#include <asm-xen/xenbus.h> -#include <asm-xen/balloon.h> +#include <xen/hypervisor.h> +#include <xen/xenbus.h> +#include <xen/balloon.h> #include <linux/kernel.h> #include <linux/err.h> #include <linux/string.h>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c +1 -1
@@ -38,7 +38,7 @@#include <linux/slab.h> #include <linux/fcntl.h> #include <linux/kthread.h> -#include <asm-xen/xenbus.h> +#include <xen/xenbus.h> #include "xenbus_comms.h" #define streq (a, b) (strcmp((a), (b)) == 0)
linux-2.6-xen-sparse/include/asm-xen/asm-i386/fixmap.h +1 -1
@@ -27,7 +27,7 @@#include <asm/acpi.h> #include <asm/apicdef.h> #include <asm/page.h> -#include <asm-xen/gnttab.h> +#include <xen/gnttab.h> #ifdef CONFIG_HIGHMEM #include <linux/threads.h> #include <asm/kmap_types.h>
linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h +1 -1
@@ -29,7 +29,7 @@#ifndef __HYPERCALL_H__#define __HYPERCALL_H__ -#include <asm-xen/xen-public/xen.h> +#include <xen/xen.h> /* * Assembler stubs for hyper-calls.
linux-2.6-xen-sparse/include/asm-xen/asm-i386/page.h +2 -2
@@ -17,8 +17,8 @@#include <linux/types.h> #include <linux/kernel.h> #include <asm/bug.h> -#include <asm-xen/xen-public/xen.h> -#include <asm-xen/foreign_page.h> +#include <xen/xen.h> +#include <xen/foreign_page.h> #define arch_free_page (_page,_order) \ ({ int foreign = PageForeign(_page); \
linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable.h +1 -1
@@ -2,7 +2,7 @@#define _I386_PGTABLE_H#include <linux/config.h> -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> /* * The Linux memory management assumes a three-level page table setup. On
linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h +2 -2
@@ -4,10 +4,10 @@#include <linux/config.h> #include <linux/kernel.h> #include <linux/bitops.h> -#include <asm-xen/synch_bitops.h> +#include <xen/synch_bitops.h> #include <asm/segment.h> #include <asm/cpufeature.h> -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> #include <asm/smp_alt.h> #ifdef __KERNEL__
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/fixmap.h +1 -1
@@ -14,7 +14,7 @@#include <linux/config.h> #include <linux/kernel.h> #include <asm/apicdef.h> -#include <asm-xen/gnttab.h> +#include <xen/gnttab.h> #include <asm/page.h> #include <asm/vsyscall.h> #include <asm/vsyscall32.h>
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h +1 -1
@@ -35,7 +35,7 @@#ifndef __HYPERCALL_H__#define __HYPERCALL_H__ -#include <asm-xen/xen-public/xen.h> +#include <xen/xen.h> #define __syscall_clobber "r11","rcx","memory"
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/page.h +2 -2
@@ -6,8 +6,8 @@#ifndef __ASSEMBLY__#include <linux/types.h> #endif -#include <asm-xen/xen-public/xen.h> -#include <asm-xen/foreign_page.h> +#include <xen/xen.h> +#include <xen/foreign_page.h> #define arch_free_page (_page,_order) \ ({ int foreign = PageForeign(_page); \
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h +1 -1
@@ -16,7 +16,7 @@#include <asm/bitops.h> #include <linux/threads.h> #include <asm/pda.h> -#include <asm-xen/hypervisor.h> +#include <xen/hypervisor.h> extern pud_t level3_user_pgt[512 ];extern pud_t init_level4_pgt[];extern pud_t init_level4_user_pgt[];
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h +3 -3
@@ -4,9 +4,9 @@#include <linux/config.h> #include <linux/kernel.h> #include <asm/segment.h> -#include <asm-xen/synch_bitops.h> -#include <asm-xen/hypervisor.h> -#include <asm-xen/xen-public/arch-x86_64.h> +#include <xen/synch_bitops.h> +#include <xen/hypervisor.h> +#include <xen/arch-x86_64.h> #ifdef __KERNEL__
linux-2.6-xen-sparse/mkbuildtree +2 -4
@@ -104,8 +104,6 @@ # Create links to the shared definitions of the Xen interfaces. -rm -rf ${AD}/include/asm-xen/xen-public -mkdir ${AD}/include/asm-xen/xen-public -cd ${AD}/include/asm-xen/xen-public -relative_lndir ../../../${RS}/../xen/include/public +cd ${AD}/include/xen +relative_lndir ../../${RS}/../xen/include/public
tools/blktap/Makefile +1 -1
@@ -52,7 +52,7 @@ ( cd xen/io >/dev/null ; \ ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) + ln -sf ../../$(LINUX_ROOT)/include/linux/xen/*.h . ) install: all $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
tools/libxc/Makefile +1 -1
@@ -72,7 +72,7 @@ ( cd xen/io >/dev/null ; \ ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) + ln -sf ../../$(LINUX_ROOT)/include/linux/xen/*.h . ) install: build [ -d $(DESTDIR)/usr/$(LIBDIR) ] || $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)
tools/security/Makefile +1 -1
@@ -33,4 +33,4 @@ ( cd xen/io >/dev/null ; \ ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) + ln -sf ../../$(LINUX_ROOT)/include/linux/xen/*.h . )
linux-2.6-xen-sparse/include/linux/xen/privcmd.h new file +90 -0
90 lines not on this page · raw message
linux-2.6-xen-sparse/include/linux/xen/suspend.h new file +43 -0
43 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/balloon.h new file +54 -0
54 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/ctrl_if.h new file +160 -0
160 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/evtchn.h new file +135 -0
135 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/foreign_page.h new file +30 -0
@@ -0,0 +1,30 @@ +/****************************************************************************** +* foreign_page.h +* +* Provide a "foreign" page type, that is owned by a foreign allocator and +* not the normal buddy allocator in page_alloc.c +* +* Copyright (c) 2004, K A Fraser +*/ + +#ifndef __ASM_XEN_FOREIGN_PAGE_H__ +#define __ASM_XEN_FOREIGN_PAGE_H__ + +#define PG_foreign PG_arch_1 + +#define PageForeign (page) test_bit(PG_foreign, &(page)->flags) + +#define SetPageForeign (page, dtor) do { \ + set_bit(PG_foreign, &(page)->flags); \ + (page)->mapping = (void *)dtor; \ +} while (0) + +#define ClearPageForeign (page) do { \ + clear_bit(PG_foreign, &(page)->flags); \ + (page)->mapping = NULL; \ +} while (0) + +#define PageForeignDestructor (page) \ + ( (void (*) (struct page *)) (page)->mapping ) + +#endif /* __ASM_XEN_FOREIGN_PAGE_H__ */
linux-2.6-xen-sparse/include/xen/gnttab.h new file +72 -0
72 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/hypervisor.h new file +199 -0
199 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/queues.h new file +81 -0
81 lines not on this page · raw message
linux-2.6-xen-sparse/include/xen/synch_bitops.h new file +2 -0
@@ -0,0 +1,2 @@ + +#include <asm-i386/synch_bitops.h>
linux-2.6-xen-sparse/include/xen/xen_proc.h new file +13 -0
@@ -0,0 +1,13 @@ + +#ifndef __ASM_XEN_PROC_H__ +#define __ASM_XEN_PROC_H__ + +#include <linux/config.h> +#include <linux/proc_fs.h> + +extern struct proc_dir_entry *create_xen_proc_entry ( +const char *name,mode_t mode); +extern void remove_xen_proc_entry ( +const char *name); + +#endif /* __ASM_XEN_PROC_H__ */
linux-2.6-xen-sparse/include/xen/xenbus.h new file +127 -0
127 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/balloon.h deleted +0 -54
54 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/ctrl_if.h deleted +0 -160
160 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/evtchn.h deleted +0 -135
135 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/foreign_page.h deleted +0 -30
@@ -1,30 +0,0 @@ -/****************************************************************************** -* foreign_page.h -* -* Provide a "foreign" page type, that is owned by a foreign allocator and -* not the normal buddy allocator in page_alloc.c -* -* Copyright (c) 2004, K A Fraser -*/ - -#ifndef __ASM_XEN_FOREIGN_PAGE_H__ -#define __ASM_XEN_FOREIGN_PAGE_H__ - -#define PG_foreign PG_arch_1 - -#define PageForeign (page) test_bit(PG_foreign, &(page)->flags) - -#define SetPageForeign (page, dtor) do { \ - set_bit(PG_foreign, &(page)->flags); \ - (page)->mapping = (void *)dtor; \ -} while (0) - -#define ClearPageForeign (page) do { \ - clear_bit(PG_foreign, &(page)->flags); \ - (page)->mapping = NULL; \ -} while (0) - -#define PageForeignDestructor (page) \ - ( (void (*) (struct page *)) (page)->mapping ) - -#endif /* __ASM_XEN_FOREIGN_PAGE_H__ */
linux-2.6-xen-sparse/include/asm-xen/gnttab.h deleted +0 -72
72 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/hypervisor.h deleted +0 -199
199 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/linux-public/privcmd.h deleted +0 -90
90 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/linux-public/suspend.h deleted +0 -43
43 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/queues.h deleted +0 -81
81 lines not on this page · raw message
linux-2.6-xen-sparse/include/asm-xen/synch_bitops.h deleted +0 -2
@@ -1,2 +0,0 @@ - -#include <asm-i386/synch_bitops.h>
linux-2.6-xen-sparse/include/asm-xen/xen_proc.h deleted +0 -13
@@ -1,13 +0,0 @@ - -#ifndef __ASM_XEN_PROC_H__ -#define __ASM_XEN_PROC_H__ - -#include <linux/config.h> -#include <linux/proc_fs.h> - -extern struct proc_dir_entry *create_xen_proc_entry ( -const char *name,mode_t mode); -extern void remove_xen_proc_entry ( -const char *name); - -#endif /* __ASM_XEN_PROC_H__ */
linux-2.6-xen-sparse/include/asm-xen/xenbus.h deleted +0 -127
127 lines not on this page · raw message
Quoted 10 lines
Thanks,
Dan_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 1 line
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
Quoted 10 lines
Quoted 3 lines
Where do any arch-dep headers go? In the patch I'm floating to linux-ia64, they are in, e.g.,
include/asm-ia64/xen/*.h
include/asm-$ARCH/mach-xen/*.his where I've put them for i386.I use a script which may be the most succinct way to see the change. Here's the core of the script:
mv linux-2.6-xen-sparse/include/asm-xen/*.h linux-2.6-xen-sparse/include/xen/
I'm still confused... There are currently two subdirectories of sparse/include/asm-xen/ that contain the arch-dep headers. But the above mv command has moved them to include/xen/asm-$ARCH not include include/asm-$ARCH/mach-xen/
Or is that just a future patch that's not part of this one?
Also, just one more attempt, then I'll shut up (on this point anyway)... xen is not a mach as it is orthogonal to mach (e.g. could be combined with other mach's). E.g. arch-dep includes for ia64 should be in include/asm-ia64/xen because they may, for example, run on SGI's sn subarch.
Thanks,
Dan
Quoted 6 lines · * Dan Magenheimer ([email protected]) wrote:
Quoted 1 line
mv linux-2.6-xen-sparse/include/asm-xen/*.h linux-2.6-xen-sparse/include/xen/
I'm still confused... There are currently two subdirectories of sparse/include/asm-xen/ that contain the arch-dep headers. But the above mv command has moved them to
include/xen/asm-$ARCHnot includeinclude/asm-$ARCH/mach-xen/
No, I think you misread. Only the *.h are moved. Those are not machine specific, rather core xen headers. The actual machine specific bits are left behind in this patch, because that's the actual meat of doing the subarch split. Basically, moving all this stuff about while both sides (xen and linux) are moving is a pain, so I'm looking for simple bits that could go into xen w/out requiring the full subarch patch. I've currently dropped this, and now the subarch is using the core headers in the old (current) location, and only moving the asm-xen/asm-$ARCH/ bits. It means I have to maintain some copies of headers, but it too can be automated, so maybe that's the better approach.
Quoted 6 lines
Also, just one more attempt, then I'll shut up (on this point anyway)... xen is not a mach as it is orthogonal to mach (e.g. could be combined with other mach's). E.g. arch-dep includes for ia64 should be in
include/asm-ia64/xenbecause they may, for example, run on SGI's sn subarch.
Yes, but Xen also needs to override some of the defaults. There may be same issue with conflicting with subarch changes as there is with xen vs base arch. I don't know the best solution yet.
thanks,
-chris