Mailing List Archive

[SVM][PATCH] APIC race fix
This patch fixes an interrupt race window in the do_launch/vmrun/vmexit
loop for AMD-V.
There should not be any interrupt enablement from the "cli" until the
vmrun, there are 2 modifications to the code in the SVM exits.S files
(32b/64b):
1) the sti/CLGI instruction sequence has been modified to place the sti
after the CLGI
2) the sti have been removed from the code sequence after the initial
"cli"
So, the sequence is basically:
cli
interrupt assist code
...
CLGI
sti
vmrun -> ucode performs the STGI to enable global interrupts
when ready

There is also some comment cleanup in this patch.

This problem found by Virtual Iron (Dave Winchell), and patch also
provided by VI.

Applies cleanly to xen-unstable c/s 12273.
Please apply to xen-unstable.hg.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Dave Winchell <dwinchell@virtualiron.com>

Thanks

--Tom