Skip to contentSkip to conversation

KVM regsync: S390 Relax register synchronization parameters

PATCH In review Jason J. Herne 1 participant 1 message Jan 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 7/7 KVM regsync: S390 Relax register synchronization parameters

From: "Jason J. Herne" <[email protected]>

Some S390 code paths do not need to synchronize the full register state. This patch changes those paths to only synchronize the runtime register set.

---
 target-s390x/kvm.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
target-s390x/kvm.c +3 -3
index 81fe1a7..d338078 100644
@@ -354,7 +354,7 @@ static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
     uint64_t code;
     int r = 0;
 
-    cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE);
+    cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE);
     sccb = env->regs[ipbh0 & 0xf];
     code = env->regs[(ipbh0 & 0xf0) >> 4];
 
@@ -388,7 +388,7 @@ static int handle_priv(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1)
 
 static int handle_hypercall(CPUS390XState *env, struct kvm_run *run)
 {
-    cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE);
+    cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE);
     env->regs[2] = s390_virtio_hypercall(env, env->regs[2], env->regs[1]);
 
     return 0;
@@ -463,7 +463,7 @@ static int handle_sigp(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1)
     S390CPU *target_cpu;
     CPUS390XState *target_env;
 
-    cpu_synchronize_state(env, KVM_REGSYNC_FULL_STATE);
+    cpu_synchronize_state(env, KVM_REGSYNC_RUNTIME_STATE);
 
     /* get order code */
     order_code = run->s390_sieic.ipb >> 28;
Signature · 1 line
1.7.9.5