Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-11-22 Thread Christoffer Dall
On Tue, Nov 07, 2017 at 11:45:01AM +0100, Andrew Jones wrote: > On Thu, Oct 12, 2017 at 12:41:09PM +0200, Christoffer Dall wrote: > > Some architectures may decide to do different things during > > kvm_arch_vcpu_load depending on the ioctl being executed. For example, > > arm64 is about to do sign

Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-11-07 Thread Andrew Jones
On Thu, Oct 12, 2017 at 12:41:09PM +0200, Christoffer Dall wrote: > Some architectures may decide to do different things during > kvm_arch_vcpu_load depending on the ioctl being executed. For example, > arm64 is about to do significant work in vcpu load/put when running a > vcpu, but not when doin

Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-10-13 Thread Christoffer Dall
On Fri, Oct 13, 2017 at 8:38 PM, Radim Krčmář wrote: > 2017-10-13 19:31+0200, Christoffer Dall: >> On Fri, Oct 13, 2017 at 07:13:07PM +0200, Radim Krčmář wrote: >> > I think that other (special) callsites of vcpu_load()/vcpu_put() have a >> > well defined IOCTL that can be used instead of vcpu->io

Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-10-13 Thread Radim Krčmář
2017-10-13 19:31+0200, Christoffer Dall: > On Fri, Oct 13, 2017 at 07:13:07PM +0200, Radim Krčmář wrote: > > I think that other (special) callsites of vcpu_load()/vcpu_put() have a > > well defined IOCTL that can be used instead of vcpu->ioctl, so we could > > just pass the ioctl value all the way

Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-10-13 Thread Christoffer Dall
On Fri, Oct 13, 2017 at 07:13:07PM +0200, Radim Krčmář wrote: > 2017-10-12 12:41+0200, Christoffer Dall: > > Some architectures may decide to do different things during > > kvm_arch_vcpu_load depending on the ioctl being executed. For example, > > arm64 is about to do significant work in vcpu load

Re: [PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-10-13 Thread Radim Krčmář
2017-10-12 12:41+0200, Christoffer Dall: > Some architectures may decide to do different things during > kvm_arch_vcpu_load depending on the ioctl being executed. For example, > arm64 is about to do significant work in vcpu load/put when running a > vcpu, but not when doing things like KVM_SET_ONE

[PATCH 05/37] KVM: Record the executing ioctl number on the vcpu struct

2017-10-12 Thread Christoffer Dall
Some architectures may decide to do different things during kvm_arch_vcpu_load depending on the ioctl being executed. For example, arm64 is about to do significant work in vcpu load/put when running a vcpu, but not when doing things like KVM_SET_ONE_REG or KVM_SET_MP_STATE. Therefore, store the i