MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vmx_task_switch_reason

Function vmx_task_switch_reason

freebsd/amd64/vmm/intel/vmx.c:2267–2285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2265}
2266
2267static enum task_switch_reason
2268vmx_task_switch_reason(uint64_t qual)
2269{
2270 int reason;
2271
2272 reason = (qual >> 30) & 0x3;
2273 switch (reason) {
2274 case 0:
2275 return (TSR_CALL);
2276 case 1:
2277 return (TSR_IRET);
2278 case 2:
2279 return (TSR_JMP);
2280 case 3:
2281 return (TSR_IDT_GATE);
2282 default:
2283 panic("%s: invalid reason %d", __func__, reason);
2284 }
2285}
2286
2287static int
2288emulate_wrmsr(struct vmx *vmx, int vcpuid, u_int num, uint64_t val, bool *retu)

Callers 1

vmx_exit_processFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected