[Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-10-04 Thread Jens Freimann
From: Christian Borntraeger borntrae...@de.ibm.com Newer kernels provide the guest registers in kvm_run. Lets use those if available (i.e. the capability is set). This avoids ioctls on cpu_synchronize_state making intercepts faster. In addition, we have now the prefix register, the access

Re: [Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-09-20 Thread Alexander Graf
On 22.08.2012, at 13:54, Jens Freimann wrote: From: Christian Borntraeger borntrae...@de.ibm.com Newer kernels provide the guest registers in kvm_run. Lets use those if available. This avoids ioctls on cpu_synchronize_state making intercepts faster. In addition, we have now the prefix

Re: [Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-09-20 Thread Christian Borntraeger
[...] --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -88,50 +88,77 @@ void kvm_arch_reset_vcpu(CPUS390XState *env) /* FIXME: add code to reset vcpu. */ } +/* we want to have the prefix, the GPRS, the ACRS and the CRS up to date */ +#define QEMU_NEEDED_REGS (KVM_SYNC_PREFIX |

Re: [Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-09-20 Thread Alexander Graf
On 20.09.2012, at 14:49, Christian Borntraeger borntrae...@de.ibm.com wrote: [...] --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -88,50 +88,77 @@ void kvm_arch_reset_vcpu(CPUS390XState *env) /* FIXME: add code to reset vcpu. */ } +/* we want to have the prefix, the GPRS, the

Re: [Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-09-20 Thread Christian Borntraeger
On 20/09/12 16:13, Alexander Graf wrote: On 20.09.2012, at 14:49, Christian Borntraeger borntrae...@de.ibm.com wrote: [...] --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -88,50 +88,77 @@ void kvm_arch_reset_vcpu(CPUS390XState *env) /* FIXME: add code to reset vcpu. */ }

[Qemu-devel] [PATCH] s390: use sync regs for register transfer

2012-08-22 Thread Jens Freimann
From: Christian Borntraeger borntrae...@de.ibm.com Newer kernels provide the guest registers in kvm_run. Lets use those if available. This avoids ioctls on cpu_synchronize_state making intercepts faster. In addition, we have now the prefix register, the access registers the control registers up