Skip to content

Commit 46301cb

Browse files
author
Marcus Sorensen
committed
CLOUDSTACK-8177
KVM: disable tickpolicy for kvmclock. Newer libvirt enforces that kvmclock cannot accept parameters.
1 parent d08369a commit 46301cb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3723,7 +3723,7 @@ So if getMinSpeed() returns null we fall back to getSpeed().
37233723
clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME);
37243724
clock.setTimer("rtc", "catchup", null);
37253725
} else if (vmTO.getType() != VirtualMachine.Type.User || isGuestPVEnabled(vmTO.getOs())) {
3726-
clock.setTimer("kvmclock", "catchup", null, _noKvmClock);
3726+
clock.setTimer("kvmclock", null, null, _noKvmClock);
37273727
}
37283728

37293729
vm.addComp(clock);

‎plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void testCreateVMFromSpecLegacy() {
9494
vmStr += "<uuid>b0f0a72d-7efb-3cad-a8ff-70ebf30b3af9</uuid>\n";
9595
vmStr += "<description>" + os + "</description>\n";
9696
vmStr += "<clock offset='utc'>\n";
97-
vmStr += "<timer name='kvmclock' tickpolicy='catchup' >\n";
97+
vmStr += "<timer name='kvmclock' >\n";
9898
vmStr += "</timer>\n";
9999
vmStr += "</clock>\n";
100100
vmStr += "<features>\n";
@@ -168,7 +168,7 @@ public void testCreateVMFromSpecWithTopology6() {
168168
vmStr += "<uuid>b0f0a72d-7efb-3cad-a8ff-70ebf30b3af9</uuid>\n";
169169
vmStr += "<description>" + os + "</description>\n";
170170
vmStr += "<clock offset='utc'>\n";
171-
vmStr += "<timer name='kvmclock' tickpolicy='catchup' >\n";
171+
vmStr += "<timer name='kvmclock' >\n";
172172
vmStr += "</timer>\n";
173173
vmStr += "</clock>\n";
174174
vmStr += "<features>\n";
@@ -240,7 +240,7 @@ public void testCreateVMFromSpecWithTopology4() {
240240
vmStr += "<uuid>b0f0a72d-7efb-3cad-a8ff-70ebf30b3af9</uuid>\n";
241241
vmStr += "<description>" + os + "</description>\n";
242242
vmStr += "<clock offset='utc'>\n";
243-
vmStr += "<timer name='kvmclock' tickpolicy='catchup' >\n";
243+
vmStr += "<timer name='kvmclock' >\n";
244244
vmStr += "</timer>\n";
245245
vmStr += "</clock>\n";
246246
vmStr += "<features>\n";
@@ -317,7 +317,7 @@ public void testCreateVMFromSpec() {
317317
vmStr += "<uuid>b0f0a72d-7efb-3cad-a8ff-70ebf30b3af9</uuid>\n";
318318
vmStr += "<description>" + os + "</description>\n";
319319
vmStr += "<clock offset='utc'>\n";
320-
vmStr += "<timer name='kvmclock' tickpolicy='catchup' >\n";
320+
vmStr += "<timer name='kvmclock' >\n";
321321
vmStr += "</timer>\n";
322322
vmStr += "</clock>\n";
323323
vmStr += "<features>\n";

0 commit comments

Comments
 (0)