Use vmcb_read/write for the vmcb snapshot functions.
This avoids some unnecessary layers of indirection.
This commit is contained in:
parent
495106755d
commit
59303443c8
@ -472,7 +472,7 @@ vmcb_getany(struct svm_softc *sc, int vcpu, int ident, uint64_t *val)
|
||||
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, uint64_t val)
|
||||
goto err;
|
||||
}
|
||||
|
||||
error = vm_set_register(sc->vm, vcpu, ident, val);
|
||||
error = vmcb_write(sc, vcpu, ident, val);
|
||||
|
||||
err:
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user