mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
hv:move instr_emul_ctxt instance to struct vcpu
move instr_emul_ctxt instance from struct per_cpu_region to struct vcpu, and rename it from g_inst_ctxt to inst_ctxt Tracked-On: #1842 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Eddie Dong
parent
5331b39520
commit
286731d9d1
@@ -60,6 +60,7 @@
|
||||
#include <io_req.h>
|
||||
#include <msr.h>
|
||||
#include <cpu.h>
|
||||
#include <instr_emul.h>
|
||||
|
||||
/**
|
||||
* @brief vcpu
|
||||
@@ -326,6 +327,7 @@ struct acrn_vcpu {
|
||||
bool launched; /* Whether the vcpu is launched on target pcpu */
|
||||
uint32_t running; /* vcpu is picked up and run? */
|
||||
|
||||
struct instr_emul_ctxt inst_ctxt;
|
||||
struct io_request req; /* used by io/ept emulation */
|
||||
|
||||
uint64_t reg_cached;
|
||||
|
||||
Reference in New Issue
Block a user