blob: d3a0e1f95147ba06a46881629b13057b15ddc0f3 [file] [log] [blame]
#include "config.h"
#include "hypervisor_state_manager.hpp"
#include <sdbusplus/bus.hpp>
#include <cstdlib>
using HostState = sdbusplus::server::xyz::openbmc_project::state::Host;
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_t objManager(bus,
HostState::namespace_path::value);
phosphor::state::manager::Hypervisor manager(bus, objPathInst.c_str());
bus.request_name(HYPERVISOR_BUSNAME);
while (true)
{
bus.process_discard();
bus.wait();
}
return 0;
}