Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2103918pxb; Fri, 8 Oct 2021 00:28:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqnXLfyQ+POB9o2pNSXhNqusKuOYbSdM4pIpRIZ+Ye60l0Nqqysbnns53VBvisu3mvF0FJ X-Received: by 2002:a17:90b:1258:: with SMTP id gx24mr10734622pjb.205.1633678081442; Fri, 08 Oct 2021 00:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633678081; cv=none; d=google.com; s=arc-20160816; b=f+vPQZEO8FhNyAWt0/wAbQQNAqZ6Tn3Uu5o54wZ++gqZq8XqZX2TJkqf0xZrnfpN/I HtBwbfza2VDc0EsQhhPduc+lxGVZv+fyxYQPTMPav3liZrEQ5rM53vfpD4dFOFjrHBBP G6cAhcji2X3jtH/1m1B+MfmaNKG6r5Axk9XKrQMb3pvXkKUEBCDIEYTQH71+KWByIsHB +3/HTryoshj5+SrOh4/VIJTQeRQ7v6Y+mIORPGmfE23FZihB5yEp2XU5Gv6tvg/e9M9K 6v03J3EkiBKRGvxCypImsHptVVhGr55xVEvjsVLZmz5tKorus/NWYGYnJrmeMJtdFtNf m6GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wrRRjHrMBPuEyYQ9nABVBskOpOCiCccfhJMKB+/G8Zw=; b=v9BwNGnLNVhOWmqGCPyUb1qBGcZV1H3jBrFjOGQRUcmyFMPxOGHc80w9X/WQODs4Rg EMU5yQ2acDK3MNA0X1NGLnFIOrwfPW6jonfeT7slz8fLG/WF8xBi86qEdTARyBNjO+Hd 3bBw6oVQOcV/0hGnTve/qU4/iQtkvyoKyEyKgeiGW8NJUlCgQtmvC0FiWPmf3bm549TY B1VwpaERM9kQjq+VKqVguUw3MS8TCxqRadaUip2oEITVocJq/lp4lfIbLfflMyba8vxD zUWbnLixExv/r9iOmLNCE/J4ZwBBAtOTQPO585fwuJZLokMPZ1txvyU9r61CKK6MxQJE +rdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rbrg2MAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si2040717plr.426.2021.10.08.00.27.48; Fri, 08 Oct 2021 00:28:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rbrg2MAE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbhJHH1e (ORCPT + 99 others); Fri, 8 Oct 2021 03:27:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:44342 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbhJHH1b (ORCPT ); Fri, 8 Oct 2021 03:27:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633677936; 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=wrRRjHrMBPuEyYQ9nABVBskOpOCiCccfhJMKB+/G8Zw=; b=Rbrg2MAE8Gh56SqG7CgVbecWbILF3t7z4PuCCz/buxH+zunqtVEVAZgoUy26B6JxTsXuMg 5K7bab8TXx8pvb4Vlc3m9TrgVn6m7BtG+YixDCVIvQ4ulspse97pXTqiY/9bsAU95O+tQw SCNe3UVjyftDEogKPaeMlKSpfMb1s8w= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-237-JGhutHXONcyaMOgo_dKP4A-1; Fri, 08 Oct 2021 03:25:35 -0400 X-MC-Unique: JGhutHXONcyaMOgo_dKP4A-1 Received: by mail-wr1-f72.google.com with SMTP id r25-20020adfab59000000b001609ddd5579so6567736wrc.21 for ; Fri, 08 Oct 2021 00:25:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=wrRRjHrMBPuEyYQ9nABVBskOpOCiCccfhJMKB+/G8Zw=; b=LbpGiiZzOgAMquaGwwgNOzbRjgTiMcIUUjRx90lUxQexNQJ2seTgADsrPEBvm21w5n zjtSa9x3+H0eZQZ5iQWjDd9wJqtqjbbqglv5q5hIR4DgXnmgulP5FFqYEB5AEdlCyw2R m7HcDsgUdadqp/2VwJFdc4ptiEh9b0XogW/RpDEKBYknSU/AnKREp8rdtOqbc9e6Slb4 YS7gOZF2VV/PXq/3jQVsRgMfMDIVV9essEN91fs5oqJnjxhc1gdhfNkUYd7iHynL16ju HMrALHLvroqG+MUbLVByOdzau6NWF9OMJll66l1yObZhvRKwQozAI3Ehg/5aXFAzx5wa 65jA== X-Gm-Message-State: AOAM532ewg2+jeQvaByNoDzdOEopth8OOlYd4JtoW7tRTRdLeX4L6Ov9 unTKKAqP5fZ8VceBYvFQ3TDZAoSWxThytIBg9m+lfGY7sAMiCqIWTCaLfoEipkmS9jEljPDiHZA ReVi8ttc/3rH8jgz+xB1k1gfd X-Received: by 2002:a05:600c:4f42:: with SMTP id m2mr1623945wmq.151.1633677934627; Fri, 08 Oct 2021 00:25:34 -0700 (PDT) X-Received: by 2002:a05:600c:4f42:: with SMTP id m2mr1623928wmq.151.1633677934392; Fri, 08 Oct 2021 00:25:34 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id k9sm1554498wrz.22.2021.10.08.00.25.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 00:25:33 -0700 (PDT) Message-ID: <1616f9d2-5530-1266-6734-b5d64cb20658@redhat.com> Date: Fri, 8 Oct 2021 09:24:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v3 1/5] RISC-V: Mark the existing SBI v0.1 implementation as legacy Content-Language: en-US To: Atish Patra , linux-kernel@vger.kernel.org Cc: Anup Patel , Kefeng Wang , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Vincent Chen References: <20211008032036.2201971-1-atish.patra@wdc.com> <20211008032036.2201971-2-atish.patra@wdc.com> From: Paolo Bonzini In-Reply-To: <20211008032036.2201971-2-atish.patra@wdc.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 08/10/21 05:20, Atish Patra wrote: > The existing SBI specification impelementation follows v0.1 or legacy > specification. The latest specification known as v0.2 allows more > scalability and performance improvements. > > Rename the existing implementation as legacy and provide a way to allow > future extensions. > > Signed-off-by: Atish Patra > --- > arch/riscv/include/asm/kvm_vcpu_sbi.h | 29 +++++ > arch/riscv/kvm/vcpu_sbi.c | 149 ++++++++++++++++++++------ > 2 files changed, 148 insertions(+), 30 deletions(-) > create mode 100644 arch/riscv/include/asm/kvm_vcpu_sbi.h It's bikeshedding I know, but still: every time somebody calls something "legacy", a kitten dies. Please use kvm_sbi_ext_0_1_handler and vcpu_sbi_ext_0_1. Paolo