lkml.org 
[lkml]   [2020]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] KVM: Optimize kvm_arch_vcpu_ioctl_run function
    On Thu, 16 Apr 2020 13:10:57 +0800
    Tianjia Zhang <tianjia.zhang@linux.alibaba.com> wrote:

    > 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 vcpu structure, so the parameter
    > 'kvm_run' is redundant.
    >
    > This patch simplify the function definition, removes the extra

    s/simplify/simplifies/

    > 'kvm_run' parameter, and extract it from the 'kvm_vcpu' structure

    s/extract/extracts/

    > if necessary.
    >
    > Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
    > ---
    >
    > v2 change:
    > remove 'kvm_run' parameter and extract it from 'kvm_vcpu'
    >
    > arch/mips/kvm/mips.c | 3 ++-
    > arch/powerpc/kvm/powerpc.c | 3 ++-
    > arch/s390/kvm/kvm-s390.c | 3 ++-
    > arch/x86/kvm/x86.c | 11 ++++++-----
    > include/linux/kvm_host.h | 2 +-
    > virt/kvm/arm/arm.c | 6 +++---
    > virt/kvm/kvm_main.c | 2 +-
    > 7 files changed, 17 insertions(+), 13 deletions(-)
    >

    Reviewed-by: Cornelia Huck <cohuck@redhat.com>

    \
     
     \ /
      Last update: 2020-04-16 10:33    [W:5.602 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site