Re: [PATCH v4 0/7] clean up redundant 'kvm_run' parameters

2020-06-23 Thread Tianjia Zhang
On 2020/6/23 17:42, Paolo Bonzini wrote: On 27/04/20 06:35, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the 'kvm_run' and 'kv

[PATCH v6 4/5] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-06-23 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang Reviewed-by: Huacai Chen --- arch/mips/include/asm/kvm_host.h | 28 +--- arch/mips/kvm/emulate.c | 59 ++-- arch/mips/kvm/mips.c | 11 ++- arch/mips/kvm/trap_emul.c| 114 +++

[PATCH v6 5/5] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-06-23 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang Reviewed-by: Huacai Chen --- arch/mips/include/asm/kvm_host.h | 4 ++-- arch/mips/kvm/entry.c| 21 - arch/mips/kvm/mips.c | 3 ++- arch/mips/kvm/trap_emul.c| 2 +- arch/mips/kvm/vz.

[PATCH v6 3/5] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-06-23 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_ppc.h| 2 +- arch/powerpc/kvm/book3s_interrupts.S | 22 ++ arch/powerpc/kvm/book3s_pr.c | 9 - arch/powerpc/kvm/booke.c | 9 - ar

[PATCH v6 0/5] clean up redundant 'kvm_run' parameters

2020-06-23 Thread Tianjia Zhang
sting `vcpu->run` in the function body unchanged. v2 change: s390 retains the original variable name and minimizes modification. Tianjia Zhang (5): KVM: s390: clean up redundant 'kvm_run' parameters KVM: arm64: clean up redundant 'kvm_run' parameters KVM: PPC: clean u

[PATCH v6 1/5] KVM: s390: clean up redundant 'kvm_run' parameters

2020-06-23 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang Reviewed-by: Vitaly Kuznetsov --- arch/s390/kvm/kvm-s390.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index d47c19718615..f5f96dc337

[PATCH v6 2/5] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-06-23 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang Reviewed-by: Vitaly Kuznetsov --- arch/arm64/include/asm/kvm_coproc.h | 12 +- arch/arm64/include/asm/kvm_host.h | 11 - arch/arm64/include/asm/kvm_mmu.h| 2 +- arch/arm64/kvm/arm.c| 6 ++---

Re: [PATCH v6 1/5] KVM: s390: clean up redundant 'kvm_run' parameters

2020-06-24 Thread Tianjia Zhang
On 2020/6/23 23:31, Christian Borntraeger wrote: On 23.06.20 15:14, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the 'kvm_run' an

Re: [PATCH v6 0/5] clean up redundant 'kvm_run' parameters

2020-07-10 Thread Tianjia Zhang
Hi Paolo, Any opinion on this series patches? Can I help with this patchset ? Thanks and best, Tianjia On 2020/6/23 21:14, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related

Re: [PATCH v4 5/7] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-07-13 Thread Tianjia Zhang
On 2020/5/26 13:59, Paul Mackerras wrote: On Mon, Apr 27, 2020 at 12:35:12PM +0800, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the &#x

[PATCH] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-13 Thread Tianjia Zhang
kvm_arch_vcpu_ioctl_run() is only called in the file kvm_main.c, where vcpu->run is the kvm_run parameter, so it has been replaced. Signed-off-by: Tianjia Zhang --- arch/x86/kvm/x86.c | 8 virt/kvm/arm/arm.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/a

Re: [PATCH] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-13 Thread Tianjia Zhang
On 2020/4/13 16:56, Marc Zyngier wrote: Tianjia, On 2020-04-13 04:45, Tianjia Zhang wrote: kvm_arch_vcpu_ioctl_run() is only called in the file kvm_main.c, where vcpu->run is the kvm_run parameter, so it has been replaced. Signed-off-by: Tianjia Zhang ---  arch/x86/kvm/x86.c

Re: [PATCH] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-15 Thread Tianjia Zhang
On 2020/4/14 22:26, Vitaly Kuznetsov wrote: Tianjia Zhang writes: kvm_arch_vcpu_ioctl_run() is only called in the file kvm_main.c, where vcpu->run is the kvm_run parameter, so it has been replaced. Signed-off-by: Tianjia Zhang --- arch/x86/kvm/x86.c | 8 virt/kvm/arm/ar

Re: [PATCH v2] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-16 Thread Tianjia Zhang
On 2020/4/16 16:50, Cornelia Huck wrote: On Thu, 16 Apr 2020 16:45:33 +0800 Tianjia Zhang wrote: On 2020/4/16 16:28, Marc Zyngier wrote: On 2020-04-16 08:03, Vitaly Kuznetsov wrote: Tianjia Zhang writes: In earlier versions of kvm, 'kvm_run' is an independent structure

