evtchn race condition
Quoted 9 lines · Keir Fraser
It looks as though the patch probably disables blocking on halt entirely, since you unconditionally set
evtchn_pending_selandevtchn_upcall_pedningon exit fromhvm_wait_io. This then causes you to immediately exit fromhvm_safe_block(since thepending_selandupcall_pendingwill always both be != 0). Replacing your patch with one that simply removes the call tohvm_safe_block()fromsvm_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
@@ -1813,7 +1813,9 @@ next_wakeup = next_pit;if ( next_wakeup != -1 )set_timer (¤t->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