From: Nadav Amit Date: Mon, 21 Jul 2014 11:37:28 +0000 (+0300) Subject: KVM: x86: popf emulation should not change RF X-Git-Tag: v3.17-rc1~141^2~18 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=163b135e7b09e9158f7eb0aa74e716865e3005d2;p=~emulex%2Finfiniband.git KVM: x86: popf emulation should not change RF RFLAGS.RF is always zero after popf. Therefore, popf should not updated RF, as anyhow emulating popf, just as any other instruction should clear RFLAGS.RF. Signed-off-by: Nadav Amit Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index dd074106d0c..cf117bfe952 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -1675,7 +1675,7 @@ static int emulate_popf(struct x86_emulate_ctxt *ctxt, return rc; change_mask = EFLG_CF | EFLG_PF | EFLG_AF | EFLG_ZF | EFLG_SF | EFLG_OF - | EFLG_TF | EFLG_DF | EFLG_NT | EFLG_RF | EFLG_AC | EFLG_ID; + | EFLG_TF | EFLG_DF | EFLG_NT | EFLG_AC | EFLG_ID; switch(ctxt->mode) { case X86EMUL_MODE_PROT64: