diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index f750b69ca443..1fd806cb96d4 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -5229,6 +5229,8 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, | |||
5229 | 5229 | ||
5230 | if (emulation_type & EMULTYPE_SKIP) { | 5230 | if (emulation_type & EMULTYPE_SKIP) { |
5231 | kvm_rip_write(vcpu, ctxt->_eip); | 5231 | kvm_rip_write(vcpu, ctxt->_eip); |
5232 | if (ctxt->eflags & X86_EFLAGS_RF) | ||
5233 | kvm_set_rflags(vcpu, ctxt->eflags & ~X86_EFLAGS_RF); | ||
5232 | return EMULATE_DONE; | 5234 | return EMULATE_DONE; |
5233 | } | 5235 | } |
5234 | 5236 | ||