svn commit: r330068 - stable/11/sys/amd64/vmm/amd

Andriy Gapon avg at FreeBSD.org
Tue Feb 27 14:47:17 UTC 2018


Author: avg
Date: Tue Feb 27 14:47:17 2018
New Revision: 330068
URL: https://svnweb.freebsd.org/changeset/base/330068

Log:
  MFC r329364: move vintr_intercept_enabled under INVARIANTS

Modified:
  stable/11/sys/amd64/vmm/amd/svm.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/vmm/amd/svm.c
==============================================================================
--- stable/11/sys/amd64/vmm/amd/svm.c	Tue Feb 27 14:45:55 2018	(r330067)
+++ stable/11/sys/amd64/vmm/amd/svm.c	Tue Feb 27 14:47:17 2018	(r330068)
@@ -964,6 +964,7 @@ svm_save_intinfo(struct svm_softc *svm_sc, int vcpu)
 	vm_exit_intinfo(svm_sc->vm, vcpu, intinfo);
 }
 
+#ifdef INVARIANTS
 static __inline int
 vintr_intercept_enabled(struct svm_softc *sc, int vcpu)
 {
@@ -971,6 +972,7 @@ vintr_intercept_enabled(struct svm_softc *sc, int vcpu
 	return (svm_get_intercept(sc, vcpu, VMCB_CTRL1_INTCPT,
 	    VMCB_INTCPT_VINTR));
 }
+#endif
 
 static __inline void
 enable_intr_window_exiting(struct svm_softc *sc, int vcpu)


More information about the svn-src-stable mailing list