KVM: x86: set rflags.rf during fault injection
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 24 Jul 2014 11:51:24 +0000 (14:51 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jul 2014 12:04:01 +0000 (14:04 +0200)
commitd6e8c8545651b05a86c5b9d29d2fe11ad4cbb9aa
treedc4fd4b0fae7abdcece4bcd76102253d23c3159b
parentb9a1ecb909e8f772934cc4bf1f164124c9fbb0d0
KVM: x86: set rflags.rf during fault injection

x86 does not automatically set rflags.rf during event injection. This patch
does partial job, setting rflags.rf upon fault injection.  It does not handle
the setting of RF upon interrupt injection on rep-string instruction.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c