linux/arch/parisc/include/asm
Masahiro Yamada 3d9683cf3b KVM: export <linux/kvm_para.h> and <asm/kvm_para.h> iif KVM is supported
I do not see any consistency about headers_install of <linux/kvm_para.h>
and <asm/kvm_para.h>.

According to my analysis of Linux 5.1-rc1, there are 3 groups:

 [1] Both <linux/kvm_para.h> and <asm/kvm_para.h> are exported

    alpha, arm, hexagon, mips, powerpc, s390, sparc, x86

 [2] <asm/kvm_para.h> is exported, but <linux/kvm_para.h> is not

    arc, arm64, c6x, h8300, ia64, m68k, microblaze, nios2, openrisc,
    parisc, sh, unicore32, xtensa

 [3] Neither <linux/kvm_para.h> nor <asm/kvm_para.h> is exported

    csky, nds32, riscv

This does not match to the actual KVM support. At least, [2] is
half-baked.

Nor do arch maintainers look like they care about this. For example,
commit 0add53713b ("microblaze: Add missing kvm_para.h to Kbuild")
exported <asm/kvm_para.h> to user-space in order to fix an in-kernel
build error.

We have two ways to make this consistent:

 [A] export both <linux/kvm_para.h> and <asm/kvm_para.h> for all
     architectures, irrespective of the KVM support

 [B] Match the header export of <linux/kvm_para.h> and <asm/kvm_para.h>
     to the KVM support

My first attempt was [A] because the code looks cleaner, but Paolo
suggested [B].

So, this commit goes with [B].

For most architectures, <asm/kvm_para.h> was moved to the kernel-space.
I changed include/uapi/linux/Kbuild so that it checks generated
asm/kvm_para.h as well as check-in ones.

After this commit, there will be two groups:

 [1] Both <linux/kvm_para.h> and <asm/kvm_para.h> are exported

    arm, arm64, mips, powerpc, s390, x86

 [2] Neither <linux/kvm_para.h> nor <asm/kvm_para.h> is exported

    alpha, arc, c6x, csky, h8300, hexagon, ia64, m68k, microblaze,
    nds32, nios2, openrisc, parisc, riscv, sh, sparc, unicore32, xtensa

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-03-28 17:27:42 +01:00
..
agp.h
alternative.h parisc: Split out alternative live patching code 2018-12-10 07:47:50 +01:00
asm-offsets.h
asmregs.h
assembly.h parisc: Use zdep for shlw macro on PA1.1 and PA2.0 2018-10-19 22:22:05 +02:00
atomic.h
barrier.h parisc: Define mb() and add memory barriers to assembler unlock sequences 2018-08-08 22:13:32 +02:00
bitops.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
bug.h
bugs.h
cache.h parisc: Add alternative coding infrastructure 2018-10-17 17:22:26 +02:00
cacheflush.h
checksum.h
cmpxchg.h
compat_ucontext.h
compat.h asm-generic: Move common compat types to asm-generic/compat.h 2018-08-29 15:42:20 +02:00
delay.h
dma-mapping.h parisc: move internal implementation details out of <asm/dma-mapping.h> 2019-02-21 20:37:11 +01:00
dma.h
dwarf.h
eisa_bus.h
eisa_eeprom.h
elf.h parisc: Restore possibility to execute 64-bit applications 2018-08-17 16:45:24 +02:00
fb.h
fixmap.h
floppy.h
ftrace.h
futex.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
grfioctl.h
hardirq.h parisc: Count IPI function call interrupts 2019-02-21 20:37:11 +01:00
hardware.h
hash.h
hugetlb.h hugetlb: introduce generic version of huge_ptep_get 2018-10-26 16:26:34 -07:00
ide.h
io.h parisc: iomap: introduce io{read|write}64 2019-01-22 13:39:59 +01:00
irq.h
irqflags.h
kbdleds.h
Kbuild KVM: export <linux/kvm_para.h> and <asm/kvm_para.h> iif KVM is supported 2019-03-28 17:27:42 +01:00
kmap_types.h
ldcw.h
led.h
linkage.h parisc: Fix boot failure of 64-bit kernel 2018-08-21 14:32:44 +02:00
machdep.h
mckinley.h
mmu_context.h
mmu.h
mmzone.h
module.h
page.h parisc: Include compressed vmlinux file in vmlinuz boot kernel 2018-10-17 08:18:01 +02:00
parisc-device.h
parport.h
pci.h parisc: remove the HBA_DATA macro 2019-02-21 20:37:12 +01:00
pdc_chassis.h
pdc.h parisc: Show machine product number during boot 2019-02-21 20:37:13 +01:00
pdcpat.h parisc: Add constant for PDC_PAT_COMPLEX firmware call 2019-02-21 20:37:13 +01:00
perf_event.h
perf.h
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable.h mm: make the __PAGETABLE_PxD_FOLDED defines non-empty 2018-11-02 08:31:52 +01:00
prefetch.h
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
psw.h
ptrace.h parisc: Add HAVE_REGS_AND_STACK_ACCESS_API feature 2018-08-13 09:30:50 +02:00
ropes.h
rt_sigframe.h
runway.h
sections.h parisc: Add alternative coding infrastructure 2018-10-17 17:22:26 +02:00
serial.h
shmparam.h
signal.h
smp.h
socket.h
special_insns.h
spinlock_types.h
spinlock.h parisc: Revert "Release spinlocks using ordered store" 2018-11-06 12:03:22 +01:00
string.h
superio.h
switch_to.h
syscall.h
termios.h
thread_info.h
timex.h
tlb.h
tlbflush.h parisc: Add alternative coding infrastructure 2018-10-17 17:22:26 +02:00
topology.h
traps.h parisc: Restore possibility to execute 64-bit applications 2018-08-17 16:45:24 +02:00
uaccess.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
ucontext.h
unaligned.h
unistd.h y2038: rename old time and utime syscalls 2019-02-07 00:13:28 +01:00
unwind.h parisc: Consolidate unwind initialization calls 2018-08-17 17:00:08 +02:00