Re: [PATCH v2] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-16 Thread Tianjia Zhang
On 2020/4/16 16:28, Marc Zyngier wrote: On 2020-04-16 08:03, Vitaly Kuznetsov wrote: Tianjia Zhang writes: In earlier versions of kvm, 'kvm_run' is an independent structure and is not included in the vcpu structure. At present, 'kvm_run' is already included in the vc

Re: [PATCH] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-16 Thread Tianjia Zhang
On 2020/4/15 22:53, Paolo Bonzini wrote: On 15/04/20 11:07, Vitaly Kuznetsov wrote: In case this is no longer needed I'd suggest we drop 'kvm_run' parameter and extract it from 'struct kvm_vcpu' when needed. This looks like a natural add-on to your cleanup patch. I agree, though I think it

[PATCH v2] KVM: Optimize kvm_arch_vcpu_ioctl_run function

2020-04-16 Thread Tianjia Zhang
the extra 'kvm_run' parameter, and extract it from the 'kvm_vcpu' structure if necessary. Signed-off-by: Tianjia Zhang --- v2 change: remove 'kvm_run' parameter and extract it from 'kvm_vcpu' arch/mips/kvm/mips.c | 3 ++- arch/powerpc/kvm/power

[PATCH 0/7] clean up redundant 'kvm_run' parameters

2020-04-19 Thread Tianjia Zhang
undant structure pointer of 'kvm_run' in 'vcpu_arch', which has also been cleaned separately. Thanks and best. Tianjia Zhang (7): KVM: s390: clean up redundant 'kvm_run' parameters KVM: arm64: clean up redundant 'kvm_run' parameters KVM: PPC: Remove redundant

[PATCH 2/7] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/arm64/include/asm/kvm_coproc.h | 12 +- arch/arm64/include/asm/kvm_host.h | 11 - arch/arm64/include/asm/kvm_mmu.h| 2 +- arch/arm64/kvm/handle_exit.c| 36 ++---

