x86/HVM: reduce vcpu.h include dependencies
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:12:26 +0000 (16:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:12:26 +0000 (16:12 +0100)
Drop #include-s not needed by the header itself. Put the ones needed
into whichever other files actually need them.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpuid.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/hvm/viridian/private.h
xen/arch/x86/msr.c
xen/include/asm-x86/hvm/vcpu.h

index 6e01394fd2ff5e10e1da82c555217ee21269f4e0..4b734284a461524d462321f0c5aae6800a7495b7 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/nestedhvm.h>
 #include <asm/hvm/svm/svm.h>
+#include <asm/hvm/viridian.h>
 #include <asm/hvm/vmx/vmcs.h>
 #include <asm/paging.h>
 #include <asm/processor.h>
index a2abad9f76a50e2050964b7da42ad2a653d3fb98..a3d115b650cefd99d84bb571012099c33ea17958 100644 (file)
@@ -65,6 +65,7 @@
 #include <asm/hvm/nestedhvm.h>
 #include <asm/hvm/monitor.h>
 #include <asm/hvm/ioreq.h>
+#include <asm/hvm/viridian.h>
 #include <asm/hvm/vm_event.h>
 #include <asm/altp2m.h>
 #include <asm/mtrr.h>
index 782197ff8ae659e706284a494ec99bc9429a2b87..cedc7f2ac53f4096b0a5b69f2e4f30ab21b538f7 100644 (file)
@@ -23,6 +23,7 @@
 #include <xen/nospec.h>
 
 #include <asm/hvm/support.h>
+#include <asm/hvm/viridian.h>
 
 #include <public/hvm/hvm_op.h>
 #include <public/hvm/params.h>
index d2fe3c2ea18cbc93ee4676d573a71c416fce0a91..1bf65c761c8bff9d44b7ba4a0f49653476e09699 100644 (file)
@@ -4,6 +4,7 @@
 #define X86_HVM_VIRIDIAN_PRIVATE_H
 
 #include <asm/hvm/save.h>
+#include <asm/hvm/viridian.h>
 #include <public/hvm/params.h>
 
 int viridian_synic_wrmsr(struct vcpu *v, uint32_t idx, uint64_t val);
index 385ad6d169668e9b661e22c1616776c299949f73..b4a1ab0fa6eaaee3efc38a05c70c16f450f414c3 100644 (file)
@@ -25,6 +25,7 @@
 #include <xen/sched.h>
 
 #include <asm/debugreg.h>
+#include <asm/hvm/viridian.h>
 #include <asm/msr.h>
 #include <asm/setup.h>
 
index 8b8494111166eaf8671cb501e59403c0905ff062..747bc462d342b0c2a772d0c75ac5ed919e890fbf 100644 (file)
@@ -20,9 +20,7 @@
 #define __ASM_X86_HVM_VCPU_H__
 
 #include <xen/tasklet.h>
-#include <asm/hvm/io.h>
 #include <asm/hvm/vlapic.h>
-#include <asm/hvm/viridian.h>
 #include <asm/hvm/vmx/vmcs.h>
 #include <asm/hvm/vmx/vvmx.h>
 #include <asm/hvm/svm/vmcb.h>