From: "Jason J. Herne" <jjhe...@us.ibm.com>

Modify kvm_arch_get_registers interface such that it expects a register level
parameter.  Also modify the only caller of kvm_arch_get_registers such that it
passes an appropriate level.  The idea here is that, for all currently
existing calls we want to do nothing different.

Signed-off-by: Jason J. Herne <jjhe...@us.ibm.com>
Reviewed-by: Christian Borntraeger <borntrae...@de.ibm.com>
---
 include/sysemu/kvm.h |    2 +-
 kvm-all.c            |    2 +-
 target-i386/kvm.c    |    2 +-
 target-ppc/kvm.c     |    2 +-
 target-s390x/kvm.c   |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h
index 4271699..c19b9d1 100644
--- a/include/sysemu/kvm.h
+++ b/include/sysemu/kvm.h
@@ -172,7 +172,7 @@ int kvm_arch_process_async_events(CPUArchState *env);
 /* full state set, modified during initialization or on vmload */
 #define KVM_REGSYNC_FULL_STATE      3
 
-int kvm_arch_get_registers(CPUArchState *env);
+int kvm_arch_get_registers(CPUArchState *env, int level);
 
 int kvm_arch_put_registers(CPUArchState *env, int level);
 
diff --git a/kvm-all.c b/kvm-all.c
index f4365de..fceda59 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1491,7 +1491,7 @@ static void do_kvm_cpu_synchronize_state(void *_env)
     CPUArchState *env = _env;
 
     if (!env->kvm_vcpu_dirty) {
-        kvm_arch_get_registers(env);
+        kvm_arch_get_registers(env, KVM_REGSYNC_FULL_STATE);
         env->kvm_vcpu_dirty = 1;
     }
 }
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 58ac3a8..4472738 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -1641,7 +1641,7 @@ int kvm_arch_put_registers(CPUX86State *env, int level)
     return 0;
 }
 
-int kvm_arch_get_registers(CPUX86State *env)
+int kvm_arch_get_registers(CPUX86State *env, int level)
 {
     X86CPU *cpu = x86_env_get_cpu(env);
     int ret;
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index f2e6eca..a0d6c90 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -525,7 +525,7 @@ int kvm_arch_put_registers(CPUPPCState *env, int level)
     return ret;
 }
 
-int kvm_arch_get_registers(CPUPPCState *env)
+int kvm_arch_get_registers(CPUPPCState *env, int level)
 {
     struct kvm_regs regs;
     struct kvm_sregs sregs;
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 5a845c3..be26686 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -149,7 +149,7 @@ int kvm_arch_put_registers(CPUS390XState *env, int level)
     return 0;
 }
 
-int kvm_arch_get_registers(CPUS390XState *env)
+int kvm_arch_get_registers(CPUS390XState *env, int level)
 {
     struct kvm_sregs sregs;
     struct kvm_regs regs;
-- 
1.7.9.5


Reply via email to