]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: disable writeback for TEST
authorAvi Kivity <avi@redhat.com>
Sun, 11 Sep 2011 08:23:02 +0000 (11:23 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:40 +0000 (19:52 +0300)
commitfa8dbf536af663a237d823dd4fd3b9f8f6c9f416
treeff416cf45a7721c67789dd32b7bcb49f3151d5f0
parent70374b75dffd24136c4a28b44bbc0d8f88d198eb
KVM: x86 emulator: disable writeback for TEST

The TEST instruction doesn't write its destination operand.  This
could cause problems if an MMIO register was accessed using the TEST
instruction.  Recently Windows XP was observed to use TEST against
the APIC ICR; this can cause spurious IPIs.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c