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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"