some more work on xen support - DomU will now be started but debug output isn't handled yet

svn path=/trunk/; revision=32900
This commit is contained in:
Christoph von Wittich 2008-04-09 19:06:26 +00:00
parent 42939fd61b
commit a8a84be3ee

View file

@ -194,7 +194,7 @@ namespace Sysreg_
} }
remove(image.c_str ()); remove(image.c_str ());
const char * options[] = {NULL, const char * options[] = {NULL,
"create", "create",
"-f", "-f",
#ifdef __LINUX__ #ifdef __LINUX__
@ -664,23 +664,31 @@ namespace Sysreg_
} }
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
bool RosBootTest::configureXen() bool RosBootTest::configureXen()
{ {
if (!xenGetCaps()) if (!xenGetCaps())
{ {
return false; return false;
} }
cerr << "Xen isn't supported yet." << endl; if (!isFileExisting(m_XenConfig))
{
cerr << "Xen configuration file missing" << endl;
return false;
}
return false; m_BootCmd = m_EmuPath + "/xm create " + m_XenConfig;
} if (!executeBootCmd())
return false;
return true;
}
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
bool RosBootTest::configureVmWare() bool RosBootTest::configureVmWare()
{ {
cerr << "VmWare is currently not yet supported" << endl; cerr << "VmWare is currently not yet supported" << endl;
return false; return false;
} }
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
bool RosBootTest::readConfigurationValues(ConfigParser &conf_parser) bool RosBootTest::readConfigurationValues(ConfigParser &conf_parser)
{ {
@ -691,7 +699,7 @@ namespace Sysreg_
return false; return false;
} }
if (ROS_EMU_TYPE == "xen") if (m_EmuType == "xen")
{ {
if (!conf_parser.getStringValue(RosBootTest::XEN_CONFIG_FILE, m_XenConfig)) if (!conf_parser.getStringValue(RosBootTest::XEN_CONFIG_FILE, m_XenConfig))
{ {