]> xenbits.xensource.com Git - xen.git/commit
x86/pv: Fix bugs with the handling of int80_bounce
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 May 2017 16:38:19 +0000 (17:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 May 2017 18:00:04 +0000 (19:00 +0100)
commit55ab172a1f286742d918947ecb9b257ce31cc253
tree381101d79fa11c356cad1b27d0886b6f96a34e4c
parentbaf2950213e6a50801940643e2549a5baa21ad71
x86/pv: Fix bugs with the handling of int80_bounce

Testing has revealed two issues:

 1) Passing a NULL handle to set_trap_table() is intended to flush the entire
    table.  The 64bit guest case (and 32bit guest on 32bit Xen, when it
    existed) called init_int80_direct_trap() to reset int80_bounce, but c/s
    cda335c279 which introduced the 32bit guest on 64bit Xen support omitted
    this step.  Previously therefore, it was impossible for a 32bit guest to
    reset its registered int80_bounce details.

 2) init_int80_direct_trap() doesn't honour the guests request to have
    interrupts disabled on entry.  PVops Linux requests that interrupts are
    disabled, but Xen currently leaves them enabled when following the int80
    fastpath.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/x86/x86_64/compat/traps.c
xen/arch/x86/x86_64/traps.c