KVM: x86 emulator: fix eflags preparation for emulation
authorAvi Kivity <avi@qumranet.com>
Thu, 6 Dec 2007 14:15:02 +0000 (16:15 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:19 +0000 (17:53 +0200)
commite934c9c1c8742872a53efb84966d9c1d7b8c8e24
tree37292af0e1f065b74e9eaf016653df798bb136b0
parent7ee5d940f5064a7a4f0e53a8ffe755bc26a8b0f1
KVM: x86 emulator: fix eflags preparation for emulation

We prepare eflags for the emulated instruction, then clobber it with an 'andl'.
Fix by popping eflags as the last thing in the sequence.

Patch taken from Xen (16143:959b4b92b6bf)

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c