|
|
fbe740 |
From b9acfbcad6181babba50384741e0c30d6d0cc534 Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <b9acfbcad6181babba50384741e0c30d6d0cc534@dist-git>
|
|
|
fbe740 |
From: Andrea Bolognani <abologna@redhat.com>
|
|
|
fbe740 |
Date: Fri, 14 Feb 2020 13:12:37 +0100
|
|
|
fbe740 |
Subject: [PATCH] qemu: Format the armvtimer timer on the command line
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
Its behavior is controlled by a KVM-specific CPU feature.
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
|
|
|
fbe740 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit 7c4bc108a9bd7bda1543131d232e2ccee92a9e43)
|
|
|
fbe740 |
|
|
|
fbe740 |
https://bugzilla.redhat.com/show_bug.cgi?id=1762634
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
fbe740 |
Message-Id: <20200214121237.623948-7-abologna@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
src/qemu/qemu_command.c | 13 +++++++++++++
|
|
|
fbe740 |
1 file changed, 13 insertions(+)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
|
|
|
fbe740 |
index e1e19e0fcc..1a5142d472 100644
|
|
|
fbe740 |
--- a/src/qemu/qemu_command.c
|
|
|
fbe740 |
+++ b/src/qemu/qemu_command.c
|
|
|
fbe740 |
@@ -6633,6 +6633,19 @@ qemuBuildCpuCommandLine(virCommandPtr cmd,
|
|
|
fbe740 |
virBufferAsprintf(&buf, ",tsc-frequency=%lu", timer->frequency);
|
|
|
fbe740 |
break;
|
|
|
fbe740 |
case VIR_DOMAIN_TIMER_NAME_ARMVTIMER:
|
|
|
fbe740 |
+ switch (timer->tickpolicy) {
|
|
|
fbe740 |
+ case VIR_DOMAIN_TIMER_TICKPOLICY_DELAY:
|
|
|
fbe740 |
+ virBufferAddLit(&buf, ",kvm-no-adjvtime=off");
|
|
|
fbe740 |
+ break;
|
|
|
fbe740 |
+ case VIR_DOMAIN_TIMER_TICKPOLICY_DISCARD:
|
|
|
fbe740 |
+ virBufferAddLit(&buf, ",kvm-no-adjvtime=on");
|
|
|
fbe740 |
+ break;
|
|
|
fbe740 |
+ case -1:
|
|
|
fbe740 |
+ case VIR_DOMAIN_TIMER_TICKPOLICY_CATCHUP:
|
|
|
fbe740 |
+ case VIR_DOMAIN_TIMER_TICKPOLICY_MERGE:
|
|
|
fbe740 |
+ break;
|
|
|
fbe740 |
+ }
|
|
|
fbe740 |
+ break;
|
|
|
fbe740 |
case VIR_DOMAIN_TIMER_NAME_PLATFORM:
|
|
|
fbe740 |
case VIR_DOMAIN_TIMER_NAME_PIT:
|
|
|
fbe740 |
case VIR_DOMAIN_TIMER_NAME_RTC:
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.25.0
|
|
|
fbe740 |
|