[virt-tools-list] virt-what patch to support Logical Domains (LDoms) on Linux SPARC

Darren Kenny darren.kenny at oracle.com
Thu Jul 20 11:08:11 UTC 2017


Hi Rich,

Richard W.M. Jones wrote:
> On Mon, May 15, 2017 at 01:36:43PM +0100, Darren Kenny wrote:
>> 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.
>
> Hi, sorry I forgot about this until you reminded me just now.

No problem, better late than never ;)
> Could you first rebase the patch on top of current git master.
>
> Then I have some comments below ...
>
>> 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
>
> Add a space after the # character.
>
> It would be nice to have a test case too, although that's a bit more
> work.  It'll ensure that it doesn't regress for any reason in future
> since it's unlikely I would ever have a Sparc machine to test this on
> for real ...
>
I've updated the patch and modified it slightly to be able to provide a 
test-case, I've relaxed the test from a -c to a -f since I can't add a 
character device in the test tree too easily.

Let me know if you want anything else changed.

Thanks,

Darren.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Add-LDoms-Support.patch
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20170720/ad991463/attachment.ksh>


More information about the virt-tools-list mailing list