Patchwork [v2,17/21] q35: Add kvmclock support

login
register
mail settings
Submitter Jason Baron
Date Oct. 9, 2012, 3:30 a.m.
Message ID <c4b07afdf36e93a0203f27aa7ef4b62925e31ef7.1349749915.git.jbaron@redhat.com>
Download mbox | patch
Permalink /patch/190189/
State New
Headers show

Comments

Jason Baron - Oct. 9, 2012, 3:30 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
---
 hw/pc_q35.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Paolo Bonzini - Oct. 9, 2012, 7:54 a.m.
Il 09/10/2012 05:30, Jason Baron ha scritto:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> Signed-off-by: Jason Baron <jbaron@redhat.com>
> ---
>  hw/pc_q35.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/hw/pc_q35.c b/hw/pc_q35.c
> index b6a619a..48083bb 100644
> --- a/hw/pc_q35.c
> +++ b/hw/pc_q35.c
> @@ -69,6 +69,7 @@
>  #include "mc146818rtc.h"
>  #include "xen.h"
>  #include "kvm.h"
> +#include "kvm/clock.h"
>  
>  #include "q35.h"
>  #include "exec-memory.h"
> @@ -357,6 +358,8 @@ static void pc_q35_init(ram_addr_t ram_size,
>  
>      pc_cpus_init(cpu_model);
>  
> +    kvmclock_create();
> +
>      if (ram_size >= 0xb0000000) {
>          above_4g_mem_size = ram_size - 0xb0000000;
>          below_4g_mem_size = 0xb0000000;
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Patch

diff --git a/hw/pc_q35.c b/hw/pc_q35.c
index b6a619a..48083bb 100644
--- a/hw/pc_q35.c
+++ b/hw/pc_q35.c
@@ -69,6 +69,7 @@ 
 #include "mc146818rtc.h"
 #include "xen.h"
 #include "kvm.h"
+#include "kvm/clock.h"
 
 #include "q35.h"
 #include "exec-memory.h"
@@ -357,6 +358,8 @@  static void pc_q35_init(ram_addr_t ram_size,
 
     pc_cpus_init(cpu_model);
 
+    kvmclock_create();
+
     if (ram_size >= 0xb0000000) {
         above_4g_mem_size = ram_size - 0xb0000000;
         below_4g_mem_size = 0xb0000000;