# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1217343996 25200
# Node ID 56271bbbbdf55ea21432dadaeccc1825e5f28cea
# Parent 693739f8075501382f92bd4fa729e336905e9e9f
Add cmdline support for PV kernels
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 693739f80755 -r 56271bbbbdf5 schema/VSSD.mof
--- a/schema/VSSD.mof Mon Jul 28 09:17:31 2008 -0700
+++ b/schema/VSSD.mof Tue Jul 29 08:06:36 2008 -0700
@@ -21,6 +21,9 @@
[Description ("The direct-boot ramdisk for PV guests not using a
bootloader")]
string Ramdisk;
+
+ [Description ("The command-line arguments to be passed to a PV kernel")]
+ string CommandLine;
[Description ("The device to boot from when in fully-virtualized mode."
"One of hd,fd,cdrom.")]
diff -r 693739f80755 -r 56271bbbbdf5 src/Virt_VSSD.c
--- a/src/Virt_VSSD.c Mon Jul 28 09:17:31 2008 -0700
+++ b/src/Virt_VSSD.c Tue Jul 29 08:06:36 2008 -0700
@@ -80,6 +80,11 @@
if (dominfo->os_info.pv.initrd != NULL)
CMSetProperty(inst, "Ramdisk",
(CMPIValue *)dominfo->os_info.pv.initrd,
+ CMPI_chars);
+
+ if (dominfo->os_info.pv.cmdline != NULL)
+ CMSetProperty(inst, "CommandLine",
+ (CMPIValue *)dominfo->os_info.pv.cmdline,
CMPI_chars);
}
diff -r 693739f80755 -r 56271bbbbdf5 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Mon Jul 28 09:17:31 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Tue Jul 29 08:06:36 2008 -0700
@@ -135,6 +135,13 @@
domain->os_info.pv.initrd = strdup(val);
else
domain->os_info.pv.initrd = NULL;
+
+ free(domain->os_info.pv.cmdline);
+ ret = cu_get_str_prop(inst, "CommandLine", &val);
+ if (ret == CMPI_RC_OK)
+ domain->os_info.pv.cmdline = strdup(val);
+ else
+ domain->os_info.pv.cmdline = NULL;
return 1;
}
Show replies by date
Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1217343996 25200
# Node ID 56271bbbbdf55ea21432dadaeccc1825e5f28cea
# Parent 693739f8075501382f92bd4fa729e336905e9e9f
Add cmdline support for PV kernels
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 693739f80755 -r 56271bbbbdf5 schema/VSSD.mof
+1
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com
Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1217343996 25200
# Node ID 56271bbbbdf55ea21432dadaeccc1825e5f28cea
# Parent 693739f8075501382f92bd4fa729e336905e9e9f
Add cmdline support for PV kernels
+1, thanks Dan :-)