KVM: Remove redundant argument to kvm_arch_vcpu_ioctl_run
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Thu, 16 Apr 2020 05:10:57 +0000 (13:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2020 13:13:11 +0000 (09:13 -0400)
commit1b94f6f81007b4afaea3480ec018bc9236148961
tree88efda43c748f5eb7dd191ff952f0fe9225d744f
parent4f233371f6bb1578340b6c7034ddf7b76606d4ae
KVM: Remove redundant argument to kvm_arch_vcpu_ioctl_run

In earlier versions of kvm, 'kvm_run' was an independent structure
and was not included in the vcpu structure. At present, 'kvm_run'
is already included in the vcpu structure, so the parameter
'kvm_run' is redundant.

This patch simplifies the function definition, removes the extra
'kvm_run' parameter, and extracts it from the 'kvm_vcpu' structure
if necessary.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Message-Id: <20200416051057.26526-1-tianjia.zhang@linux.alibaba.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/mips.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/arm/arm.c
virt/kvm/kvm_main.c