[LTP] [PATCH] lib/tst_virt.c: Add fallback when not using Microsoft Hyper-V hypervisor
xuyang2018.jy@fujitsu.com
xuyang2018.jy@fujitsu.com
Thu Jun 10 10:12:51 CEST 2021
Hi All
Thanks for your review. I have merged this patch with correcting two typos.
Best Regards
Yang Xu
> Hi all,
>
>> On 10/06/2021 06:02, Yang Xu wrote:
>>> If we don't use Microsoft Hyper-V hypervisorm, getrusage04 will report the
>
>> s/hypervisorm/hypervisor/
> +1
>
>>> following error:
>>> getrusage04 1 TBROK : tst_virt.c:175: invalid virt_type flag: 6
>>> getrusage04 2 TBROK : tst_virt.c:175: Remaining cases broken
>
>>> We should add is_hyperv() function when try_systemd_detect_virt returns -1.
>>> But it is a bit complexd according to systemd-detect-virt implementation[1].
>
>> s/complexd/complex/
> +1
>
> Thanks!
>
> Reviewed-by: Petr Vorel<pvorel@suse.cz>
>
> Kind regards,
> Petr
More information about the ltp
mailing list