[PATCH] [RFC] Update VSSD schemas for FullVirt

# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1200499991 28800 # Node ID 61dcb1a6e2097e8125db046d6aa53bda4bc18a20 # Parent 05fa2ceba145e9e93066bd66c74299680bd7d21d [RFC] Update VSSD schemas for FullVirt This adds a flag to the Xen VSSD to enable full-virt or not, as well as the required boot device information. In the implementation, a "false" or missing value for the flag will indicate paravirt-ness. For KVM, I added the boot device as well, since that's something it will always need. For both, a missing boot device will imply "hd". Comments? Additions? Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 05fa2ceba145 -r 61dcb1a6e209 schema/VSSD.mof --- a/schema/VSSD.mof Tue Jan 15 16:24:39 2008 -0800 +++ b/schema/VSSD.mof Wed Jan 16 08:13:11 2008 -0800 @@ -8,8 +8,17 @@ class Xen_VirtualSystemSettingData : CIM class Xen_VirtualSystemSettingData : CIM_VirtualSystemSettingData { + [Description ("Flag to determine whether this guest is fully-virtualized")] + boolean isFullVirt; + + [Description ("The bootloader and arguments to use when in " + "para-virtualized mode")] string Bootloader; string BootloaderArgs; + + [Description ("The device to boot from when in fully-virtualized mode." + "One of hd,fd,cdrom.")] + string BootDevice; }; @@ -20,4 +29,8 @@ class Xen_VirtualSystemSettingData : CIM ] class KVM_VirtualSystemSettingData : CIM_VirtualSystemSettingData { + + [Description ("The device to boot from. One of hd,fd,cdrom.")] + string BootDevice; + };

Dan Smith wrote: [...]
+ + [Description ("The device to boot from when in fully-virtualized mode." + "One of hd,fd,cdrom.")] + string BootDevice;
xend supports the notion of a boot order, although I don't think it is exposed through libvirt so I guess a moot point for the time being. Cheers, Jim

JF> xend supports the notion of a boot order, although I don't think JF> it is exposed through libvirt so I guess a moot point for the time JF> being. Unless the XML schema is describing something that isn't supported underneath, I think we're okay. From http://libvirt.org/format.html#Fully1:
The dev attribute on the boot tag can be one of:
* fd - boot from first floppy device * hd - boot from first harddisk device * cdrom - boot from first cdrom device
I don't work on a VT-capable machine most of the time, so I haven't actually tested that it's honored, but if not, we're generating the appropriate XML for when it is :) Thanks! -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com
participants (2)
-
Dan Smith
-
Jim Fehlig