]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86/HVM: don't retain emulated insn cache when exiting back to guest
authorJan Beulich <jbeulich@suse.com>
Wed, 6 Dec 2017 11:50:23 +0000 (12:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 6 Dec 2017 11:50:23 +0000 (12:50 +0100)
commit5fcb26e69e8089e20c9168774bee681b8f5a3187
tree41d94285040560ed2ec1d9f4f8757abdd1619bc0
parent289adc1c56562d88e50b04245cd2027df8813bf4
x86/HVM: don't retain emulated insn cache when exiting back to guest

vio->mmio_retry is being set when a repeated string insn is being split
up. In that case we'll exit to the guest, expecting immediate re-entry.
Interruptions, however, may be serviced by the guest before re-entry
from the repeated string insn. Any emulation needed in the course of
handling the interruption must not fetch from the internally maintained
cache.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c