hypervisor: state management support

Some systems have a hypervisor firmware stack which they wish to track
and change the state of. This new state management object will provide
this function if a user selects to bring it into their system.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I6082c6e06c6731d71f2e580e1ab87af38917bb3a
diff --git a/hypervisor_state_manager_main.cpp b/hypervisor_state_manager_main.cpp
new file mode 100644
index 0000000..61154d6
--- /dev/null
+++ b/hypervisor_state_manager_main.cpp
@@ -0,0 +1,29 @@
+#include "config.h"
+
+#include "hypervisor_state_manager.hpp"
+
+#include <sdbusplus/bus.hpp>
+
+#include <cstdlib>
+
+int main()
+{
+    auto bus = sdbusplus::bus::new_default();
+
+    // For now, we only have one instance of the hypervisor
+    auto objPathInst = std::string{HYPERVISOR_OBJPATH} + '0';
+
+    // Add sdbusplus ObjectManager.
+    sdbusplus::server::manager::manager objManager(bus, objPathInst.c_str());
+
+    phosphor::state::manager::Hypervisor manager(bus, objPathInst.c_str());
+
+    bus.request_name(HYPERVISOR_BUSNAME);
+
+    while (true)
+    {
+        bus.process_discard();
+        bus.wait();
+    }
+    return 0;
+}