virt-what patch to support Logical Domains (LDoms) on Linux SPARC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a patch to add support for Logical Domains (LDoms) virtualization on SPARC chipsets running Oracle Linux for SPARC.

At the moment Oracle Linux for SPARC is the only variant that support LDoms, but it is hoped will change in the future.

The virt-what tool seems to be a very useful way to identify the running virtualization technology, and for anyone that requires it, we would like to be able to also identify most of the various LDoms domain types that can be done in a script.

Attached is the patch that provides this support, outputting one or more of the strings:

    ldoms
    ldoms-control
    ldoms-root
    ldoms-io

I would like to get this applied upstream to the virt-what sources if that is at all possible.

Thanks,

Darren.

PS - Please respond off-list to me, since I'm not currently subscribed.
diff -u virt-what-1.15/virt-what.in virt-what-1.15-ldoms/virt-what.in
--- virt-what-1.15/virt-what.in	2015-03-27 20:39:40.000000000 +0000
+++ virt-what-1.15-ldoms/virt-what.in	2017-05-08 11:30:36.223265250 +0100
@@ -291,3 +291,22 @@
 if [ -f "${root}/.dockerinit" ]; then
 	echo docker
 fi
+
+#Check for LDoms
+if [[ "$arch" == sparc*  && -c /dev/mdesc ]]; then
+    echo ldoms
+    if [[ -d /sys/class/vlds/ctrl && -d /sys/class/vlds/sp ]]; then
+        echo ldoms-control
+    else
+        echo ldoms-guest
+    fi
+    MDPROP="/usr/lib/ldoms/mdprop.py"
+    if [[ -x ${MDPROP} ]]; then
+        if [[ -n $($MDPROP -v iodevice device-type=pciex) ]]; then
+            echo ldoms-root
+            echo ldoms-io
+        elif [[ -n $($MDPROP -v iov-device vf-id=0) ]]; then
+            echo ldoms-io
+        fi
+    fi
+fi
diff -u virt-what-1.15/virt-what.pod virt-what-1.15-ldoms/virt-what.pod
--- virt-what-1.15/virt-what.pod	2015-03-27 20:39:40.000000000 +0000
+++ virt-what-1.15-ldoms/virt-what.pod	2017-05-04 13:35:04.274063946 +0100
@@ -66,6 +66,37 @@
 
 Status: confirmed by RWMJ using a Fedora guest running in z/VM
 
+=item B<ldoms>
+
+The guest appears to be running on an Linux SPARC system with
+Oracle VM Server for SPARC (Logical Domains) support.
+
+Status: contributed by Darren Kenny
+
+=item B<ldoms-control>
+
+The is the Oracle VM Server for SPARC (Logical Domains) control domain.
+
+Status: contributed by Darren Kenny
+
+=item B<ldoms-guest>
+
+The is the Oracle VM Server for SPARC (Logical Domains) guest domain.
+
+Status: contributed by Darren Kenny
+
+=item B<ldoms-io>
+
+The is the Oracle VM Server for SPARC (Logical Domains) I/O domain.
+
+Status: contributed by Darren Kenny
+
+=item B<ldoms-root>
+
+The is the Oracle VM Server for SPARC (Logical Domains) Root domain.
+
+Status: contributed by Darren Kenny
+
 =item B<linux_vserver>
 
 This is printed for backwards compatibility with older virt-what which
_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux