Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.

Commit c6c61c2

Browse files
authored
Merge pull request #104 from mborgerson/fix/rflags_vmcs
Propagate flag updates back to VMCS after emulation
2 parents f2933d3 + 074b94a commit c6c61c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/vcpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,7 @@ void vcpu_write_rflags(void *obj, uint64_t value)
21082108
{
21092109
struct vcpu_t *vcpu = obj;
21102110
vcpu->state->_rflags = value;
2111+
vmwrite(vcpu, GUEST_RFLAGS, vcpu->state->_rflags);
21112112
}
21122113

21132114
static uint64_t vcpu_get_segment_base(void *obj, uint32_t segment)

0 commit comments

Comments
 (0)