x86/HVM: reduce io.h include dependencies
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:16:34 +0000 (16:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:16:34 +0000 (16:16 +0100)
Drop #include-s not needed by the header itself as well as one include
of the header which isn't needed. Put the one needed into the file
actually requiring it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/hvm/io.h
xen/include/asm-x86/hvm/vcpu.h
xen/include/asm-x86/hvm/vmx/vmcs.h

index f5a8813b33f5e516f2f45fb59ab7b9a88ee98ec6..558426b772599a9a920c750831f01b231671c395 100644 (file)
 #ifndef __ASM_X86_HVM_IO_H__
 #define __ASM_X86_HVM_IO_H__
 
-#include <xen/mm.h>
 #include <xen/pci.h>
-#include <asm/hvm/vpic.h>
-#include <asm/hvm/vioapic.h>
 #include <public/hvm/ioreq.h>
-#include <public/event_channel.h>
 
 #define NR_IO_HANDLERS 32
 
index 747bc462d342b0c2a772d0c75ac5ed919e890fbf..eaeba71cf1e2daf71476b200dd9b3065965d5a27 100644 (file)
@@ -26,6 +26,7 @@
 #include <asm/hvm/svm/vmcb.h>
 #include <asm/hvm/svm/nestedsvm.h>
 #include <asm/mtrr.h>
+#include <public/hvm/ioreq.h>
 
 enum hvm_io_completion {
     HVMIO_no_completion,
index be4661a92939e67240610c4af5ad73058e8ae40d..ccbe1a01cf153c012d02dea68c2ef094e2d91a4d 100644 (file)
@@ -18,8 +18,6 @@
 #ifndef __ASM_X86_HVM_VMX_VMCS_H__
 #define __ASM_X86_HVM_VMX_VMCS_H__
 
-#include <asm/hvm/io.h>
-
 extern void vmcs_dump_vcpu(struct vcpu *v);
 extern void setup_vmcs_dump(void);
 extern int  vmx_cpu_up_prepare(unsigned int cpu);