svn commit: r329364 - head/sys/amd64/vmm/amd

Andriy Gapon avg at FreeBSD.org
Fri Feb 16 07:02:15 UTC 2018


Author: avg
Date: Fri Feb 16 07:02:14 2018
New Revision: 329364
URL: https://svnweb.freebsd.org/changeset/base/329364

Log:
  move vintr_intercept_enabled under INVARIANTS
  
  The function is not used outside of INVARIANTS since r328622.
  
  MFC after:	1 week

Modified:
  head/sys/amd64/vmm/amd/svm.c

Modified: head/sys/amd64/vmm/amd/svm.c
==============================================================================
--- head/sys/amd64/vmm/amd/svm.c	Fri Feb 16 06:59:35 2018	(r329363)
+++ head/sys/amd64/vmm/amd/svm.c	Fri Feb 16 07:02:14 2018	(r329364)
@@ -969,6 +969,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)
 {
@@ -976,6 +977,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-all mailing list