vm: remove current_vcpu from vm structure

current_vcpu is not correct when there are multi vcpus in one VM,
using it is in-correct, so remove it.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ
2018-05-22 15:34:32 +08:00
committed by lijinxia
parent 8e255da829
commit a9ee6da0d9
2 changed files with 0 additions and 4 deletions

View File

@@ -186,9 +186,6 @@ int vmexit_handler(struct vcpu *vcpu)
exec_vmread(VMX_EXIT_QUALIFICATION);
}
/* Update current vcpu in VM that caused vm exit */
vcpu->vm->current_vcpu = vcpu;
/* exit dispatch handling */
if (basic_exit_reason == VMX_EXIT_REASON_EXTERNAL_INTERRUPT) {
/* Handling external_interrupt