blob: bb9475055a8e5f9bc50718807530c4b575a6689d [file] [log] [blame]
Andrew Geisslerfe270d32021-01-27 14:06:46 -06001#include "config.h"
2
3#include "hypervisor_state_manager.hpp"
4
5#include <sdbusplus/bus.hpp>
6
7#include <cstdlib>
8
9int main()
10{
11 auto bus = sdbusplus::bus::new_default();
12
13 // For now, we only have one instance of the hypervisor
14 auto objPathInst = std::string{HYPERVISOR_OBJPATH} + '0';
15
16 // Add sdbusplus ObjectManager.
Patrick Williamsf053e6f2022-07-22 19:26:54 -050017 sdbusplus::server::manager_t objManager(bus, objPathInst.c_str());
Andrew Geisslerfe270d32021-01-27 14:06:46 -060018
19 phosphor::state::manager::Hypervisor manager(bus, objPathInst.c_str());
20
21 bus.request_name(HYPERVISOR_BUSNAME);
22
23 while (true)
24 {
25 bus.process_discard();
26 bus.wait();
27 }
28 return 0;
29}