From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xen.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Subject: [XTF PATCH] XSA-186: Work around suspected Broadwell TLB erratum
Date: Fri, 28 Oct 2016 11:36:55 +0100 [thread overview]
Message-ID: <1477651015-14042-1-git-send-email-andrew.cooper3@citrix.com> (raw)
In-Reply-To: <58133FDD020000780011A704@prv-mh.provo.novell.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
tests/xsa-186/main.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tests/xsa-186/main.c b/tests/xsa-186/main.c
index f2bc8f6..fe7e98b 100644
--- a/tests/xsa-186/main.c
+++ b/tests/xsa-186/main.c
@@ -144,6 +144,29 @@ void test_main(void)
memcpy(stub, insn_buf_start, insn_buf_end - insn_buf_start);
/*
+ * Work around suspected Broadwell TLB Erratum
+ *
+ * Occasionally, this test failes with:
+ *
+ * --- Xen Test Framework ---
+ * Environment: HVM 64bit (Long mode 4 levels)
+ * XSA-186 PoC
+ * ******************************
+ * PANIC: Unhandled exception at 0008:fffffffffffffffa
+ * Vec 14 #PF[-I-sr-] %cr2 fffffffffffffffa
+ * ******************************
+ *
+ * on Broadwell hardware. The mapping is definitely present as the
+ * memcpy() has already succeeded. Inserting an invlpg resolves the
+ * issue, sugguesting that there is a race conditon between dTLB/iTLB
+ * handling.
+ *
+ * Work around the issue for now, to avoid intermittent OSSTest failures
+ * from blocking pushes of unrelated changes.
+ */
+ invlpg(stub);
+
+ /*
* Execute the stub.
*
* Intel CPUs are happy doing this for 32 and 64bit. AMD CPUs are happy
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-10-28 10:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-27 18:26 [xen-unstable test] 101698: regressions - FAIL osstest service owner
2016-10-28 9:55 ` Broadwell TLB Erratum Andrew Cooper
2016-10-28 10:09 ` Jan Beulich
2016-10-28 10:36 ` Andrew Cooper [this message]
2016-10-28 12:03 ` [XTF PATCH] XSA-186: Work around suspected Broadwell TLB erratum Jan Beulich
2016-10-28 12:39 ` Andrew Cooper
2016-10-28 12:49 ` Jan Beulich
2016-10-28 13:02 ` Andrew Cooper
2016-10-28 13:37 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477651015-14042-1-git-send-email-andrew.cooper3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.