From a8a84be3eead12b3741946ef31376c343565fbc5 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 9 Apr 2008 19:06:26 +0000 Subject: [PATCH] some more work on xen support - DomU will now be started but debug output isn't handled yet svn path=/trunk/; revision=32900 --- reactos/tools/sysreg/rosboot_test.cpp | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/reactos/tools/sysreg/rosboot_test.cpp b/reactos/tools/sysreg/rosboot_test.cpp index 7366d4d9786..8bec55f5c08 100644 --- a/reactos/tools/sysreg/rosboot_test.cpp +++ b/reactos/tools/sysreg/rosboot_test.cpp @@ -194,7 +194,7 @@ namespace Sysreg_ } remove(image.c_str ()); - const char * options[] = {NULL, + const char * options[] = {NULL, "create", "-f", #ifdef __LINUX__ @@ -664,23 +664,31 @@ namespace Sysreg_ } //--------------------------------------------------------------------------------------- - 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; - } + 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; return false; - } + } //--------------------------------------------------------------------------------------- bool RosBootTest::readConfigurationValues(ConfigParser &conf_parser) { @@ -691,7 +699,7 @@ namespace Sysreg_ return false; } - if (ROS_EMU_TYPE == "xen") + if (m_EmuType == "xen") { if (!conf_parser.getStringValue(RosBootTest::XEN_CONFIG_FILE, m_XenConfig)) {