Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/vmm/amd/svm.c
Show First 20 Lines • Show All 2,009 Lines • ▼ Show 20 Lines | do { | ||||
/* We are asked to give the cpu by scheduler. */ | /* We are asked to give the cpu by scheduler. */ | ||||
if (vcpu_should_yield(vm, vcpu)) { | if (vcpu_should_yield(vm, vcpu)) { | ||||
enable_gintr(); | enable_gintr(); | ||||
vm_exit_astpending(vm, vcpu, state->rip); | vm_exit_astpending(vm, vcpu, state->rip); | ||||
break; | break; | ||||
} | } | ||||
if (vcpu_debugged(vm, vcpu)) { | |||||
enable_gintr(); | |||||
vm_exit_debug(vm, vcpu, state->rip); | |||||
break; | |||||
} | |||||
svm_inj_interrupts(svm_sc, vcpu, vlapic); | svm_inj_interrupts(svm_sc, vcpu, vlapic); | ||||
/* Activate the nested pmap on 'curcpu' */ | /* Activate the nested pmap on 'curcpu' */ | ||||
CPU_SET_ATOMIC_ACQ(curcpu, &pmap->pm_active); | CPU_SET_ATOMIC_ACQ(curcpu, &pmap->pm_active); | ||||
/* | /* | ||||
* Check the pmap generation and the ASID generation to | * Check the pmap generation and the ASID generation to | ||||
* ensure that the vcpu does not use stale TLB mappings. | * ensure that the vcpu does not use stale TLB mappings. | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |