Skip to content

Commit 47892f2

Browse files
committed
don't rely on nrip
1 parent 513e4dd commit 47892f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hv/mshv_vtl_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ static bool mshv_snp_try_handle_exit(struct mshv_vtl_run *run)
15751575
/* The guest indicates it's idle by reading this synthetic MSR. */
15761576
vmsa->rax = 0;
15771577
vmsa->rdx = 0;
1578-
vmsa->rip = vmsa->guest_nrip;
1578+
vmsa->rip += 2; /* vmsa->guest_nrip might not be available although here it should be. */
15791579

15801580
run->offload_flags |= MSHV_VTL_OFFLOAD_FLAG_HALT_IDLE;
15811581
run->flags |= MSHV_VTL_RUN_FLAG_HALTED;

0 commit comments

Comments
 (0)