From 39d9b74ca7b668bd06f1861c79dff771e5eb7f18 Mon Sep 17 00:00:00 2001 From: Xu Tian Date: Wed, 30 Oct 2013 15:55:57 +0800 Subject: [PATCH] qemu.tests: cfg for checking clock offset after hotplug vcpu Signed-off-by: Xu Tian --- qemu/tests/cfg/cpu_add.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/qemu/tests/cfg/cpu_add.cfg b/qemu/tests/cfg/cpu_add.cfg index 0b6407e2..ec44fe78 100644 --- a/qemu/tests/cfg/cpu_add.cfg +++ b/qemu/tests/cfg/cpu_add.cfg @@ -102,3 +102,27 @@ vcpu_need_hotplug = 100 offline = 1-100 online = 1-100 + - check_clock: + # check guest clock offset before switch vcpus status + only Linux + requires_root = yes + smp = 1 + repeat_time = 1 + acceptable_offset = 5 + vcpu_need_hotplug = 1 + online = 1 + offline = 1 + vcpu_num_rechek = no + ntp_server = "clock.redhat.com" + pre_command = "ntpdate ${ntp_server}" + ntp_sync_cmd = "ntpdate ${ntp_server}" + ntp_query_cmd = "ntpdate -q ${ntp_server}" + ntp_service_stop_cmd = "service chronyd stop || service ntpdate stop" + variants: + - after_10mins: + # seconds switch vcpus between online and offline + onoff_iterations = 600 + - after_20mins: + onoff_iterations = 1200 + - after_30mins: + onoff_iterations = 1800 -- GitLab