Skip to contentSkip to conversation

evtchn race condition

PATCH Woller, Thomas 1 participant 1 message Feb 27, 2006

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Keir Fraser

It looks as though the patch probably disables blocking on halt entirely, since you unconditionally set evtchn_pending_sel and evtchn_upcall_pedning on exit from hvm_wait_io. This then causes you to immediately exit from hvm_safe_block (since the pending_sel and upcall_pending will always both be != 0). Replacing your patch with one that simply removes the call to hvm_safe_block() from svm_vmexit_do_hlt() would I expect have the same effect (may be worth confirming?).

Yes - you are correct.
removing hvm_safe_block() from the hlt function alleviates the issue also.

Attached is simple patch to remove hvm_safe_block() as a tmp solution.

Since this is only an SVM file modification, should not affect VT code path.

Can you apply until final solution is found?
Applies cleanly to 8991.

Tom

# HG changeset patch
# User [email protected]
# Node ID 5ae1b141126570021a29bfdc97c8fe6b532e459b
# Parent ee8041b0ab86f9315476f718da57af38cbf2eed7 temporary workaround for evtchn changesets 8822/8828 SVM failures.

xen/arch/x86/hvm/svm/svm.c +2 -0
diff -r ee8041b0ab86 -r 5ae1b1411265 xen/arch/x86/hvm/svm/svm.c
@@ -1813,7 +1813,9 @@
         next_wakeup = next_pit;
     if ( next_wakeup != - 1 )
         set_timer(&current->arch.hvm_svm.hlt_timer, next_wakeup);
+/* temporary workaround for 8828/8822 evtchn patches causing SVM failure.
     hvm_safe_block();
+*/
 }
 
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel