Skip to contentSkip to conversation

pc.h: move x-mach-use-reliable-get-clock compat entry to PC_COMPAT_2_8

PATCH Applied Marcelo Tosatti 3 participants 3 messages Jan 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc.h: move x-mach-use-reliable-get-clock compat entry to PC_COMPAT_2_8

As noticed by David Gilbert, commit 6053a86 'kvmclock: reduce kvmclock differences on migration' added 'x-mach-use-reliable-get-clock' and a compatibility entry that turns it off; however it got merged after 2.8.0 was released but the entry has gone into PC_COMPAT_2_7 where it should have gone into PC_COMPAT_2_8.

Fix it by moving the entry to PC_COMPAT_2_8.

include/hw/i386/pc.h +4 -3
index b22e699..738bfd6 100644
@@ -375,14 +375,15 @@ int e820_get_num_entries(void);
 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
 
 #define PC_COMPAT_2_8 \
-
-#define PC_COMPAT_2_7 \
-    HW_COMPAT_2_7 \
+    HW_COMPAT_2_8 \
     {\
         .driver   = "kvmclock",\
         .property = "x-mach-use-reliable-get-clock",\
         .value    = "off",\
     },\
+
+#define PC_COMPAT_2_7 \
+    HW_COMPAT_2_7 \
     {\
         .driver   = TYPE_X86_CPU,\
         .property = "l3-cache",\
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · * Marcelo Tosatti ([email protected]) wrote:

As noticed by David Gilbert, commit 6053a86 'kvmclock: reduce kvmclock differences on migration' added 'x-mach-use-reliable-get-clock' and a compatibility entry that turns it off; however it got merged after 2.8.0 was released but the entry has gone into PC_COMPAT_2_7 where it should have gone into PC_COMPAT_2_8.

Fix it by moving the entry to PC_COMPAT_2_8.

Quoted 16 lines
include/hw/i386/pc.h +1 -3
index b22e699..738bfd6 100644
@@ -375,14 +375,15 @@ int e820_get_num_entries(void);
 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
 
 #define PC_COMPAT_2_8 \
-
-#define PC_COMPAT_2_7 \
-    HW_COMPAT_2_7 \
+    HW_COMPAT_2_8 \
     {\

include/hw/i386/pc.h int e820_get_num_entries(void); · line 389

Quoted 10 lines
include/hw/i386/pc.h +3 -0
         .driver   = "kvmclock",\
         .property = "x-mach-use-reliable-get-clock",\
         .value    = "off",\
     },\
+
+#define PC_COMPAT_2_7 \
+    HW_COMPAT_2_7 \
     {\
         .driver   = TYPE_X86_CPU,\
         .property = "l3-cache",\

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#2 lore raw
In reply to Marcelo Tosatti
Quoted 27 lines · Marcelo Tosatti

As noticed by David Gilbert, commit 6053a86 'kvmclock: reduce kvmclock differences on migration' added 'x-mach-use-reliable-get-clock' and a compatibility entry that turns it off; however it got merged after 2.8.0 was released but the entry has gone into PC_COMPAT_2_7 where it should have gone into PC_COMPAT_2_8.

Fix it by moving the entry to PC_COMPAT_2_8.

include/hw/i386/pc.h +1 -3
index b22e699..738bfd6 100644
@@ -375,14 +375,15 @@ int e820_get_num_entries(void);
 bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
 
 #define PC_COMPAT_2_8 \
-
-#define PC_COMPAT_2_7 \
-    HW_COMPAT_2_7 \
+    HW_COMPAT_2_8 \
     {\

include/hw/i386/pc.h int e820_get_num_entries(void); · line 389

Quoted 10 lines
include/hw/i386/pc.h +3 -0
         .driver   = "kvmclock",\
         .property = "x-mach-use-reliable-get-clock",\
         .value    = "off",\
     },\
+
+#define PC_COMPAT_2_7 \
+    HW_COMPAT_2_7 \
     {\
         .driver   = TYPE_X86_CPU,\
         .property = "l3-cache",\

Queued, thanks.

Paolo