Attn: Quiesce host on SBE vital

When an SBE vital is detected the attention handler will transition the
host to the quiesce state. Code has also been added to make a call to
thread_stop_all (libpdbg) before transitioning host (mpipl and
quiesce cases).

Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Idac4680e2cb9eacedb6be7b70ae8b0d60dde66b5
diff --git a/test/end2end/meson.build b/test/end2end/meson.build
index b5639bc..9a12d7b 100644
--- a/test/end2end/meson.build
+++ b/test/end2end/meson.build
@@ -4,6 +4,7 @@
     'logging.cpp',
     'main.cpp',
     'ti_handler.cpp',
+    'vital_handler.cpp'
 ]
 
 # Additional source files needed for test.
diff --git a/test/end2end/vital_handler.cpp b/test/end2end/vital_handler.cpp
new file mode 100644
index 0000000..177a0ae
--- /dev/null
+++ b/test/end2end/vital_handler.cpp
@@ -0,0 +1,26 @@
+#include <attn/attention.hpp>    // for Attention
+#include <attn/attn_handler.hpp> // for RC_SUCCESS
+#include <attn/attn_logging.hpp> // for trace
+
+namespace attn
+{
+
+/** @brief Handle SBE vital attention */
+int handleVital(Attention* i_attention)
+{
+    int rc = RC_SUCCESS;
+
+    // trace message
+    trace<level::INFO>("Vital handler");
+
+    // sanity check
+    if (nullptr == i_attention)
+    {
+        trace<level::INFO>("attention type is null");
+        rc = RC_NOT_HANDLED;
+    }
+
+    return rc;
+}
+
+} // namespace attn