| 479 | } |
| 480 | |
| 481 | int |
| 482 | vmcb_setany(struct svm_softc *sc, int vcpu, int ident, uint64_t val) |
| 483 | { |
| 484 | int error = 0; |
| 485 | |
| 486 | if (vcpu < 0 || vcpu >= VM_MAXCPU) { |
| 487 | error = EINVAL; |
| 488 | goto err; |
| 489 | } |
| 490 | |
| 491 | if (ident >= VM_REG_LAST) { |
| 492 | error = EINVAL; |
| 493 | goto err; |
| 494 | } |
| 495 | |
| 496 | error = vmcb_write(sc, vcpu, ident, val); |
| 497 | |
| 498 | err: |
| 499 | return (error); |
| 500 | } |
| 501 | |
| 502 | int |
| 503 | vmcb_snapshot_desc(void *arg, int vcpu, int reg, struct vm_snapshot_meta *meta) |
no test coverage detected