From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FDB4C61DA3 for ; Thu, 26 Jan 2023 12:14:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236130AbjAZMOK (ORCPT ); Thu, 26 Jan 2023 07:14:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236127AbjAZMOH (ORCPT ); Thu, 26 Jan 2023 07:14:07 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58D76386F for ; Thu, 26 Jan 2023 04:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674735198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=df9zb9ds5IPmNup55FO6H71Nj0ejludr4WqF0rB5QrM=; b=Hf9IdqP25bwiqLG/A/NJ5ogs5EH2hz2sAuIQEI1kfCwyG3jPVT5dub7qudN8LOBdiPCf31 mZm7K0M0y3K8fxLWMi+i2NqDW0vm7eOVWXGdiMjogm7DjHjlps3WMrLZ+5CFGcAxC6HcfG 6CDATco2MZ+m1Ie7E0lBai+BU3KHVMI= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-93-8GjivRqXNiaSqdFTNbMAng-1; Thu, 26 Jan 2023 07:13:17 -0500 X-MC-Unique: 8GjivRqXNiaSqdFTNbMAng-1 Received: by mail-qk1-f200.google.com with SMTP id bp33-20020a05620a45a100b007090e2e1b0cso908914qkb.16 for ; Thu, 26 Jan 2023 04:13:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=df9zb9ds5IPmNup55FO6H71Nj0ejludr4WqF0rB5QrM=; b=AAYNMvcie1ijZgAxGwmsY8/uD5zRUSfMcqIiBKqZYgb6gzG86RLxDNEC0RoKWTGxSD MeY9I1hZVS/CdWsFGLB8zFi5DS+KSfuUFDKfsiU0qVFj+3M+O/UIyB/vqPhFxkL5+tNX MAhe+Ipl9wpOFi632edqOffyCVU9zrILzFZa/m7kxqUABYl2yDD3hP4V3LAKrD5lRnic pDLuvpuinYhf/LMT85OL87mbnbnFrIenPU3mKeK1XSFlpnr7VDOYVa/qoBX3SpSUj5BW wqmzwI37NUOS5mqTpCOvkAkNuLW6T6WCf1Q92RYxaNTyZK1mUojxO1ZdrkxF4H2Bhayq sGnA== X-Gm-Message-State: AO0yUKWbBc+7/TnMPS/G+JWpWkANvGDu+GMmdPmsC02/zuLccBu3Q4yO hShhuPGU4cAtrFD1Y8fFw1p5TLBZNYHTedKPWCEgDJVXmFMsGCWS6BWNwn5ITCbKX9VfQgLxbo5 8QtX3VGqMD6TQ48SlNIw6+ta8 X-Received: by 2002:a05:622a:1114:b0:3b7:ed2c:fbb7 with SMTP id e20-20020a05622a111400b003b7ed2cfbb7mr2996175qty.0.1674735197165; Thu, 26 Jan 2023 04:13:17 -0800 (PST) X-Google-Smtp-Source: AK7set+3bupg7QW2LEoYM6DfA2/q552ZZlO5ojHc9xon3id8NQsaud7k8MHTZIh/HseFB8NDInu28w== X-Received: by 2002:a05:622a:1114:b0:3b7:ed2c:fbb7 with SMTP id e20-20020a05622a111400b003b7ed2cfbb7mr2996147qty.0.1674735196947; Thu, 26 Jan 2023 04:13:16 -0800 (PST) Received: from [192.168.0.2] (ip-109-43-177-174.web.vodafone.de. [109.43.177.174]) by smtp.gmail.com with ESMTPSA id 2-20020ac82082000000b003ad373d04b6sm611659qtd.59.2023.01.26.04.13.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Jan 2023 04:13:15 -0800 (PST) Message-ID: <11397ebe-f751-06de-1275-72f7303d4e35@redhat.com> Date: Thu, 26 Jan 2023 13:13:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v6 09/14] KVM: s390: Dispatch to implementing function at top level of vm mem_op Content-Language: en-US To: Janis Schoetterl-Glausch , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Heiko Carstens , Vasily Gorbik , Alexander Gordeev Cc: David Hildenbrand , Jonathan Corbet , kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org, Paolo Bonzini , Shuah Khan , Sven Schnelle References: <20230125212608.1860251-1-scgl@linux.ibm.com> <20230125212608.1860251-10-scgl@linux.ibm.com> From: Thomas Huth In-Reply-To: <20230125212608.1860251-10-scgl@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/01/2023 22.26, Janis Schoetterl-Glausch wrote: > Instead of having one function covering all mem_op operations, > have a function implementing absolute access and dispatch to that > function in its caller, based on the operation code. > This way additional future operations can be implemented by adding an > implementing function without changing existing operations. > > Suggested-by: Janosch Frank > Signed-off-by: Janis Schoetterl-Glausch > --- > arch/s390/kvm/kvm-s390.c | 38 ++++++++++++++++++++++++-------------- > 1 file changed, 24 insertions(+), 14 deletions(-) Reviewed-by: Thomas Huth