mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: cpu: align general-purpose register layout with vmx
In current code, general-purpose register layout in run_context is not align with the general-purpose register index when vmexit. So hv needs to map the index used during vmexit to the index of the general-purpose register in run_context. This patch align the layout, so that no mapping needed. Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -97,7 +97,7 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)
|
||||
status = -EIO;
|
||||
break;
|
||||
} else {
|
||||
struct cpu_regs *regs =
|
||||
struct cpu_gp_regs *regs =
|
||||
&cur_context->guest_cpu_regs.regs;
|
||||
|
||||
if (direction == 0) {
|
||||
|
Reference in New Issue
Block a user