Author: cwittich
Date: Wed Apr 9 14:06:26 2008
New Revision: 32900
URL:
http://svn.reactos.org/svn/reactos?rev=32900&view=rev
Log:
some more work on xen support - DomU will now be started but debug output isn't
handled yet
Modified:
trunk/reactos/tools/sysreg/rosboot_test.cpp
Modified: trunk/reactos/tools/sysreg/rosboot_test.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/sysreg/rosboot_test.…
==============================================================================
--- trunk/reactos/tools/sysreg/rosboot_test.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/sysreg/rosboot_test.cpp [iso-8859-1] Wed Apr 9 14:06:26 2008
@@ -194,7 +194,7 @@
}
remove(image.c_str ());
- const char * options[] = {NULL,
+ const char * options[] = {NULL,
"create",
"-f",
#ifdef __LINUX__
@@ -664,23 +664,31 @@
}
//---------------------------------------------------------------------------------------
- bool RosBootTest::configureXen()
- {
+ bool RosBootTest::configureXen()
+ {
if (!xenGetCaps())
{
return false;
}
- cerr << "Xen isn't supported yet." << endl;
+ if (!isFileExisting(m_XenConfig))
+ {
+ cerr << "Xen configuration file missing" << endl;
+ return false;
+ }
- return false;
- }
-//---------------------------------------------------------------------------------------
- bool RosBootTest::configureVmWare()
- {
+ m_BootCmd = m_EmuPath + "/xm create " + m_XenConfig;
+ if (!executeBootCmd())
+ return false;
+
+ return true;
+ }
+//---------------------------------------------------------------------------------------
+ bool RosBootTest::configureVmWare()
+ {
cerr << "VmWare is currently not yet supported" << endl;
return false;
- }
+ }
//---------------------------------------------------------------------------------------
bool RosBootTest::readConfigurationValues(ConfigParser &conf_parser)
{
@@ -691,7 +699,7 @@
return false;
}
- if (ROS_EMU_TYPE == "xen")
+ if (m_EmuType == "xen")
{
if (!conf_parser.getStringValue(RosBootTest::XEN_CONFIG_FILE, m_XenConfig))
{