>>> On 27.01.16 at 19:11, <andrew.coop...@citrix.com> wrote: > Most updates to the exception bitmaps set or clear an individual bits. > > However, entering or exiting emulated real mode unilaterally clobbers it, > leaving the exit code to recalculate what it should have been. This is > error > prone, and indeed currently fails to recalculate the TRAP_no_device > intercept > appropriately. > > Instead of overwriting exception_bitmap when entering emulated real mode, > move > the override into vmx_update_exception_bitmap() and leave exception_bitmap > unmodified. > > This means that recalculation is unnecessary, and that the use of > vmx_fpu_leave() and vmx_update_debug_state() while in emulated real mode > doesn't result in TRAP_no_device and TRAP_int3 being un-intercepted. > > This is only a functional change on hardware lacking unrestricted guest > support. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel