* [Qemu-devel] [PATCH 6/7] KVM regsync: S390 Relax register synchronization parameters
@ 2012-12-21 13:56 Jason J. Herne
0 siblings, 0 replies; only message in thread
From: Jason J. Herne @ 2012-12-21 13:56 UTC (permalink / raw)
To: borntraeger, qemu-devel, jan.kiszka, agraf, jfrei, graalfs; +Cc: Jason J. Herne
From: "Jason J. Herne" <jjherne@us.ibm.com>
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.
Signed-off-by: Jason J. Herne <jjherne@us.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
target-s390x/kvm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index ad978ba..b38765d 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -337,7 +337,7 @@ static int kvm_sclp_service_call(CPUS390XState *env, 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];
@@ -371,7 +371,7 @@ static int handle_priv(CPUS390XState *env, 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;
@@ -444,7 +444,7 @@ static int handle_sigp(CPUS390XState *env, 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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-21 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 13:56 [Qemu-devel] [PATCH 6/7] KVM regsync: S390 Relax register synchronization parameters Jason J. Herne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).