Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 07:02:14 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329364 - head/sys/amd64/vmm/amd
Message-ID:  <201802160702.w1G72E96000878@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802160702.w1G72E96000878>