| 434 | |
| 435 | #ifdef BHYVE_SNAPSHOT |
| 436 | int |
| 437 | vmcs_getany(struct vmcs *vmcs, int running, int ident, uint64_t *val) |
| 438 | { |
| 439 | int error; |
| 440 | |
| 441 | if (!running) |
| 442 | VMPTRLD(vmcs); |
| 443 | |
| 444 | error = vmread(ident, val); |
| 445 | |
| 446 | if (!running) |
| 447 | VMCLEAR(vmcs); |
| 448 | |
| 449 | return (error); |
| 450 | } |
| 451 | |
| 452 | int |
| 453 | vmcs_setany(struct vmcs *vmcs, int running, int ident, uint64_t val) |
no test coverage detected