Re: [kvm-unit-tests PATCH] x86: skip hyperv_clock test when host clocksource is not TSC

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

 



On 17/06/20 17:21, Vitaly Kuznetsov wrote:
> Hyper-V TSC page clocksource is TSC based so it requires host to use TSC
> for clocksource. While TSC is more or less standard for x86 hardware
> nowadays, when kvm-unit-tests are run in a VM the clocksource tends to be
> different (e.g. kvm-clock).
> 
> Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
> ---
>  x86/unittests.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/x86/unittests.cfg b/x86/unittests.cfg
> index 504e04e5f2b5..3a7915143479 100644
> --- a/x86/unittests.cfg
> +++ b/x86/unittests.cfg
> @@ -334,6 +334,7 @@ smp = 2
>  extra_params = -cpu kvm64,hv_time
>  arch = x86_64
>  groups = hyperv
> +check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc
>  
>  [intel_iommu]
>  file = intel-iommu.flat
> 

Queued, thanks.

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux