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

View File

@ -132,7 +132,6 @@ struct vm {
struct vm_pm_info pm; /* Reference to this VM's arch information */
struct vm_arch arch_vm; /* Reference to this VM's arch information */
enum vm_state state; /* VM state */
struct vcpu *current_vcpu; /* VCPU that caused vm exit */
void *vuart; /* Virtual UART */
struct vpic *vpic; /* Virtual PIC */
uint32_t vpic_wire_mode;