mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
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:
parent
8e255da829
commit
a9ee6da0d9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user