]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
SVM: drop asm/hvm/emulate.h inclusion from vmcb.h
authorJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:33:57 +0000 (17:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:33:57 +0000 (17:33 +0100)
It's not needed there and introduces a needless, almost global
dependency. Include the file (or in some cases just xen/err.h) where
actually needed, or - in one case - simply forward-declare a struct. In
microcode*.c take the opportunity and also re-order a few other
#include-s.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
12 files changed:
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/ioreq.c
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/vm_event.c
xen/arch/x86/microcode.c
xen/arch/x86/microcode_amd.c
xen/arch/x86/microcode_intel.c
xen/arch/x86/mm/shadow/hvm.c
xen/arch/x86/pv/emul-gate-op.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/include/asm-x86/hvm/svm/vmcb.h
xen/include/asm-x86/hvm/vmx/vmx.h

index a339b36a0ddf37d2c6253638ecb6292fb2312b73..db5d7b4d309ac34cb742a3178a43afdc1a878bb0 100644 (file)
@@ -56,6 +56,7 @@
 #include <asm/mc146818rtc.h>
 #include <asm/mce.h>
 #include <asm/monitor.h>
+#include <asm/hvm/emulate.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/vpt.h>
 #include <asm/hvm/support.h>
index e51aebd69a26fab7bbc9529c2c67248a7aa5441e..f8a5c81546a4391af09aacf23d70db8218682d1c 100644 (file)
@@ -28,6 +28,7 @@
 #include <xen/paging.h>
 #include <xen/vpci.h>
 
+#include <asm/hvm/emulate.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/ioreq.h>
 #include <asm/hvm/vmx/vmx.h>
index d586bad12712142e76b6c5873cd59ba688e39e23..635b3705f7979f91c1e598099e8fa30fbe936b9f 100644 (file)
@@ -20,6 +20,7 @@
 #include <xen/lib.h>
 #include <xen/trace.h>
 #include <asm/msr.h>
+#include <asm/hvm/emulate.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/support.h>
 #include <asm/hvm/svm/svm.h>
index 121de230719e21fd1f232a751424ee69a32063b8..07f135217e171e80cc46a0d681453fbcfcf702be 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <xen/sched.h>
 #include <xen/vm_event.h>
+#include <asm/hvm/emulate.h>
 #include <asm/hvm/support.h>
 #include <asm/vm_event.h>
 
index c0fb690f79d366a7c06a7c430181a0034aeb2fc4..35c1d36cdc648fa1c6d70fd5efa543178615f73a 100644 (file)
  */
 
 #include <xen/cpu.h>
-#include <xen/lib.h>
-#include <xen/kernel.h>
+#include <xen/err.h>
 #include <xen/init.h>
+#include <xen/kernel.h>
+#include <xen/lib.h>
 #include <xen/notifier.h>
 #include <xen/param.h>
 #include <xen/sched.h>
index 00750f7bbbc9b76cdc46f6230d849c2ead824a8a..bc7459416c1b674995d04434623bba3f33563e20 100644 (file)
  *  License version 2. See file COPYING for details.
  */
 
-#include <xen/lib.h>
-#include <xen/kernel.h>
+#include <xen/err.h>
 #include <xen/init.h>
+#include <xen/kernel.h>
+#include <xen/lib.h>
 #include <xen/sched.h>
 #include <xen/smp.h>
 #include <xen/spinlock.h>
index 9f66057aadfdd4dc0ab9815a3cfb08327750a5f1..91b7d473f726e36331a879ae27066adcee91f9ab 100644 (file)
  * 2 of the License, or (at your option) any later version.
  */
 
-#include <xen/lib.h>
-#include <xen/kernel.h>
+#include <xen/err.h>
 #include <xen/init.h>
+#include <xen/kernel.h>
+#include <xen/lib.h>
 #include <xen/sched.h>
 #include <xen/smp.h>
 #include <xen/spinlock.h>
index a219266fa2c7a22ebaa3371b9c414df780dbb647..1e6024c71f86591f2f1125d2141e292f6716b1c2 100644 (file)
@@ -28,6 +28,7 @@
 #include <xen/trace.h>
 
 #include <asm/current.h>
+#include <asm/hvm/emulate.h>
 #include <asm/shadow.h>
 
 #include "private.h"
index 06fcbbce30a282021f8ea3858266697a717ff40a..3c7f6d70bc0e502d4b3268825b15dc074d7dbed7 100644 (file)
@@ -19,6 +19,7 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <xen/err.h>
 #include <xen/errno.h>
 #include <xen/event.h>
 #include <xen/guest_access.h>
index e1cc13b873f4e02c85e14d14821b044a824738df..cec575071dbac48489e967ada1759fe8eafc7246 100644 (file)
@@ -16,6 +16,7 @@
  * along with this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <xen/err.h>
 #include <xen/softirq.h>
 
 #include <asm/io_apic.h>
index 56aff9b2ea7b5335432a9c17ed128fc1d21a73cf..b9e389d481aaad6d76dfeec9c629944923d24a06 100644 (file)
@@ -20,8 +20,6 @@
 #define __ASM_X86_HVM_SVM_VMCB_H__
 
 #include <xen/types.h>
-#include <asm/hvm/emulate.h>
-
 
 /* general 1 intercepts */
 enum GenericIntercept1bits
index 371b912887e09d8fe603553e4bc3ddbe6fe7496d..b334e1ec9416f6bdd299ec198e1b91b05dd328e6 100644 (file)
@@ -97,6 +97,7 @@ void vmx_asm_do_vmentry(void);
 void vmx_intr_assist(void);
 void noreturn vmx_do_resume(struct vcpu *);
 void vmx_vlapic_msr_changed(struct vcpu *v);
+struct hvm_emulate_ctxt;
 void vmx_realmode_emulate_one(struct hvm_emulate_ctxt *hvmemul_ctxt);
 void vmx_realmode(struct cpu_user_regs *regs);
 void vmx_update_debug_state(struct vcpu *v);