Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2020 22:22:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365616 - head/sys/amd64/vmm/amd
Message-ID:  <202009102222.08AMMNAN011472@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Sep 10 22:22:23 2020
New Revision: 365616
URL: https://svnweb.freebsd.org/changeset/base/365616

Log:
  Use vmcb_read/write for the vmcb snapshot functions.
  
  This avoids some unnecessary layers of indirection.

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

Modified: head/sys/amd64/vmm/amd/vmcb.c
==============================================================================
--- head/sys/amd64/vmm/amd/vmcb.c	Thu Sep 10 21:25:16 2020	(r365615)
+++ head/sys/amd64/vmm/amd/vmcb.c	Thu Sep 10 22:22:23 2020	(r365616)
@@ -472,7 +472,7 @@ vmcb_getany(struct svm_softc *sc, int vcpu, int ident,
 		goto err;
 	}
 
-	error = vm_get_register(sc->vm, vcpu, ident, val);
+	error = vmcb_read(sc, vcpu, ident, val);
 
 err:
 	return (error);
@@ -493,7 +493,7 @@ vmcb_setany(struct svm_softc *sc, int vcpu, int ident,
 		goto err;
 	}
 
-	error = vm_set_register(sc->vm, vcpu, ident, val);
+	error = vmcb_write(sc, vcpu, ident, val);
 
 err:
 	return (error);



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