x86/HVM: don't disable the REP emulation optimizations for regular IO
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Thu, 10 Mar 2016 15:47:48 +0000 (16:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2016 15:47:48 +0000 (16:47 +0100)
commit4640ab6e227c3d7b84dccd37c3be4aa8e3894fb6
tree5680860f765495f561c90fabed6453e8503cb993
parent3cdad9183aefc422d19271a09ad01f7dda1f0cde
x86/HVM: don't disable the REP emulation optimizations for regular IO

Currently REP emulations optimizations remain disabled even if
the emulation does not happen as a result of a vm_event reply
requestion emulation (i.e. even for regular IO). This patch takes
emulate_each_rep into account only if emulation has been requested
by a vm_event-capable application, and is a noticeable speed
optimization for monitored guests.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c