[PATCH 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/s390/kvm/kvm-s390.c | 127 +-- 1 file changed, 67 insertions(+), 60 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 443af3ead739..cf420d013ba3 100

[PATCH 4/7] KVM: PPC: clean up redundant 'kvm_run' parameters

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_book3s.h| 16 +++--- arch/powerpc/include/asm/kvm_ppc.h | 27 + arch/powerpc/kvm/book3s.c| 4 +- arch/powerpc/kvm/book3s.h| 2 +- arch/powerpc/kvm

[PATCH 5/7] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_ppc.h| 2 +- arch/powerpc/kvm/book3s_interrupts.S | 17 - arch/powerpc/kvm/book3s_pr.c | 9 - arch/powerpc/kvm/booke.c | 9 - ar

[PATCH 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 28 +--- arch/mips/kvm/emulate.c | 59 ++-- arch/mips/kvm/mips.c | 11 ++- arch/mips/kvm/trap_emul.c| 114 ++-

[PATCH 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-04-19 Thread Tianjia Zhang
The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_host.h | 1 - arch/powerpc/kvm/book3s_

[PATCH] KVM: X86: Fix compile error in svm/sev.c

2020-04-19 Thread Tianjia Zhang
reason is that the 'pagemap.h' header file is not included. Signed-off-by: Tianjia Zhang --- arch/x86/kvm/svm/sev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 0e3fc311d7da..3ef99e87c1db 100644 --- a/arch/x86/kvm/svm/sev.c +++

[PATCH 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-19 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 4 ++-- arch/mips/kvm/entry.c| 15 +-- arch/mips/kvm/mips.c | 3 ++- arch/mips/kvm/trap_emul.c| 2 +- arch/mips/kvm/vz.c | 2 +

Re: [PATCH] KVM: X86: Fix compile error in svm/sev.c

2020-04-20 Thread Tianjia Zhang
On 2020/4/19 16:24, Xiaoyao Li wrote: On 4/19/2020 3:30 PM, Tianjia Zhang wrote: The compiler reported the following compilation errors: arch/x86/kvm/svm/sev.c: In function ‘sev_pin_memory’: arch/x86/kvm/svm/sev.c:361:3: error: implicit declaration of function ‘release_pages’ [-Werror

Re: [PATCH 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-20 Thread Tianjia Zhang
On 2020/4/20 15:07, Christian Borntraeger wrote: On 19.04.20 09:51, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. Earlier than historical reasons, many kvm-related function parameters retain the 'kvm_run&#

Re: [PATCH 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-20 Thread Tianjia Zhang
On 2020/4/20 18:32, maobibo wrote: On 04/19/2020 03:51 PM, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. Earlier than historical reasons, many kvm-related function parameters retain the 'kvm_run' an

[PATCH v2 2/7] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/arm64/include/asm/kvm_coproc.h | 12 +- arch/arm64/include/asm/kvm_host.h | 11 - arch/arm64/include/asm/kvm_mmu.h| 2 +- arch/arm64/kvm/handle_exit.c| 36 ++---

[PATCH v2 0/7] clean up redundant 'kvm_run' parameters

2020-04-22 Thread Tianjia Zhang
undant structure pointer of 'kvm_run' in 'vcpu_arch', which has also been cleaned separately. --- v2 change: s390 retains the original variable name and minimizes modification. Tianjia Zhang (7): KVM: s390: clean up redundant 'kvm_run' parameters KVM: arm64: clean up re

[PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/s390/kvm/kvm-s390.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index e335a7e5ead7..d7bb2e7a07ff 100644 -

[PATCH v2 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-04-22 Thread Tianjia Zhang
The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_host.h | 1 - arch/powerpc/kvm/book3s_

[PATCH v2 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 28 +--- arch/mips/kvm/emulate.c | 59 ++-- arch/mips/kvm/mips.c | 11 ++- arch/mips/kvm/trap_emul.c| 114 ++-

[PATCH v2 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 4 ++-- arch/mips/kvm/entry.c| 15 +-- arch/mips/kvm/mips.c | 3 ++- arch/mips/kvm/trap_emul.c| 2 +- arch/mips/kvm/vz.c | 2 +

[PATCH v2 5/7] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_ppc.h| 2 +- arch/powerpc/kvm/book3s_interrupts.S | 17 - arch/powerpc/kvm/book3s_pr.c | 9 - arch/powerpc/kvm/booke.c | 9 - ar

[PATCH v2 4/7] KVM: PPC: clean up redundant 'kvm_run' parameters

2020-04-22 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_book3s.h| 16 +++--- arch/powerpc/include/asm/kvm_ppc.h | 27 + arch/powerpc/kvm/book3s.c| 4 +- arch/powerpc/kvm/book3s.h| 2 +- arch/powerpc/kvm

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/22 21:45, Cornelia Huck wrote: On Wed, 22 Apr 2020 20:58:04 +0800 Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. Earlier than historical reasons, many kvm-related function s/Earlier than/For/ ?

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/23 18:39, Cornelia Huck wrote: On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger wrote: On 22.04.20 15:45, Cornelia Huck wrote: On Wed, 22 Apr 2020 20:58:04 +0800

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/23 19:00, Christian Borntraeger wrote: On 23.04.20 12:58, Tianjia Zhang wrote: On 2020/4/23 18:39, Cornelia Huck wrote: On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/22 23:58, Christian Borntraeger wrote: On 22.04.20 15:45, Cornelia Huck wrote: On Wed, 22 Apr 2020 20:58:04 +0800 Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. Earlier than historical reaso

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger wrote: On 22.04.20 15:45, Cornelia Huck wrote: On Wed, 22 Apr 2020 20:58:04 +0800 Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_

[PATCH v3 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-04-27 Thread Tianjia Zhang
The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_host.h | 1 - arch/powerpc/kvm/book3s_

[PATCH v4 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-04-27 Thread Tianjia Zhang
The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_host.h | 1 - arch/powerpc/kvm/book3s_

[PATCH v4 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/s390/kvm/kvm-s390.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index e335a7e5ead7..c0d94eaa00d7 100644 --- a/arch/s390/kvm/k

Re: [PATCH v3 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-27 Thread Tianjia Zhang
On 2020/4/27 11:51, Huacai Chen wrote: Hi, Tianjia, On Sun, Apr 26, 2020 at 8:40 PM Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. Earlier than historical reasons, many kvm-related function parameters reta

[PATCH v3 4/7] KVM: PPC: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_book3s.h| 16 +++--- arch/powerpc/include/asm/kvm_ppc.h | 27 + arch/powerpc/kvm/book3s.c| 4 +- arch/powerpc/kvm/book3s.h| 2 +- arch/powerpc/kvm

[PATCH v4 4/7] KVM: PPC: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_book3s.h| 16 +++--- arch/powerpc/include/asm/kvm_ppc.h | 27 + arch/powerpc/kvm/book3s.c| 4 +- arch/powerpc/kvm/book3s.h| 2 +- arch/powerpc/kvm/book3s_

[PATCH v3 5/7] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_ppc.h| 2 +- arch/powerpc/kvm/book3s_interrupts.S | 17 - arch/powerpc/kvm/book3s_pr.c | 9 - arch/powerpc/kvm/booke.c | 9 - ar

[PATCH v4 5/7] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/powerpc/include/asm/kvm_ppc.h| 2 +- arch/powerpc/kvm/book3s_interrupts.S | 17 - arch/powerpc/kvm/book3s_pr.c | 9 - arch/powerpc/kvm/booke.c | 9 - arch/powerpc/kvm/b

[PATCH v3 0/7] clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
undant structure pointer of 'kvm_run' in 'vcpu_arch', which has also been cleaned separately. --- v3 change: Keep the existing `vcpu->run` in the function body unchanged. v2 change: s390 retains the original variable name and minimizes modification. Tianjia Zhang (7): KVM: s3

[PATCH v3 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/s390/kvm/kvm-s390.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index e335a7e5ead7..c0d94eaa00d7 100644 --- a/arch/s39

[PATCH v4 0/7] clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
cture pointer of 'kvm_run' in 'vcpu_arch', which has also been cleaned separately. --- v4 change: mips: fixes two errors in entry.c. v3 change: Keep the existing `vcpu->run` in the function body unchanged. v2 change: s390 retains the original variable name and minimizes mo

[PATCH v4 2/7] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/arm64/include/asm/kvm_coproc.h | 12 +- arch/arm64/include/asm/kvm_host.h | 11 - arch/arm64/include/asm/kvm_mmu.h| 2 +- arch/arm64/kvm/handle_exit.c| 36 ++---

[PATCH v3 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 4 ++-- arch/mips/kvm/entry.c| 15 +-- arch/mips/kvm/mips.c | 3 ++- arch/mips/kvm/trap_emul.c| 2 +- arch/mips/kvm/vz.c | 2 +

[PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 28 +--- arch/mips/kvm/emulate.c | 59 ++-- arch/mips/kvm/mips.c | 11 ++- arch/mips/kvm/trap_emul.c| 114 ++- arch/mips

[PATCH v3 2/7] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/arm64/include/asm/kvm_coproc.h | 12 +- arch/arm64/include/asm/kvm_host.h | 11 - arch/arm64/include/asm/kvm_mmu.h| 2 +- arch/arm64/kvm/handle_exit.c| 36 ++---

[PATCH v4 7/7] KVM: MIPS: clean up redundant kvm_run parameters in assembly

2020-04-27 Thread Tianjia Zhang
aining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 4 ++-- arch/mips/kvm/entry.c| 21 - arch/mips/kvm/mips.c | 3 ++- arch/mips/kvm/trap_emul.c| 2 +- arch/mips/kvm/vz.c | 2 +

[PATCH v3 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-04-27 Thread Tianjia Zhang
of these remaining redundant parameters. Signed-off-by: Tianjia Zhang --- arch/mips/include/asm/kvm_host.h | 28 +--- arch/mips/kvm/emulate.c | 59 ++-- arch/mips/kvm/mips.c | 11 ++- arch/mips/kvm/trap_emul.c| 114 ++-

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-29 Thread Tianjia Zhang
On 2020/4/26 20:59, Thomas Huth wrote: On 23/04/2020 13.00, Christian Borntraeger wrote: On 23.04.20 12:58, Tianjia Zhang wrote: On 2020/4/23 18:39, Cornelia Huck wrote: On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr

Re: [PATCH v4 0/7] clean up redundant 'kvm_run' parameters

2020-05-05 Thread Tianjia Zhang
Paolo Bonzini, any opinion on this? Thanks and best, Tianjia On 2020/4/27 12:35, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the 'kvm_run&#

Re: [PATCH v4 2/7] KVM: arm64: clean up redundant 'kvm_run' parameters

2020-05-07 Thread Tianjia Zhang
On 2020/5/5 16:39, Marc Zyngier wrote: Hi Tianjia, On 2020-04-27 05:35, Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the 'kvm_run' an

Re: [PATCH v4 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-05-27 Thread Tianjia Zhang
On 2020/5/27 12:20, Paul Mackerras wrote: On Mon, Apr 27, 2020 at 12:35:10PM +0800, Tianjia Zhang wrote: The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted.

Re: [PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-05-27 Thread Tianjia Zhang
On 2020/4/27 13:40, Huacai Chen wrote: Reviewed-by: Huacai Chen On Mon, Apr 27, 2020 at 12:35 PM Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters reta

Re: [PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-06-16 Thread Tianjia Zhang
On 2020/5/29 17:48, Paolo Bonzini wrote: On 27/05/20 08:24, Tianjia Zhang wrote: Hi Huacai, These two patches(6/7 and 7/7) should be merged into the tree of the mips architecture separately. At present, there seems to be no good way to merge the whole architecture patchs. For this