From: "Woller, Thomas" Subject: RE: [PATCH][discuss] evtchn race condition Date: Mon, 27 Feb 2006 17:05:16 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C63BF2.464E882F" Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C63BF2.464E882F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Keir Fraser wrote: > 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 !=3D 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?).=20 Yes - you are correct.=20 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 Signed-off-by: Tom Woller ------_=_NextPart_001_01C63BF2.464E882F Content-Type: application/octet-stream; name=svm_tmp_evtchn_fix.patch Content-Transfer-Encoding: base64 Content-Description: svm_tmp_evtchn_fix.patch Content-Disposition: attachment; filename=svm_tmp_evtchn_fix.patch IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHR3b2xsZXJAeGVuLXRydzEuYW1kLmNvbQojIE5v ZGUgSUQgNWFlMWIxNDExMjY1NzAwMjFhMjliZmRjOTdjOGZlNmI1MzJlNDU5YgojIFBhcmVudCAg ZWU4MDQxYjBhYjg2ZjkzMTU0NzZmNzE4ZGE1N2FmMzhjYmYyZWVkNwp0ZW1wb3Jhcnkgd29ya2Fy b3VuZCBmb3IgZXZ0Y2huIGNoYW5nZXNldHMgODgyMi84ODI4IFNWTSBmYWlsdXJlcy4KCmRpZmYg LXIgZWU4MDQxYjBhYjg2IC1yIDVhZTFiMTQxMTI2NSB4ZW4vYXJjaC94ODYvaHZtL3N2bS9zdm0u YwotLS0gYS94ZW4vYXJjaC94ODYvaHZtL3N2bS9zdm0uYwlNb24gRmViIDI3IDE0OjUyOjQzIDIw MDYKKysrIGIveGVuL2FyY2gveDg2L2h2bS9zdm0vc3ZtLmMJTW9uIEZlYiAyNyAyMjo0ODo0MSAy MDA2CkBAIC0xODEzLDcgKzE4MTMsOSBAQAogICAgICAgICBuZXh0X3dha2V1cCA9IG5leHRfcGl0 OwogICAgIGlmICggbmV4dF93YWtldXAgIT0gLSAxICkKICAgICAgICAgc2V0X3RpbWVyKCZjdXJy ZW50LT5hcmNoLmh2bV9zdm0uaGx0X3RpbWVyLCBuZXh0X3dha2V1cCk7CisvKiB0ZW1wb3Jhcnkg d29ya2Fyb3VuZCBmb3IgODgyOC84ODIyIGV2dGNobiBwYXRjaGVzIGNhdXNpbmcgU1ZNIGZhaWx1 cmUuCiAgICAgaHZtX3NhZmVfYmxvY2soKTsKKyovCiB9CiAKIAo= ------_=_NextPart_001_01C63BF2.464E882F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------_=_NextPart_001_01C63BF2.464E882F--