| 450 | } |
| 451 | |
| 452 | int |
| 453 | vmcs_setany(struct vmcs *vmcs, int running, int ident, uint64_t val) |
| 454 | { |
| 455 | int error; |
| 456 | |
| 457 | if (!running) |
| 458 | VMPTRLD(vmcs); |
| 459 | |
| 460 | error = vmwrite(ident, val); |
| 461 | |
| 462 | if (!running) |
| 463 | VMCLEAR(vmcs); |
| 464 | |
| 465 | return (error); |
| 466 | } |
| 467 | |
| 468 | int |
| 469 | vmcs_snapshot_reg(struct vmcs *vmcs, int running, int ident, |
no test coverage detected