[XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!

Anthony PERARD posted 47 patches 3 years ago
Failed in applying to current master (apply log)
There is a newer version of this series
.gitignore                                    |   6 +-
MAINTAINERS                                   |  37 +-
tools/firmware/xen-dir/Makefile               |  71 +--
tools/include/Makefile                        |   2 +-
tools/misc/xen-access.c                       |   4 +-
tools/tests/vhpet/Makefile                    |   2 +-
xen/Kconfig                                   |   4 +-
xen/Makefile                                  | 367 +++++++++-------
xen/Rules.mk                                  | 256 +++++++----
xen/arch/arm/Makefile                         |  59 +--
xen/arch/arm/README.LinuxPrimitives           |  10 +-
xen/arch/arm/arch.mk                          |   4 +-
xen/arch/arm/arm32/head.S                     |   2 +-
xen/arch/arm/arm64/head.S                     |   2 +-
xen/arch/arm/efi/Makefile                     |   4 +-
.../asm-arm => arch/arm/include/asm}/acpi.h   |   0
.../arm/include/asm}/alternative.h            |   0
.../asm-arm => arch/arm/include/asm}/altp2m.h |   0
.../arm/include/asm}/arm32/atomic.h           |   0
.../arm/include/asm}/arm32/bitops.h           |   0
.../arm/include/asm}/arm32/bug.h              |   0
.../arm/include/asm}/arm32/cmpxchg.h          |   0
.../arm/include/asm}/arm32/flushtlb.h         |   0
.../arm/include/asm}/arm32/insn.h             |   0
.../arm/include/asm}/arm32/io.h               |   0
.../arm/include/asm}/arm32/macros.h           |   0
.../arm/include/asm}/arm32/mm.h               |   0
.../arm/include/asm}/arm32/page.h             |   0
.../arm/include/asm}/arm32/processor.h        |   0
.../arm/include/asm}/arm32/sysregs.h          |   0
.../arm/include/asm}/arm32/system.h           |   0
.../arm/include/asm}/arm32/traps.h            |   0
.../arm/include/asm}/arm32/vfp.h              |   0
.../arm/include/asm}/arm64/atomic.h           |   0
.../arm/include/asm}/arm64/bitops.h           |   0
.../arm/include/asm}/arm64/brk.h              |   0
.../arm/include/asm}/arm64/bug.h              |   0
.../arm/include/asm}/arm64/cmpxchg.h          |   0
.../arm/include/asm}/arm64/cpufeature.h       |   0
.../arm/include/asm}/arm64/efibind.h          |   0
.../arm/include/asm}/arm64/flushtlb.h         |   0
.../arm/include/asm}/arm64/hsr.h              |   0
.../arm/include/asm}/arm64/insn.h             |   0
.../arm/include/asm}/arm64/io.h               |   0
.../arm/include/asm}/arm64/macros.h           |   0
.../arm/include/asm}/arm64/mm.h               |   0
.../arm/include/asm}/arm64/page.h             |   0
.../arm/include/asm}/arm64/processor.h        |   0
.../arm/include/asm}/arm64/sysregs.h          |   0
.../arm/include/asm}/arm64/system.h           |   0
.../arm/include/asm}/arm64/traps.h            |   0
.../arm/include/asm}/arm64/vfp.h              |   0
.../arm/include/asm}/asm_defns.h              |   0
.../asm-arm => arch/arm/include/asm}/atomic.h |   0
.../asm-arm => arch/arm/include/asm}/bitops.h |   0
.../asm-arm => arch/arm/include/asm}/bug.h    |   0
.../arm/include/asm}/byteorder.h              |   0
.../asm-arm => arch/arm/include/asm}/cache.h  |   0
.../arm/include/asm}/cadence-uart.h           |   0
.../asm-arm => arch/arm/include/asm}/config.h |   2 +-
.../asm-arm => arch/arm/include/asm}/cpregs.h |   0
.../arm/include/asm}/cpuerrata.h              |   0
.../arm/include/asm}/cpufeature.h             |   0
.../arm/include/asm}/current.h                |   0
.../arm/include/asm}/debugger.h               |   0
.../asm-arm => arch/arm/include/asm}/delay.h  |   0
.../asm-arm => arch/arm/include/asm}/desc.h   |   0
.../asm-arm => arch/arm/include/asm}/device.h |   0
.../asm-arm => arch/arm/include/asm}/div64.h  |   0
.../asm-arm => arch/arm/include/asm}/domain.h |   0
.../arm/include/asm}/domain_build.h           |   0
.../arm/include/asm}/early_printk.h           |   0
.../arm/include/asm}/efibind.h                |   0
.../asm-arm => arch/arm/include/asm}/elf.h    |   0
.../asm-arm => arch/arm/include/asm}/event.h  |   0
.../arm/include/asm}/exynos4210-uart.h        |   0
.../arm/include/asm}/flushtlb.h               |   0
.../asm-arm => arch/arm/include/asm}/gic.h    |   0
.../arm/include/asm}/gic_v3_defs.h            |   0
.../arm/include/asm}/gic_v3_its.h             |   0
.../arm/include/asm}/grant_table.h            |   0
.../arm/include/asm}/guest_access.h           |   0
.../arm/include/asm}/guest_atomics.h          |   0
.../arm/include/asm}/guest_walk.h             |   0
.../arm/include/asm}/hardirq.h                |   0
.../asm-arm => arch/arm/include/asm}/hsr.h    |   0
.../arm/include/asm}/hypercall.h              |   0
.../asm-arm => arch/arm/include/asm}/init.h   |   0
.../asm-arm => arch/arm/include/asm}/insn.h   |   0
.../asm-arm => arch/arm/include/asm}/io.h     |   0
.../asm-arm => arch/arm/include/asm}/iocap.h  |   0
.../asm-arm => arch/arm/include/asm}/iommu.h  |   0
.../arm/include/asm}/iommu_fwspec.h           |   0
.../asm-arm => arch/arm/include/asm}/ioreq.h  |   0
.../asm-arm => arch/arm/include/asm}/irq.h    |   0
.../asm-arm => arch/arm/include/asm}/kernel.h |   0
.../arm/include/asm}/livepatch.h              |   0
.../asm-arm => arch/arm/include/asm}/lpae.h   |   0
.../asm-arm => arch/arm/include/asm}/macros.h |   0
.../arm/include/asm}/mem_access.h             |   0
.../asm-arm => arch/arm/include/asm}/mm.h     |   0
.../asm-arm => arch/arm/include/asm}/mmio.h   |   0
.../arm/include/asm}/monitor.h                |   0
.../arm/include/asm}/new_vgic.h               |   0
.../asm-arm => arch/arm/include/asm}/nospec.h |   0
.../asm-arm => arch/arm/include/asm}/numa.h   |   0
.../asm-arm => arch/arm/include/asm}/p2m.h    |   0
.../arm/include/asm}/page-bits.h              |   0
.../asm-arm => arch/arm/include/asm}/page.h   |   0
.../asm-arm => arch/arm/include/asm}/paging.h |   0
.../asm-arm => arch/arm/include/asm}/pci.h    |   0
.../asm-arm => arch/arm/include/asm}/percpu.h |   0
.../asm-arm => arch/arm/include/asm}/perfc.h  |   0
.../arm/include/asm}/perfc_defn.h             |   0
.../arm/include/asm}/pl011-uart.h             |   0
.../arm/include/asm}/platform.h               |   0
.../arm/include/asm}/platforms/exynos5.h      |   0
.../arm/include/asm}/platforms/midway.h       |   0
.../arm/include/asm}/platforms/omap5.h        |   0
.../arm/include/asm}/platforms/vexpress.h     |   0
.../asm}/platforms/xilinx-zynqmp-eemi.h       |   0
.../arm/include/asm}/processor.h              |   0
.../arm/include/asm}/procinfo.h               |   0
.../asm-arm => arch/arm/include/asm}/psci.h   |   0
.../asm-arm => arch/arm/include/asm}/random.h |   0
.../asm-arm => arch/arm/include/asm}/regs.h   |   0
.../arm/include/asm}/scif-uart.h              |   0
.../asm-arm => arch/arm/include/asm}/setup.h  |   0
.../arm/include/asm}/short-desc.h             |   0
.../asm-arm => arch/arm/include/asm}/smccc.h  |   0
.../asm-arm => arch/arm/include/asm}/smp.h    |   0
.../arm/include/asm}/softirq.h                |   0
.../arm/include/asm}/spinlock.h               |   0
.../asm-arm => arch/arm/include/asm}/string.h |   0
.../arm/include/asm}/sysregs.h                |   0
.../asm-arm => arch/arm/include/asm}/system.h |   0
.../arm/include/asm}/tee/optee_msg.h          |   0
.../arm/include/asm}/tee/optee_rpc_cmd.h      |   0
.../arm/include/asm}/tee/optee_smc.h          |   0
.../arm/include/asm}/tee/tee.h                |   0
.../asm-arm => arch/arm/include/asm}/time.h   |   0
.../asm-arm => arch/arm/include/asm}/trace.h  |   0
.../asm-arm => arch/arm/include/asm}/traps.h  |   0
.../asm-arm => arch/arm/include/asm}/types.h  |   0
.../asm-arm => arch/arm/include/asm}/vfp.h    |   0
.../arm/include/asm}/vgic-emul.h              |   0
.../asm-arm => arch/arm/include/asm}/vgic.h   |   0
.../arm/include/asm}/vm_event.h               |   0
.../asm-arm => arch/arm/include/asm}/vpl011.h |   0
.../asm-arm => arch/arm/include/asm}/vpsci.h  |   0
.../asm-arm => arch/arm/include/asm}/vreg.h   |   0
.../asm-arm => arch/arm/include/asm}/vtimer.h |   0
.../arm/include/asm}/xenoprof.h               |   0
xen/arch/arm/smpboot.c                        |   2 +-
xen/arch/arm/vpsci.c                          |   2 +-
xen/arch/riscv/arch.mk                        |   1 -
.../riscv/include/asm}/config.h               |   0
xen/arch/x86/Makefile                         | 204 ++++-----
xen/arch/x86/Rules.mk                         |   4 +-
xen/arch/x86/arch.mk                          |  54 ++-
xen/arch/x86/boot/Makefile                    |  62 ++-
xen/arch/x86/boot/build32.mk                  |  40 --
xen/arch/x86/boot/head.S                      |   4 +-
xen/arch/x86/efi/Makefile                     |  11 +-
.../asm-x86 => arch/x86/include/asm}/acpi.h   |   0
.../x86/include/asm}/alternative-asm.h        |   0
.../x86/include/asm}/alternative.h            |   0
.../asm-x86 => arch/x86/include/asm}/altp2m.h |   0
.../asm-x86 => arch/x86/include/asm}/amd.h    |   0
.../asm-x86 => arch/x86/include/asm}/apic.h   |   0
.../x86/include/asm}/apicdef.h                |   0
.../x86/include/asm}/asm-defns.h              |   0
.../x86/include/asm}/asm_defns.h              |   0
.../asm-x86 => arch/x86/include/asm}/atomic.h |   0
.../asm-x86 => arch/x86/include/asm}/bitops.h |   0
.../asm-x86 => arch/x86/include/asm}/bug.h    |   0
.../x86/include/asm}/byteorder.h              |   0
.../x86/include/asm}/bzimage.h                |   0
.../asm-x86 => arch/x86/include/asm}/cache.h  |   0
.../asm-x86 => arch/x86/include/asm}/compat.h |   0
.../asm-x86 => arch/x86/include/asm}/config.h |   0
.../x86/include/asm}/cpufeature.h             |   0
.../x86/include/asm}/cpufeatures.h            |   0
.../x86/include/asm}/cpufeatureset.h          |   0
.../asm-x86 => arch/x86/include/asm}/cpuid.h  |   0
.../x86/include/asm}/cpuidle.h                |   0
.../x86/include/asm}/current.h                |   2 +-
.../x86/include/asm}/debugger.h               |   0
.../x86/include/asm}/debugreg.h               |   0
.../asm-x86 => arch/x86/include/asm}/delay.h  |   0
.../asm-x86 => arch/x86/include/asm}/desc.h   |   0
.../asm-x86 => arch/x86/include/asm}/device.h |   0
.../asm-x86 => arch/x86/include/asm}/div64.h  |   0
.../x86/include/asm}/dom0_build.h             |   0
.../asm-x86 => arch/x86/include/asm}/domain.h |   2 +-
.../asm-x86 => arch/x86/include/asm}/e820.h   |   0
.../asm-x86 => arch/x86/include/asm}/edd.h    |   0
.../x86/include/asm}/efibind.h                |   0
.../asm-x86 => arch/x86/include/asm}/elf.h    |   0
.../asm-x86 => arch/x86/include/asm}/event.h  |   0
.../asm-x86 => arch/x86/include/asm}/fixmap.h |   0
.../x86/include/asm}/flushtlb.h               |   0
.../x86/include/asm}/genapic.h                |   0
.../x86/include/asm}/grant_table.h            |   0
.../asm-x86 => arch/x86/include/asm}/guest.h  |   0
.../x86/include/asm}/guest/hyperv-hcall.h     |   0
.../x86/include/asm}/guest/hyperv-tlfs.h      |   0
.../x86/include/asm}/guest/hyperv.h           |   0
.../x86/include/asm}/guest/hypervisor.h       |   0
.../x86/include/asm}/guest/pvh-boot.h         |   0
.../x86/include/asm}/guest/xen-hcall.h        |   0
.../x86/include/asm}/guest/xen.h              |   0
.../x86/include/asm}/guest_access.h           |   0
.../x86/include/asm}/guest_atomics.h          |   0
.../x86/include/asm}/guest_pt.h               |   0
.../asm-x86 => arch/x86/include/asm}/hap.h    |   0
.../x86/include/asm}/hardirq.h                |   0
.../asm-x86 => arch/x86/include/asm}/hpet.h   |   0
.../x86/include/asm}/hvm/asid.h               |   0
.../x86/include/asm}/hvm/cacheattr.h          |   0
.../x86/include/asm}/hvm/domain.h             |   0
.../x86/include/asm}/hvm/emulate.h            |   0
.../x86/include/asm}/hvm/grant_table.h        |   0
.../x86/include/asm}/hvm/guest_access.h       |   0
.../x86/include/asm}/hvm/hvm.h                |   0
.../asm-x86 => arch/x86/include/asm}/hvm/io.h |   0
.../x86/include/asm}/hvm/ioreq.h              |   0
.../x86/include/asm}/hvm/irq.h                |   0
.../x86/include/asm}/hvm/monitor.h            |   0
.../x86/include/asm}/hvm/nestedhvm.h          |   0
.../x86/include/asm}/hvm/save.h               |   0
.../x86/include/asm}/hvm/support.h            |   0
.../x86/include/asm}/hvm/svm/asid.h           |   0
.../x86/include/asm}/hvm/svm/emulate.h        |   0
.../x86/include/asm}/hvm/svm/intr.h           |   0
.../x86/include/asm}/hvm/svm/nestedsvm.h      |   0
.../x86/include/asm}/hvm/svm/svm.h            |   0
.../x86/include/asm}/hvm/svm/svmdebug.h       |   0
.../x86/include/asm}/hvm/svm/vmcb.h           |   0
.../x86/include/asm}/hvm/trace.h              |   0
.../x86/include/asm}/hvm/vcpu.h               |   0
.../x86/include/asm}/hvm/vioapic.h            |   0
.../x86/include/asm}/hvm/viridian.h           |   0
.../x86/include/asm}/hvm/vlapic.h             |   0
.../x86/include/asm}/hvm/vm_event.h           |   0
.../x86/include/asm}/hvm/vmx/vmcs.h           |   0
.../x86/include/asm}/hvm/vmx/vmx.h            |   0
.../x86/include/asm}/hvm/vmx/vvmx.h           |   0
.../x86/include/asm}/hvm/vpic.h               |   0
.../x86/include/asm}/hvm/vpt.h                |   0
.../x86/include/asm}/hypercall.h              |   0
.../asm-x86 => arch/x86/include/asm}/i387.h   |   0
.../asm-x86 => arch/x86/include/asm}/init.h   |   0
.../x86/include/asm}/invpcid.h                |   0
.../asm-x86 => arch/x86/include/asm}/io.h     |   0
.../x86/include/asm}/io_apic.h                |   0
.../asm-x86 => arch/x86/include/asm}/iocap.h  |   0
.../asm-x86 => arch/x86/include/asm}/iommu.h  |   0
.../asm-x86 => arch/x86/include/asm}/ioreq.h  |   0
.../asm-x86 => arch/x86/include/asm}/irq.h    |   0
.../asm-x86 => arch/x86/include/asm}/ldt.h    |   0
.../x86/include/asm}/livepatch.h              |   0
.../x86/include/asm}/mach-default/bios_ebda.h |   0
.../x86/include/asm}/mach-default/io_ports.h  |   0
.../include/asm}/mach-default/irq_vectors.h   |   0
.../include/asm}/mach-default/mach_mpparse.h  |   0
.../include/asm}/mach-default/mach_mpspec.h   |   0
.../x86/include/asm}/mach-generic/mach_apic.h |   0
.../include/asm}/mach-generic/mach_mpparse.h  |   0
.../x86/include/asm}/machine_kexec.h          |   0
.../x86/include/asm}/mc146818rtc.h            |   0
.../asm-x86 => arch/x86/include/asm}/mce.h    |   0
.../x86/include/asm}/mem_access.h             |   0
.../x86/include/asm}/mem_paging.h             |   0
.../x86/include/asm}/mem_sharing.h            |   0
.../x86/include/asm}/microcode.h              |   0
.../asm-x86 => arch/x86/include/asm}/mm.h     |   0
.../x86/include/asm}/monitor.h                |   0
.../asm-x86 => arch/x86/include/asm}/mpspec.h |   0
.../x86/include/asm}/mpspec_def.h             |   0
.../asm-x86 => arch/x86/include/asm}/msi.h    |   0
.../x86/include/asm}/msr-index.h              |   0
.../asm-x86 => arch/x86/include/asm}/msr.h    |   0
.../asm-x86 => arch/x86/include/asm}/mtrr.h   |   0
.../x86/include/asm}/multicall.h              |   0
.../asm-x86 => arch/x86/include/asm}/mwait.h  |   0
.../asm-x86 => arch/x86/include/asm}/nmi.h    |   0
.../asm-x86 => arch/x86/include/asm}/nops.h   |   0
.../asm-x86 => arch/x86/include/asm}/nospec.h |   0
.../asm-x86 => arch/x86/include/asm}/numa.h   |   0
.../asm-x86 => arch/x86/include/asm}/p2m.h    |   0
.../x86/include/asm}/page-bits.h              |   0
.../asm-x86 => arch/x86/include/asm}/page.h   |   0
.../asm-x86 => arch/x86/include/asm}/paging.h |   0
.../asm-x86 => arch/x86/include/asm}/pci.h    |   0
.../asm-x86 => arch/x86/include/asm}/percpu.h |   0
.../asm-x86 => arch/x86/include/asm}/perfc.h  |   0
.../x86/include/asm}/perfc_defn.h             |   0
.../x86/include/asm}/processor.h              |   0
.../asm-x86 => arch/x86/include/asm}/psr.h    |   0
.../x86/include/asm}/pv/domain.h              |   0
.../x86/include/asm}/pv/grant_table.h         |   0
.../asm-x86 => arch/x86/include/asm}/pv/mm.h  |   0
.../x86/include/asm}/pv/shim.h                |   0
.../x86/include/asm}/pv/trace.h               |   0
.../x86/include/asm}/pv/traps.h               |   0
.../asm-x86 => arch/x86/include/asm}/random.h |   0
.../asm-x86 => arch/x86/include/asm}/regs.h   |   0
.../asm-x86 => arch/x86/include/asm}/setup.h  |   0
.../asm-x86 => arch/x86/include/asm}/shadow.h |   0
.../asm-x86 => arch/x86/include/asm}/shared.h |   0
.../asm-x86 => arch/x86/include/asm}/smp.h    |   0
.../x86/include/asm}/softirq.h                |   0
.../x86/include/asm}/spec_ctrl.h              |   0
.../x86/include/asm}/spec_ctrl_asm.h          |   0
.../x86/include/asm}/spinlock.h               |   0
.../asm-x86 => arch/x86/include/asm}/string.h |   0
.../asm-x86 => arch/x86/include/asm}/system.h |   0
.../asm-x86 => arch/x86/include/asm}/tboot.h  |   0
.../asm-x86 => arch/x86/include/asm}/time.h   |   0
.../asm-x86 => arch/x86/include/asm}/trace.h  |   0
.../asm-x86 => arch/x86/include/asm}/traps.h  |   0
.../asm-x86 => arch/x86/include/asm}/types.h  |   0
.../x86/include/asm}/uaccess.h                |   0
.../x86/include/asm}/unaligned.h              |   0
.../x86/include/asm}/vm_event.h               |   0
.../asm-x86 => arch/x86/include/asm}/vpmu.h   |   0
.../x86/include/asm}/x86-defns.h              |   0
.../x86/include/asm}/x86-vendors.h            |   0
.../x86/include/asm}/x86_64/efibind.h         |   0
.../x86/include/asm}/x86_64/elf.h             |   0
.../x86/include/asm}/x86_64/page.h            |   0
.../x86/include/asm}/x86_64/regs.h            |   0
.../x86/include/asm}/x86_64/system.h          |   0
.../x86/include/asm}/x86_64/uaccess.h         |   0
.../x86/include/asm}/x86_emulate.h            |   2 +-
.../x86/include/asm}/xenoprof.h               |   0
.../asm-x86 => arch/x86/include/asm}/xstate.h |   0
xen/build.mk                                  |  96 +++++
xen/common/Makefile                           |  15 +-
xen/common/efi/efi_common.mk                  |  16 +
xen/common/efi/runtime.c                      |   2 +-
xen/common/libelf/Makefile                    |   4 +-
xen/common/libfdt/Makefile                    |   8 +-
xen/common/page_alloc.c                       |   2 +-
xen/include/Makefile                          |  74 ++--
xen/include/xen/acpi.h                        |   5 +-
xen/include/xen/bitmap.h                      |   2 +-
xen/scripts/Kbuild.include                    |  69 ++-
xen/scripts/Kconfig.include                   |   2 +-
xen/scripts/Makefile.clean                    |  32 +-
xen/{tools/kconfig => scripts}/Makefile.host  |  69 +--
xen/test/Makefile                             |   7 +-
xen/test/livepatch/Makefile                   | 213 ++++-----
xen/tools/Makefile                            |  14 +-
xen/tools/fixdep.c                            | 404 ++++++++++++++++++
xen/tools/kconfig/Makefile                    |  15 +-
xen/tools/kconfig/Makefile.kconfig            | 106 -----
xen/tools/kconfig/confdata.c                  |  12 +-
xen/xsm/flask/Makefile                        |  43 +-
xen/xsm/flask/include/avc.h                   |   4 +-
xen/xsm/flask/include/avc_ss.h                |   2 +-
xen/xsm/flask/include/objsec.h                |   2 +-
xen/xsm/flask/include/security.h              |   2 +-
xen/xsm/flask/policy/mkaccess_vector.sh       |   7 +-
xen/xsm/flask/ss/Makefile                     |   3 +-
366 files changed, 1494 insertions(+), 958 deletions(-)
rename xen/{include/asm-arm => arch/arm/include/asm}/acpi.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/alternative.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/altp2m.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/atomic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/bitops.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/bug.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/cmpxchg.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/flushtlb.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/insn.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/io.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/macros.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/mm.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/page.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/processor.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/sysregs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/system.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/traps.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/vfp.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/atomic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/bitops.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/brk.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/bug.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/cmpxchg.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/cpufeature.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/efibind.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/flushtlb.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/hsr.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/insn.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/io.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/macros.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/mm.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/page.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/processor.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/sysregs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/system.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/traps.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/vfp.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/asm_defns.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/atomic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/bitops.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/bug.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/byteorder.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/cache.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/cadence-uart.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/config.h (99%)
rename xen/{include/asm-arm => arch/arm/include/asm}/cpregs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/cpuerrata.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/cpufeature.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/current.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/debugger.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/delay.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/desc.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/device.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/div64.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/domain.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/domain_build.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/early_printk.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/efibind.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/elf.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/event.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/exynos4210-uart.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/flushtlb.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/gic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/gic_v3_defs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/gic_v3_its.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/grant_table.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/guest_access.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/guest_atomics.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/guest_walk.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/hardirq.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/hsr.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/hypercall.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/init.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/insn.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/io.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/iocap.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/iommu.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/iommu_fwspec.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/ioreq.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/irq.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/kernel.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/livepatch.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/lpae.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/macros.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/mem_access.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/mm.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/mmio.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/monitor.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/new_vgic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/nospec.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/numa.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/p2m.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/page-bits.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/page.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/paging.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/pci.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/percpu.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/perfc.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/perfc_defn.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/pl011-uart.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platform.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/exynos5.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/midway.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/omap5.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/vexpress.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/xilinx-zynqmp-eemi.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/processor.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/procinfo.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/psci.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/random.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/regs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/scif-uart.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/setup.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/short-desc.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/smccc.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/smp.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/softirq.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/spinlock.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/string.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/sysregs.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/system.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_msg.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_rpc_cmd.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_smc.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/tee/tee.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/time.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/trace.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/traps.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/types.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vfp.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vgic-emul.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vgic.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vm_event.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vpl011.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vpsci.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vreg.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/vtimer.h (100%)
rename xen/{include/asm-arm => arch/arm/include/asm}/xenoprof.h (100%)
rename xen/{include/asm-riscv => arch/riscv/include/asm}/config.h (100%)
delete mode 100644 xen/arch/x86/boot/build32.mk
rename xen/{include/asm-x86 => arch/x86/include/asm}/acpi.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/alternative-asm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/alternative.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/altp2m.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/amd.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/apic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/apicdef.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/asm-defns.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/asm_defns.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/atomic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/bitops.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/bug.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/byteorder.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/bzimage.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cache.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/compat.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/config.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeature.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeatures.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeatureset.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cpuid.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/cpuidle.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/current.h (99%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/debugger.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/debugreg.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/delay.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/desc.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/device.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/div64.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/dom0_build.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/domain.h (99%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/e820.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/edd.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/efibind.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/elf.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/event.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/fixmap.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/flushtlb.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/genapic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/grant_table.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv-hcall.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv-tlfs.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hypervisor.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/pvh-boot.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/xen-hcall.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/xen.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_access.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_atomics.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_pt.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hap.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hardirq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hpet.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/asid.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/cacheattr.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/domain.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/emulate.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/grant_table.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/guest_access.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/hvm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/io.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/ioreq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/irq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/monitor.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/nestedhvm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/save.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/support.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/asid.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/emulate.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/intr.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/nestedsvm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/svm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/svmdebug.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/vmcb.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/trace.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vcpu.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vioapic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/viridian.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vlapic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vm_event.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vmcs.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vmx.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vvmx.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vpic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vpt.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/hypercall.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/i387.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/init.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/invpcid.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/io.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/io_apic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/iocap.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/iommu.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/ioreq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/irq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/ldt.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/livepatch.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/bios_ebda.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/io_ports.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/irq_vectors.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/mach_mpparse.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/mach_mpspec.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-generic/mach_apic.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-generic/mach_mpparse.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/machine_kexec.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mc146818rtc.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mce.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_access.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_paging.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_sharing.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/microcode.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/monitor.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mpspec.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mpspec_def.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/msi.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/msr-index.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/msr.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mtrr.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/multicall.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/mwait.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/nmi.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/nops.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/nospec.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/numa.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/p2m.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/page-bits.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/page.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/paging.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pci.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/percpu.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/perfc.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/perfc_defn.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/processor.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/psr.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/domain.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/grant_table.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/mm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/shim.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/trace.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/traps.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/random.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/regs.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/setup.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/shadow.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/shared.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/smp.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/softirq.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/spec_ctrl.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/spec_ctrl_asm.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/spinlock.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/string.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/system.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/tboot.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/time.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/trace.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/traps.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/types.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/uaccess.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/unaligned.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/vm_event.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/vpmu.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86-defns.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86-vendors.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/efibind.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/elf.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/page.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/regs.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/system.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/uaccess.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_emulate.h (89%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/xenoprof.h (100%)
rename xen/{include/asm-x86 => arch/x86/include/asm}/xstate.h (100%)
create mode 100644 xen/build.mk
create mode 100644 xen/common/efi/efi_common.mk
rename xen/{tools/kconfig => scripts}/Makefile.host (74%)
create mode 100644 xen/tools/fixdep.c
delete mode 100644 xen/tools/kconfig/Makefile.kconfig
[XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Anthony PERARD 3 years ago
Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v8

v8:
    Mostly rework of v7. With many patch already applied.
    Some detail changes that are spread through many patches:
    - `make cloc` recipe should now work throughout the series, update of it is
      done in 3 patches.
    - new patch "build: fix enforce unique symbols for recent clang version"
      to fix an issue with clang.
    - introducing $(srctree) and $(objtree) earlier
    - introducing $(srcdir) as shortcut for $(srctree)/$(src)
    - introduce usage of -iquote instead of -I in some cases
    More detail change log can be found in patches notes.

    Also this v8 present a work-in-progress of the ability to do out-of-tree
    build without setting VPATH. This is presented as an alternative to force
    use of out-of-tree build. As the last patch show, it allows to build the
    xen-shim without the linkfarm and we don't need to make any other changes
    to any thing that build xen (osstest, distribution packages, xen.git, ...,
    and developers finger macros). The patches are only there as WIP / RFC as
    they were some concern about the usefulness and extra changes needed.
    We can decide whether those changes are good or if this is too much and we
    should force out-of-tree build for the hypervisor.

v7:
    Out-of-tree build!

    This mean many more patches. Everything after patch 27 is new.

    There's a few new patch before that, but otherwise are rework of v6.

Hi,

I have work toward building Xen (the hypervisor) with Linux's build system,
Kbuild.

The main reason for that is to be able to have out-of-tree build. It's annoying
when a build fail because of the pvshim. Other benefit is a much faster
rebuild, and `make clean` doesn't take ages, and better dependencies to figure
out what needs to be rebuild.

Cheers,

Anthony PERARD (47):
  build: factorise generation of the linker scripts
  xen: move include/asm-* to arch/*/include/asm
  build: generate "include/xen/compile.h" with if_changed
  build: set XEN_BUILD_EFI earlier
  build: adjust $(TARGET).efi creation in arch/arm
  build: avoid re-executing the main Makefile by introducing build.mk
  build: set ALL_OBJS to main Makefile; move prelink.o to main Makefile
  build: prepare to always invoke $(MAKE) from xen/, use $(obj)
  build: rework test/livepatch/Makefile
  build: rework cloc recipe
  build: fix enforce unique symbols for recent clang version
  build: build everything from the root dir, use obj=$subdir
  build: introduce if_changed_deps
  build: rename __LINKER__ to LINKER_SCRIPT
  build: hook kconfig into xen build system
  xen/tools/kconfig: fix build with -Wdeclaration-after-statement
  build: remove KBUILD_ specific from Makefile.host
  build: handle always-y and hostprogs-always-y
  build: start building the tools with the main makefiles
  build: add headers path to CFLAGS once for all archs
  build: generate x86's asm-macros.h with filechk
  build: clean-up "clean" rules of duplication
  build: rework "clean" to clean from the root dir
  build: use main rune to build host binary x86's mkelf32 and mkreloc
  build: rework coverage and ubsan CFLAGS handling
  build,x86: remove the need for build32.mk
  build: grab common EFI source files in arch specific dir
  build: replace $(BASEDIR) by $(objtree)
  build: replace $(BASEDIR) and use $(srctree)
  build: rework "headers*.chk" prerequisite in include/
  build: specify source tree in include/ for prerequisite
  build: shuffle main Makefile
  build: adding out-of-tree support to the xen build
  build: add %.E targets
  RFC, no-VPATH: Kconfig: tell where Kconfig files are
  RFC, no-VPATH: Kconfig: only ready auto.conf from objtree
  RFC, no-VPATH: build: remove --include-dir option from MAKEFLAGS
  WIP, no-VPATH: rework Makefile.host
  RFC, no-VPATH: x86/boot: workaround gcc including the wrong file
  RFC, no-VPATH: prepend $(srctree) to source prerequisite
  WIP, no-VPATH: build object from generated C files
  RFC, no-VPATH: workaround includes in xsm/flask
  WIP, no-VPATH: build object from generated assembly source file
  WIP, no-VPATH: build object from S source to be in build_in.o
  WIP, no-VPATH: build xen, out-of-tree!
  RFC, no-VPATH: remove check for clean source tree for out-of-tree
    builds
  WIP: no more link farming for xen-shim

 .gitignore                                    |   6 +-
 MAINTAINERS                                   |  37 +-
 tools/firmware/xen-dir/Makefile               |  71 +--
 tools/include/Makefile                        |   2 +-
 tools/misc/xen-access.c                       |   4 +-
 tools/tests/vhpet/Makefile                    |   2 +-
 xen/Kconfig                                   |   4 +-
 xen/Makefile                                  | 367 +++++++++-------
 xen/Rules.mk                                  | 256 +++++++----
 xen/arch/arm/Makefile                         |  59 +--
 xen/arch/arm/README.LinuxPrimitives           |  10 +-
 xen/arch/arm/arch.mk                          |   4 +-
 xen/arch/arm/arm32/head.S                     |   2 +-
 xen/arch/arm/arm64/head.S                     |   2 +-
 xen/arch/arm/efi/Makefile                     |   4 +-
 .../asm-arm => arch/arm/include/asm}/acpi.h   |   0
 .../arm/include/asm}/alternative.h            |   0
 .../asm-arm => arch/arm/include/asm}/altp2m.h |   0
 .../arm/include/asm}/arm32/atomic.h           |   0
 .../arm/include/asm}/arm32/bitops.h           |   0
 .../arm/include/asm}/arm32/bug.h              |   0
 .../arm/include/asm}/arm32/cmpxchg.h          |   0
 .../arm/include/asm}/arm32/flushtlb.h         |   0
 .../arm/include/asm}/arm32/insn.h             |   0
 .../arm/include/asm}/arm32/io.h               |   0
 .../arm/include/asm}/arm32/macros.h           |   0
 .../arm/include/asm}/arm32/mm.h               |   0
 .../arm/include/asm}/arm32/page.h             |   0
 .../arm/include/asm}/arm32/processor.h        |   0
 .../arm/include/asm}/arm32/sysregs.h          |   0
 .../arm/include/asm}/arm32/system.h           |   0
 .../arm/include/asm}/arm32/traps.h            |   0
 .../arm/include/asm}/arm32/vfp.h              |   0
 .../arm/include/asm}/arm64/atomic.h           |   0
 .../arm/include/asm}/arm64/bitops.h           |   0
 .../arm/include/asm}/arm64/brk.h              |   0
 .../arm/include/asm}/arm64/bug.h              |   0
 .../arm/include/asm}/arm64/cmpxchg.h          |   0
 .../arm/include/asm}/arm64/cpufeature.h       |   0
 .../arm/include/asm}/arm64/efibind.h          |   0
 .../arm/include/asm}/arm64/flushtlb.h         |   0
 .../arm/include/asm}/arm64/hsr.h              |   0
 .../arm/include/asm}/arm64/insn.h             |   0
 .../arm/include/asm}/arm64/io.h               |   0
 .../arm/include/asm}/arm64/macros.h           |   0
 .../arm/include/asm}/arm64/mm.h               |   0
 .../arm/include/asm}/arm64/page.h             |   0
 .../arm/include/asm}/arm64/processor.h        |   0
 .../arm/include/asm}/arm64/sysregs.h          |   0
 .../arm/include/asm}/arm64/system.h           |   0
 .../arm/include/asm}/arm64/traps.h            |   0
 .../arm/include/asm}/arm64/vfp.h              |   0
 .../arm/include/asm}/asm_defns.h              |   0
 .../asm-arm => arch/arm/include/asm}/atomic.h |   0
 .../asm-arm => arch/arm/include/asm}/bitops.h |   0
 .../asm-arm => arch/arm/include/asm}/bug.h    |   0
 .../arm/include/asm}/byteorder.h              |   0
 .../asm-arm => arch/arm/include/asm}/cache.h  |   0
 .../arm/include/asm}/cadence-uart.h           |   0
 .../asm-arm => arch/arm/include/asm}/config.h |   2 +-
 .../asm-arm => arch/arm/include/asm}/cpregs.h |   0
 .../arm/include/asm}/cpuerrata.h              |   0
 .../arm/include/asm}/cpufeature.h             |   0
 .../arm/include/asm}/current.h                |   0
 .../arm/include/asm}/debugger.h               |   0
 .../asm-arm => arch/arm/include/asm}/delay.h  |   0
 .../asm-arm => arch/arm/include/asm}/desc.h   |   0
 .../asm-arm => arch/arm/include/asm}/device.h |   0
 .../asm-arm => arch/arm/include/asm}/div64.h  |   0
 .../asm-arm => arch/arm/include/asm}/domain.h |   0
 .../arm/include/asm}/domain_build.h           |   0
 .../arm/include/asm}/early_printk.h           |   0
 .../arm/include/asm}/efibind.h                |   0
 .../asm-arm => arch/arm/include/asm}/elf.h    |   0
 .../asm-arm => arch/arm/include/asm}/event.h  |   0
 .../arm/include/asm}/exynos4210-uart.h        |   0
 .../arm/include/asm}/flushtlb.h               |   0
 .../asm-arm => arch/arm/include/asm}/gic.h    |   0
 .../arm/include/asm}/gic_v3_defs.h            |   0
 .../arm/include/asm}/gic_v3_its.h             |   0
 .../arm/include/asm}/grant_table.h            |   0
 .../arm/include/asm}/guest_access.h           |   0
 .../arm/include/asm}/guest_atomics.h          |   0
 .../arm/include/asm}/guest_walk.h             |   0
 .../arm/include/asm}/hardirq.h                |   0
 .../asm-arm => arch/arm/include/asm}/hsr.h    |   0
 .../arm/include/asm}/hypercall.h              |   0
 .../asm-arm => arch/arm/include/asm}/init.h   |   0
 .../asm-arm => arch/arm/include/asm}/insn.h   |   0
 .../asm-arm => arch/arm/include/asm}/io.h     |   0
 .../asm-arm => arch/arm/include/asm}/iocap.h  |   0
 .../asm-arm => arch/arm/include/asm}/iommu.h  |   0
 .../arm/include/asm}/iommu_fwspec.h           |   0
 .../asm-arm => arch/arm/include/asm}/ioreq.h  |   0
 .../asm-arm => arch/arm/include/asm}/irq.h    |   0
 .../asm-arm => arch/arm/include/asm}/kernel.h |   0
 .../arm/include/asm}/livepatch.h              |   0
 .../asm-arm => arch/arm/include/asm}/lpae.h   |   0
 .../asm-arm => arch/arm/include/asm}/macros.h |   0
 .../arm/include/asm}/mem_access.h             |   0
 .../asm-arm => arch/arm/include/asm}/mm.h     |   0
 .../asm-arm => arch/arm/include/asm}/mmio.h   |   0
 .../arm/include/asm}/monitor.h                |   0
 .../arm/include/asm}/new_vgic.h               |   0
 .../asm-arm => arch/arm/include/asm}/nospec.h |   0
 .../asm-arm => arch/arm/include/asm}/numa.h   |   0
 .../asm-arm => arch/arm/include/asm}/p2m.h    |   0
 .../arm/include/asm}/page-bits.h              |   0
 .../asm-arm => arch/arm/include/asm}/page.h   |   0
 .../asm-arm => arch/arm/include/asm}/paging.h |   0
 .../asm-arm => arch/arm/include/asm}/pci.h    |   0
 .../asm-arm => arch/arm/include/asm}/percpu.h |   0
 .../asm-arm => arch/arm/include/asm}/perfc.h  |   0
 .../arm/include/asm}/perfc_defn.h             |   0
 .../arm/include/asm}/pl011-uart.h             |   0
 .../arm/include/asm}/platform.h               |   0
 .../arm/include/asm}/platforms/exynos5.h      |   0
 .../arm/include/asm}/platforms/midway.h       |   0
 .../arm/include/asm}/platforms/omap5.h        |   0
 .../arm/include/asm}/platforms/vexpress.h     |   0
 .../asm}/platforms/xilinx-zynqmp-eemi.h       |   0
 .../arm/include/asm}/processor.h              |   0
 .../arm/include/asm}/procinfo.h               |   0
 .../asm-arm => arch/arm/include/asm}/psci.h   |   0
 .../asm-arm => arch/arm/include/asm}/random.h |   0
 .../asm-arm => arch/arm/include/asm}/regs.h   |   0
 .../arm/include/asm}/scif-uart.h              |   0
 .../asm-arm => arch/arm/include/asm}/setup.h  |   0
 .../arm/include/asm}/short-desc.h             |   0
 .../asm-arm => arch/arm/include/asm}/smccc.h  |   0
 .../asm-arm => arch/arm/include/asm}/smp.h    |   0
 .../arm/include/asm}/softirq.h                |   0
 .../arm/include/asm}/spinlock.h               |   0
 .../asm-arm => arch/arm/include/asm}/string.h |   0
 .../arm/include/asm}/sysregs.h                |   0
 .../asm-arm => arch/arm/include/asm}/system.h |   0
 .../arm/include/asm}/tee/optee_msg.h          |   0
 .../arm/include/asm}/tee/optee_rpc_cmd.h      |   0
 .../arm/include/asm}/tee/optee_smc.h          |   0
 .../arm/include/asm}/tee/tee.h                |   0
 .../asm-arm => arch/arm/include/asm}/time.h   |   0
 .../asm-arm => arch/arm/include/asm}/trace.h  |   0
 .../asm-arm => arch/arm/include/asm}/traps.h  |   0
 .../asm-arm => arch/arm/include/asm}/types.h  |   0
 .../asm-arm => arch/arm/include/asm}/vfp.h    |   0
 .../arm/include/asm}/vgic-emul.h              |   0
 .../asm-arm => arch/arm/include/asm}/vgic.h   |   0
 .../arm/include/asm}/vm_event.h               |   0
 .../asm-arm => arch/arm/include/asm}/vpl011.h |   0
 .../asm-arm => arch/arm/include/asm}/vpsci.h  |   0
 .../asm-arm => arch/arm/include/asm}/vreg.h   |   0
 .../asm-arm => arch/arm/include/asm}/vtimer.h |   0
 .../arm/include/asm}/xenoprof.h               |   0
 xen/arch/arm/smpboot.c                        |   2 +-
 xen/arch/arm/vpsci.c                          |   2 +-
 xen/arch/riscv/arch.mk                        |   1 -
 .../riscv/include/asm}/config.h               |   0
 xen/arch/x86/Makefile                         | 204 ++++-----
 xen/arch/x86/Rules.mk                         |   4 +-
 xen/arch/x86/arch.mk                          |  54 ++-
 xen/arch/x86/boot/Makefile                    |  62 ++-
 xen/arch/x86/boot/build32.mk                  |  40 --
 xen/arch/x86/boot/head.S                      |   4 +-
 xen/arch/x86/efi/Makefile                     |  11 +-
 .../asm-x86 => arch/x86/include/asm}/acpi.h   |   0
 .../x86/include/asm}/alternative-asm.h        |   0
 .../x86/include/asm}/alternative.h            |   0
 .../asm-x86 => arch/x86/include/asm}/altp2m.h |   0
 .../asm-x86 => arch/x86/include/asm}/amd.h    |   0
 .../asm-x86 => arch/x86/include/asm}/apic.h   |   0
 .../x86/include/asm}/apicdef.h                |   0
 .../x86/include/asm}/asm-defns.h              |   0
 .../x86/include/asm}/asm_defns.h              |   0
 .../asm-x86 => arch/x86/include/asm}/atomic.h |   0
 .../asm-x86 => arch/x86/include/asm}/bitops.h |   0
 .../asm-x86 => arch/x86/include/asm}/bug.h    |   0
 .../x86/include/asm}/byteorder.h              |   0
 .../x86/include/asm}/bzimage.h                |   0
 .../asm-x86 => arch/x86/include/asm}/cache.h  |   0
 .../asm-x86 => arch/x86/include/asm}/compat.h |   0
 .../asm-x86 => arch/x86/include/asm}/config.h |   0
 .../x86/include/asm}/cpufeature.h             |   0
 .../x86/include/asm}/cpufeatures.h            |   0
 .../x86/include/asm}/cpufeatureset.h          |   0
 .../asm-x86 => arch/x86/include/asm}/cpuid.h  |   0
 .../x86/include/asm}/cpuidle.h                |   0
 .../x86/include/asm}/current.h                |   2 +-
 .../x86/include/asm}/debugger.h               |   0
 .../x86/include/asm}/debugreg.h               |   0
 .../asm-x86 => arch/x86/include/asm}/delay.h  |   0
 .../asm-x86 => arch/x86/include/asm}/desc.h   |   0
 .../asm-x86 => arch/x86/include/asm}/device.h |   0
 .../asm-x86 => arch/x86/include/asm}/div64.h  |   0
 .../x86/include/asm}/dom0_build.h             |   0
 .../asm-x86 => arch/x86/include/asm}/domain.h |   2 +-
 .../asm-x86 => arch/x86/include/asm}/e820.h   |   0
 .../asm-x86 => arch/x86/include/asm}/edd.h    |   0
 .../x86/include/asm}/efibind.h                |   0
 .../asm-x86 => arch/x86/include/asm}/elf.h    |   0
 .../asm-x86 => arch/x86/include/asm}/event.h  |   0
 .../asm-x86 => arch/x86/include/asm}/fixmap.h |   0
 .../x86/include/asm}/flushtlb.h               |   0
 .../x86/include/asm}/genapic.h                |   0
 .../x86/include/asm}/grant_table.h            |   0
 .../asm-x86 => arch/x86/include/asm}/guest.h  |   0
 .../x86/include/asm}/guest/hyperv-hcall.h     |   0
 .../x86/include/asm}/guest/hyperv-tlfs.h      |   0
 .../x86/include/asm}/guest/hyperv.h           |   0
 .../x86/include/asm}/guest/hypervisor.h       |   0
 .../x86/include/asm}/guest/pvh-boot.h         |   0
 .../x86/include/asm}/guest/xen-hcall.h        |   0
 .../x86/include/asm}/guest/xen.h              |   0
 .../x86/include/asm}/guest_access.h           |   0
 .../x86/include/asm}/guest_atomics.h          |   0
 .../x86/include/asm}/guest_pt.h               |   0
 .../asm-x86 => arch/x86/include/asm}/hap.h    |   0
 .../x86/include/asm}/hardirq.h                |   0
 .../asm-x86 => arch/x86/include/asm}/hpet.h   |   0
 .../x86/include/asm}/hvm/asid.h               |   0
 .../x86/include/asm}/hvm/cacheattr.h          |   0
 .../x86/include/asm}/hvm/domain.h             |   0
 .../x86/include/asm}/hvm/emulate.h            |   0
 .../x86/include/asm}/hvm/grant_table.h        |   0
 .../x86/include/asm}/hvm/guest_access.h       |   0
 .../x86/include/asm}/hvm/hvm.h                |   0
 .../asm-x86 => arch/x86/include/asm}/hvm/io.h |   0
 .../x86/include/asm}/hvm/ioreq.h              |   0
 .../x86/include/asm}/hvm/irq.h                |   0
 .../x86/include/asm}/hvm/monitor.h            |   0
 .../x86/include/asm}/hvm/nestedhvm.h          |   0
 .../x86/include/asm}/hvm/save.h               |   0
 .../x86/include/asm}/hvm/support.h            |   0
 .../x86/include/asm}/hvm/svm/asid.h           |   0
 .../x86/include/asm}/hvm/svm/emulate.h        |   0
 .../x86/include/asm}/hvm/svm/intr.h           |   0
 .../x86/include/asm}/hvm/svm/nestedsvm.h      |   0
 .../x86/include/asm}/hvm/svm/svm.h            |   0
 .../x86/include/asm}/hvm/svm/svmdebug.h       |   0
 .../x86/include/asm}/hvm/svm/vmcb.h           |   0
 .../x86/include/asm}/hvm/trace.h              |   0
 .../x86/include/asm}/hvm/vcpu.h               |   0
 .../x86/include/asm}/hvm/vioapic.h            |   0
 .../x86/include/asm}/hvm/viridian.h           |   0
 .../x86/include/asm}/hvm/vlapic.h             |   0
 .../x86/include/asm}/hvm/vm_event.h           |   0
 .../x86/include/asm}/hvm/vmx/vmcs.h           |   0
 .../x86/include/asm}/hvm/vmx/vmx.h            |   0
 .../x86/include/asm}/hvm/vmx/vvmx.h           |   0
 .../x86/include/asm}/hvm/vpic.h               |   0
 .../x86/include/asm}/hvm/vpt.h                |   0
 .../x86/include/asm}/hypercall.h              |   0
 .../asm-x86 => arch/x86/include/asm}/i387.h   |   0
 .../asm-x86 => arch/x86/include/asm}/init.h   |   0
 .../x86/include/asm}/invpcid.h                |   0
 .../asm-x86 => arch/x86/include/asm}/io.h     |   0
 .../x86/include/asm}/io_apic.h                |   0
 .../asm-x86 => arch/x86/include/asm}/iocap.h  |   0
 .../asm-x86 => arch/x86/include/asm}/iommu.h  |   0
 .../asm-x86 => arch/x86/include/asm}/ioreq.h  |   0
 .../asm-x86 => arch/x86/include/asm}/irq.h    |   0
 .../asm-x86 => arch/x86/include/asm}/ldt.h    |   0
 .../x86/include/asm}/livepatch.h              |   0
 .../x86/include/asm}/mach-default/bios_ebda.h |   0
 .../x86/include/asm}/mach-default/io_ports.h  |   0
 .../include/asm}/mach-default/irq_vectors.h   |   0
 .../include/asm}/mach-default/mach_mpparse.h  |   0
 .../include/asm}/mach-default/mach_mpspec.h   |   0
 .../x86/include/asm}/mach-generic/mach_apic.h |   0
 .../include/asm}/mach-generic/mach_mpparse.h  |   0
 .../x86/include/asm}/machine_kexec.h          |   0
 .../x86/include/asm}/mc146818rtc.h            |   0
 .../asm-x86 => arch/x86/include/asm}/mce.h    |   0
 .../x86/include/asm}/mem_access.h             |   0
 .../x86/include/asm}/mem_paging.h             |   0
 .../x86/include/asm}/mem_sharing.h            |   0
 .../x86/include/asm}/microcode.h              |   0
 .../asm-x86 => arch/x86/include/asm}/mm.h     |   0
 .../x86/include/asm}/monitor.h                |   0
 .../asm-x86 => arch/x86/include/asm}/mpspec.h |   0
 .../x86/include/asm}/mpspec_def.h             |   0
 .../asm-x86 => arch/x86/include/asm}/msi.h    |   0
 .../x86/include/asm}/msr-index.h              |   0
 .../asm-x86 => arch/x86/include/asm}/msr.h    |   0
 .../asm-x86 => arch/x86/include/asm}/mtrr.h   |   0
 .../x86/include/asm}/multicall.h              |   0
 .../asm-x86 => arch/x86/include/asm}/mwait.h  |   0
 .../asm-x86 => arch/x86/include/asm}/nmi.h    |   0
 .../asm-x86 => arch/x86/include/asm}/nops.h   |   0
 .../asm-x86 => arch/x86/include/asm}/nospec.h |   0
 .../asm-x86 => arch/x86/include/asm}/numa.h   |   0
 .../asm-x86 => arch/x86/include/asm}/p2m.h    |   0
 .../x86/include/asm}/page-bits.h              |   0
 .../asm-x86 => arch/x86/include/asm}/page.h   |   0
 .../asm-x86 => arch/x86/include/asm}/paging.h |   0
 .../asm-x86 => arch/x86/include/asm}/pci.h    |   0
 .../asm-x86 => arch/x86/include/asm}/percpu.h |   0
 .../asm-x86 => arch/x86/include/asm}/perfc.h  |   0
 .../x86/include/asm}/perfc_defn.h             |   0
 .../x86/include/asm}/processor.h              |   0
 .../asm-x86 => arch/x86/include/asm}/psr.h    |   0
 .../x86/include/asm}/pv/domain.h              |   0
 .../x86/include/asm}/pv/grant_table.h         |   0
 .../asm-x86 => arch/x86/include/asm}/pv/mm.h  |   0
 .../x86/include/asm}/pv/shim.h                |   0
 .../x86/include/asm}/pv/trace.h               |   0
 .../x86/include/asm}/pv/traps.h               |   0
 .../asm-x86 => arch/x86/include/asm}/random.h |   0
 .../asm-x86 => arch/x86/include/asm}/regs.h   |   0
 .../asm-x86 => arch/x86/include/asm}/setup.h  |   0
 .../asm-x86 => arch/x86/include/asm}/shadow.h |   0
 .../asm-x86 => arch/x86/include/asm}/shared.h |   0
 .../asm-x86 => arch/x86/include/asm}/smp.h    |   0
 .../x86/include/asm}/softirq.h                |   0
 .../x86/include/asm}/spec_ctrl.h              |   0
 .../x86/include/asm}/spec_ctrl_asm.h          |   0
 .../x86/include/asm}/spinlock.h               |   0
 .../asm-x86 => arch/x86/include/asm}/string.h |   0
 .../asm-x86 => arch/x86/include/asm}/system.h |   0
 .../asm-x86 => arch/x86/include/asm}/tboot.h  |   0
 .../asm-x86 => arch/x86/include/asm}/time.h   |   0
 .../asm-x86 => arch/x86/include/asm}/trace.h  |   0
 .../asm-x86 => arch/x86/include/asm}/traps.h  |   0
 .../asm-x86 => arch/x86/include/asm}/types.h  |   0
 .../x86/include/asm}/uaccess.h                |   0
 .../x86/include/asm}/unaligned.h              |   0
 .../x86/include/asm}/vm_event.h               |   0
 .../asm-x86 => arch/x86/include/asm}/vpmu.h   |   0
 .../x86/include/asm}/x86-defns.h              |   0
 .../x86/include/asm}/x86-vendors.h            |   0
 .../x86/include/asm}/x86_64/efibind.h         |   0
 .../x86/include/asm}/x86_64/elf.h             |   0
 .../x86/include/asm}/x86_64/page.h            |   0
 .../x86/include/asm}/x86_64/regs.h            |   0
 .../x86/include/asm}/x86_64/system.h          |   0
 .../x86/include/asm}/x86_64/uaccess.h         |   0
 .../x86/include/asm}/x86_emulate.h            |   2 +-
 .../x86/include/asm}/xenoprof.h               |   0
 .../asm-x86 => arch/x86/include/asm}/xstate.h |   0
 xen/build.mk                                  |  96 +++++
 xen/common/Makefile                           |  15 +-
 xen/common/efi/efi_common.mk                  |  16 +
 xen/common/efi/runtime.c                      |   2 +-
 xen/common/libelf/Makefile                    |   4 +-
 xen/common/libfdt/Makefile                    |   8 +-
 xen/common/page_alloc.c                       |   2 +-
 xen/include/Makefile                          |  74 ++--
 xen/include/xen/acpi.h                        |   5 +-
 xen/include/xen/bitmap.h                      |   2 +-
 xen/scripts/Kbuild.include                    |  69 ++-
 xen/scripts/Kconfig.include                   |   2 +-
 xen/scripts/Makefile.clean                    |  32 +-
 xen/{tools/kconfig => scripts}/Makefile.host  |  69 +--
 xen/test/Makefile                             |   7 +-
 xen/test/livepatch/Makefile                   | 213 ++++-----
 xen/tools/Makefile                            |  14 +-
 xen/tools/fixdep.c                            | 404 ++++++++++++++++++
 xen/tools/kconfig/Makefile                    |  15 +-
 xen/tools/kconfig/Makefile.kconfig            | 106 -----
 xen/tools/kconfig/confdata.c                  |  12 +-
 xen/xsm/flask/Makefile                        |  43 +-
 xen/xsm/flask/include/avc.h                   |   4 +-
 xen/xsm/flask/include/avc_ss.h                |   2 +-
 xen/xsm/flask/include/objsec.h                |   2 +-
 xen/xsm/flask/include/security.h              |   2 +-
 xen/xsm/flask/policy/mkaccess_vector.sh       |   7 +-
 xen/xsm/flask/ss/Makefile                     |   3 +-
 366 files changed, 1494 insertions(+), 958 deletions(-)
 rename xen/{include/asm-arm => arch/arm/include/asm}/acpi.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/alternative.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/altp2m.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/atomic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/bitops.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/bug.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/cmpxchg.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/flushtlb.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/insn.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/io.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/macros.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/mm.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/page.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/processor.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/sysregs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/system.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/traps.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm32/vfp.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/atomic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/bitops.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/brk.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/bug.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/cmpxchg.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/cpufeature.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/efibind.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/flushtlb.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/hsr.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/insn.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/io.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/macros.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/mm.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/page.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/processor.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/sysregs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/system.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/traps.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/arm64/vfp.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/asm_defns.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/atomic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/bitops.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/bug.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/byteorder.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/cache.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/cadence-uart.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/config.h (99%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/cpregs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/cpuerrata.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/cpufeature.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/current.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/debugger.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/delay.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/desc.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/device.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/div64.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/domain.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/domain_build.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/early_printk.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/efibind.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/elf.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/event.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/exynos4210-uart.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/flushtlb.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/gic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/gic_v3_defs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/gic_v3_its.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/grant_table.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/guest_access.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/guest_atomics.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/guest_walk.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/hardirq.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/hsr.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/hypercall.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/init.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/insn.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/io.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/iocap.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/iommu.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/iommu_fwspec.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/ioreq.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/irq.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/kernel.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/livepatch.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/lpae.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/macros.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/mem_access.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/mm.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/mmio.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/monitor.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/new_vgic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/nospec.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/numa.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/p2m.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/page-bits.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/page.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/paging.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/pci.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/percpu.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/perfc.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/perfc_defn.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/pl011-uart.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platform.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/exynos5.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/midway.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/omap5.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/vexpress.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/platforms/xilinx-zynqmp-eemi.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/processor.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/procinfo.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/psci.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/random.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/regs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/scif-uart.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/setup.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/short-desc.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/smccc.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/smp.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/softirq.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/spinlock.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/string.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/sysregs.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/system.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_msg.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_rpc_cmd.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/tee/optee_smc.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/tee/tee.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/time.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/trace.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/traps.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/types.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vfp.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vgic-emul.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vgic.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vm_event.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vpl011.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vpsci.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vreg.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/vtimer.h (100%)
 rename xen/{include/asm-arm => arch/arm/include/asm}/xenoprof.h (100%)
 rename xen/{include/asm-riscv => arch/riscv/include/asm}/config.h (100%)
 delete mode 100644 xen/arch/x86/boot/build32.mk
 rename xen/{include/asm-x86 => arch/x86/include/asm}/acpi.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/alternative-asm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/alternative.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/altp2m.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/amd.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/apic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/apicdef.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/asm-defns.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/asm_defns.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/atomic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/bitops.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/bug.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/byteorder.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/bzimage.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cache.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/compat.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/config.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeature.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeatures.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cpufeatureset.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cpuid.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/cpuidle.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/current.h (99%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/debugger.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/debugreg.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/delay.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/desc.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/device.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/div64.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/dom0_build.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/domain.h (99%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/e820.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/edd.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/efibind.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/elf.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/event.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/fixmap.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/flushtlb.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/genapic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/grant_table.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv-hcall.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv-tlfs.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hyperv.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/hypervisor.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/pvh-boot.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/xen-hcall.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest/xen.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_access.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_atomics.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/guest_pt.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hap.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hardirq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hpet.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/asid.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/cacheattr.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/domain.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/emulate.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/grant_table.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/guest_access.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/hvm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/io.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/ioreq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/irq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/monitor.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/nestedhvm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/save.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/support.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/asid.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/emulate.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/intr.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/nestedsvm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/svm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/svmdebug.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/svm/vmcb.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/trace.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vcpu.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vioapic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/viridian.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vlapic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vm_event.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vmcs.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vmx.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vmx/vvmx.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vpic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hvm/vpt.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/hypercall.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/i387.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/init.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/invpcid.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/io.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/io_apic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/iocap.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/iommu.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/ioreq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/irq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/ldt.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/livepatch.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/bios_ebda.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/io_ports.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/irq_vectors.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/mach_mpparse.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-default/mach_mpspec.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-generic/mach_apic.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mach-generic/mach_mpparse.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/machine_kexec.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mc146818rtc.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mce.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_access.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_paging.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mem_sharing.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/microcode.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/monitor.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mpspec.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mpspec_def.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/msi.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/msr-index.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/msr.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mtrr.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/multicall.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/mwait.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/nmi.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/nops.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/nospec.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/numa.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/p2m.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/page-bits.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/page.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/paging.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pci.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/percpu.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/perfc.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/perfc_defn.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/processor.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/psr.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/domain.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/grant_table.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/mm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/shim.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/trace.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/pv/traps.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/random.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/regs.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/setup.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/shadow.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/shared.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/smp.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/softirq.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/spec_ctrl.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/spec_ctrl_asm.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/spinlock.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/string.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/system.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/tboot.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/time.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/trace.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/traps.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/types.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/uaccess.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/unaligned.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/vm_event.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/vpmu.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86-defns.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86-vendors.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/efibind.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/elf.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/page.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/regs.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/system.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_64/uaccess.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/x86_emulate.h (89%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/xenoprof.h (100%)
 rename xen/{include/asm-x86 => arch/x86/include/asm}/xstate.h (100%)
 create mode 100644 xen/build.mk
 create mode 100644 xen/common/efi/efi_common.mk
 rename xen/{tools/kconfig => scripts}/Makefile.host (74%)
 create mode 100644 xen/tools/fixdep.c
 delete mode 100644 xen/tools/kconfig/Makefile.kconfig

-- 
Anthony PERARD


Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Jan Beulich 2 years, 11 months ago
On 25.11.2021 14:39, Anthony PERARD wrote:
> Patch series available in this git branch:
> https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v8
> 
> v8:
>     Mostly rework of v7. With many patch already applied.
>     Some detail changes that are spread through many patches:
>     - `make cloc` recipe should now work throughout the series, update of it is
>       done in 3 patches.
>     - new patch "build: fix enforce unique symbols for recent clang version"
>       to fix an issue with clang.
>     - introducing $(srctree) and $(objtree) earlier
>     - introducing $(srcdir) as shortcut for $(srctree)/$(src)
>     - introduce usage of -iquote instead of -I in some cases
>     More detail change log can be found in patches notes.
> 
>     Also this v8 present a work-in-progress of the ability to do out-of-tree
>     build without setting VPATH. This is presented as an alternative to force
>     use of out-of-tree build. As the last patch show, it allows to build the
>     xen-shim without the linkfarm and we don't need to make any other changes
>     to any thing that build xen (osstest, distribution packages, xen.git, ...,
>     and developers finger macros). The patches are only there as WIP / RFC as
>     they were some concern about the usefulness and extra changes needed.
>     We can decide whether those changes are good or if this is too much and we
>     should force out-of-tree build for the hypervisor.

I'm afraid I'm of two minds here. I don't think we want to force people to
do out-of-tree builds, but I also dislike the idea of mixing in-tree and
out-of-tree builds. Yet reading the above I understand that the shim build
would conflict with an in-tree build because certain files would be picked
(the shim build being an out-of-tree one) from the (dirtied) source tree,
rather than the shim's build tree. Perhaps the extra path prefixes that I
commented upon in an individual patch are then indeed the least bad route
to take.

There's one compromise which comes to mind, but which may also not be
liked: We could simply fail out-of-tree builds when the source tree is
dirty. Then people wanting the shim built would need to use out-of-tree
builds also for the "main" hypervisor, but people suppressing the shim
build anyway (or doing it separately, e.g. using a non-default .config)
could continue to do in-tree builds. The one puzzle piece I'm lacking so
far (perhaps simply because of having overlooked where it is) is how, for
a full-build-of-everything, one would control where the xen/ part of the
build would go _outside_ of the source (sub-)tree.

Jan


Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Jan Beulich 2 years, 10 months ago
On 21.12.2021 16:26, Jan Beulich wrote:
> On 25.11.2021 14:39, Anthony PERARD wrote:
>> Patch series available in this git branch:
>> https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v8
>>
>> v8:
>>     Mostly rework of v7. With many patch already applied.
>>     Some detail changes that are spread through many patches:
>>     - `make cloc` recipe should now work throughout the series, update of it is
>>       done in 3 patches.
>>     - new patch "build: fix enforce unique symbols for recent clang version"
>>       to fix an issue with clang.
>>     - introducing $(srctree) and $(objtree) earlier
>>     - introducing $(srcdir) as shortcut for $(srctree)/$(src)
>>     - introduce usage of -iquote instead of -I in some cases
>>     More detail change log can be found in patches notes.
>>
>>     Also this v8 present a work-in-progress of the ability to do out-of-tree
>>     build without setting VPATH. This is presented as an alternative to force
>>     use of out-of-tree build. As the last patch show, it allows to build the
>>     xen-shim without the linkfarm and we don't need to make any other changes
>>     to any thing that build xen (osstest, distribution packages, xen.git, ...,
>>     and developers finger macros). The patches are only there as WIP / RFC as
>>     they were some concern about the usefulness and extra changes needed.
>>     We can decide whether those changes are good or if this is too much and we
>>     should force out-of-tree build for the hypervisor.
> 
> I'm afraid I'm of two minds here. I don't think we want to force people to
> do out-of-tree builds, but I also dislike the idea of mixing in-tree and
> out-of-tree builds. Yet reading the above I understand that the shim build
> would conflict with an in-tree build because certain files would be picked
> (the shim build being an out-of-tree one) from the (dirtied) source tree,
> rather than the shim's build tree. Perhaps the extra path prefixes that I
> commented upon in an individual patch are then indeed the least bad route
> to take.

Having looked at the RFC patches near the end of the series, I find the
need to convert from '#include "..."' to '#include <...>' particularly
problematic: Using "" for "local" files is common practice, and hence
even if you take care of the existing cases I'm afraid we'll be at
constant risk of re-introducing such an issue somewhere. And someone
hitting this issue may have a hard time figuring that it's simply the
wrong file which gets included somewhere. IOW I guess I'm now favoring
the "require clean source tree for out-of-tree builds" model.

Jan


Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Anthony PERARD 2 years, 10 months ago
On Tue, Dec 21, 2021 at 04:26:48PM +0100, Jan Beulich wrote:
> On 25.11.2021 14:39, Anthony PERARD wrote:
> >     Also this v8 present a work-in-progress of the ability to do out-of-tree
> >     build without setting VPATH. This is presented as an alternative to force
> >     use of out-of-tree build. As the last patch show, it allows to build the
> >     xen-shim without the linkfarm and we don't need to make any other changes
> >     to any thing that build xen (osstest, distribution packages, xen.git, ...,
> >     and developers finger macros). The patches are only there as WIP / RFC as
> >     they were some concern about the usefulness and extra changes needed.
> >     We can decide whether those changes are good or if this is too much and we
> >     should force out-of-tree build for the hypervisor.
> 
> I'm afraid I'm of two minds here. I don't think we want to force people to
> do out-of-tree builds, but I also dislike the idea of mixing in-tree and
> out-of-tree builds. Yet reading the above I understand that the shim build
> would conflict with an in-tree build because certain files would be picked
> (the shim build being an out-of-tree one) from the (dirtied) source tree,
> rather than the shim's build tree. Perhaps the extra path prefixes that I
> commented upon in an individual patch are then indeed the least bad route
> to take.

To me, the problem is with a few build artefact and configuration: the
".config" file that osstest write and edit, and the final location of
the "xen*" artefacts. Having something or someone wanting to edit
".config" breaks out-of-tree build. Otherwise, we could have forced
out-of-tree build like libvirt or qemu are doing.

> There's one compromise which comes to mind, but which may also not be
> liked: We could simply fail out-of-tree builds when the source tree is
> dirty. Then people wanting the shim built would need to use out-of-tree

This isn't a compromise, it is already implemented in "build: adding
out-of-tree support to the xen build". I revert this in patch "RFC,
no-VPATH: remove check for clean source tree for out-of-tree".

> builds also for the "main" hypervisor, but people suppressing the shim
> build anyway (or doing it separately, e.g. using a non-default .config)
> could continue to do in-tree builds. The one puzzle piece I'm lacking so
> far (perhaps simply because of having overlooked where it is) is how, for
> a full-build-of-everything, one would control where the xen/ part of the
> build would go _outside_ of the source (sub-)tree.

I guess that's not really an issue. It would be easy to run `make -C
xen-build -f ../xen/Makefile` (or `make -C xen O=../xen-build`, or even
`make -C xen O=build` would be fine too). With maybe a make variable to
let someone specify a different output tree.

For a full-build-of-everything, we can easily do out-of-tree build. The
full-install-of-everything can pick the build artefact from the new
place. The issue is when someone want that and edit ".config" of the
hypervisor, as adding the file will stop out-of-tree build, so pv shim
will not be able to use out-of-tree build.


But maybe going with mixing in-tree and out-of-tree build is going to be
too complicated. The hard part is for the build system to differentiate
between source file and generated source file, so that might break from
time to time. So maybe avoiding mixing and thus breaking build of some
users might be better and more reliable in the long term.

Cheers,

-- 
Anthony PERARD

Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Jan Beulich 2 years, 10 months ago
On 25.11.2021 14:39, Anthony PERARD wrote:
> Patch series available in this git branch:
> https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-v8
> 
> v8:
>     Mostly rework of v7. With many patch already applied.
>     Some detail changes that are spread through many patches:
>     - `make cloc` recipe should now work throughout the series, update of it is
>       done in 3 patches.
>     - new patch "build: fix enforce unique symbols for recent clang version"
>       to fix an issue with clang.
>     - introducing $(srctree) and $(objtree) earlier
>     - introducing $(srcdir) as shortcut for $(srctree)/$(src)
>     - introduce usage of -iquote instead of -I in some cases

One more question: With an out-of-tree build, where do I put the
(build flavor specific) ./.config (not xen/.config)? I'm using this
extensively for cross builds and to override tool chain components
(to avoid having to remember to always specify the right combination
for a certain flavor on the command line).

Jan


Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Anthony PERARD 2 years, 10 months ago
On Fri, Jan 21, 2022 at 07:59:40AM +0100, Jan Beulich wrote:
> One more question: With an out-of-tree build, where do I put the
> (build flavor specific) ./.config (not xen/.config)? I'm using this
> extensively for cross builds and to override tool chain components
> (to avoid having to remember to always specify the right combination
> for a certain flavor on the command line).

You mean the optional ".config" that "Config.mk" includes? This file is
still included as "$(XEN_ROOT)/.config", and XEN_ROOT is set to be the
source tree.

Maybe you could abuse a file named "xen-version" which is included near
the top of "xen/Makefile" instead.

-- 
Anthony PERARD

Re: [XEN PATCH v8 00/47] xen: Build system improvements, now with out-of-tree build!
Posted by Jan Beulich 2 years, 10 months ago
On 21.01.2022 11:34, Anthony PERARD wrote:
> On Fri, Jan 21, 2022 at 07:59:40AM +0100, Jan Beulich wrote:
>> One more question: With an out-of-tree build, where do I put the
>> (build flavor specific) ./.config (not xen/.config)? I'm using this
>> extensively for cross builds and to override tool chain components
>> (to avoid having to remember to always specify the right combination
>> for a certain flavor on the command line).
> 
> You mean the optional ".config" that "Config.mk" includes? This file is
> still included as "$(XEN_ROOT)/.config", and XEN_ROOT is set to be the
> source tree.

It being taken from the source tree is precisely the issue.

> Maybe you could abuse a file named "xen-version" which is included near
> the top of "xen/Makefile" instead.

I don't think that would work. The settings from ./.config are
needed ahead of

include $(XEN_ROOT)/config/$(XEN_OS).mk
include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk

which come later in Config.mk, at least when e.g. config/StdGNU.mk
properly used ?= . Plus obviously for the 2nd of the lines above
to use the right file, XEN_TARGET_ARCH already needs to be set to
its designated value (same would of course be true for XEN_OS, if
one was to override that).

Jan