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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB70FD3ABD3 for ; Mon, 11 Nov 2024 17:43:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAYRY-0006n4-2Y; Mon, 11 Nov 2024 12:43:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAYRV-0006mV-7r for qemu-riscv@nongnu.org; Mon, 11 Nov 2024 12:43:13 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAYRR-0003Cf-QY for qemu-riscv@nongnu.org; Mon, 11 Nov 2024 12:43:12 -0500 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2e2ad9825a7so3597847a91.0 for ; Mon, 11 Nov 2024 09:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1731346958; x=1731951758; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CyWLg+N7kQjN9j0MfMW765Pul5jARnf7YRAep4pEPGQ=; b=kNRuq6LD6XJpz5hf3suijy45sAHC0epbQedD3y11HRGvJqE9CHl456mLFokOrtd/lE O0XXVaKKwRvZAIlthFYVh1G3tSVmaRvh5pS7svlhwK1q5FWkk/b+4f0RG8CvrXneyXG8 EMYSZloyuwfC6X3tvj1B7dWw/iZixqr+KMcGBsuw+9PWJ1qqHMeH1sNWyuLPgLRa0RcO WdW43B4mbp15ZMiuXz7F4txJjzPR8VEDlxN5Ia7hdBu++Xvemnp17hRn8vx1TIqiSIAr CK0Cogqn/bLQSMogRpMgFOy+VP2oi53pd/51rDNNMxIP3C+Yxy0IKKbGwAYhOyu1me8C +z5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731346958; x=1731951758; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CyWLg+N7kQjN9j0MfMW765Pul5jARnf7YRAep4pEPGQ=; b=vGZayJoZbHN94TgMvK2+tTVDm4G7lPkmUKBxXcJ1gK8+MPsQIxOAza6c+qgbIZoKSc 0pNqwykWWu6PGHNEIOKh/S+Xxn52j/Xf39lslRZEGbbN49HWQ66LXFP+fcj/tbFDd23Y vhQJRKXyS6THjQqbuYbdVK7ZM8jjT6dRYBfhy9CMWIcADZVmD26NmjdlpxSpErKEScUO AuFqeBcH9BiH2yaWkGIUJ36yR9rGeIXG/9UrbKbz3DQJmhi+8xAE7N2XtL1qzyLjyhwU RXUhQGxvXHngLpLb1LlJW7m9vdEhyWQBQPkbciOIp6OMgqtzVVdZjEf0KqJKsnZ0TPQk YVgQ== X-Forwarded-Encrypted: i=1; AJvYcCU3pwLBH39ke9oFONpVmADzxBaleT6comQpb1pWTy7TG88WyYMG9gsOaVUx/SqXVDuKSRGNP2M0Ts1w@nongnu.org X-Gm-Message-State: AOJu0YymM0V1nSyD0Kzqm+LbVjpXDZyY8I5H1WQQqSKWumemkBILhEjF rEGIMK5kQIlqnxwtsk2ywZMEoQbsuMHf8aQiJyeetTECAqF2F+eGewtXQ9uEtXE= X-Google-Smtp-Source: AGHT+IFsHqo9fg/H1YJEm1NoPek3VSRKntZF4MruRGbI3Hpra0mEn1e1T2/uojQ+3/LSJktLMtHS1g== X-Received: by 2002:a17:90b:4a01:b0:2e9:2e69:ee10 with SMTP id 98e67ed59e1d1-2e9b173d95cmr18526911a91.19.1731346958629; Mon, 11 Nov 2024 09:42:38 -0800 (PST) Received: from [192.168.68.110] ([189.79.22.174]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e99a5f8df7sm11031029a91.41.2024.11.11.09.42.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Nov 2024 09:42:38 -0800 (PST) Message-ID: Date: Mon, 11 Nov 2024 14:42:32 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/5] target/riscv: Add svukte extension capability variable To: "Fea.Wang" , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Liu Zhiwei , Frank Chang , Jim Shu References: <20241108085239.2927152-1-fea.wang@sifive.com> <20241108085239.2927152-2-fea.wang@sifive.com> Content-Language: en-US From: Daniel Henrique Barboza In-Reply-To: <20241108085239.2927152-2-fea.wang@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=dbarboza@ventanamicro.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 11/8/24 5:52 AM, Fea.Wang wrote: > Refer to the draft of svukte extension from: > https://github.com/riscv/riscv-isa-manual/pull/1564 > > Svukte provides a means to make user-mode accesses to supervisor memory > raise page faults in constant time, mitigating attacks that attempt to > discover the supervisor software's address-space layout. > > Signed-off-by: Fea.Wang > Reviewed-by: Frank Chang > Reviewed-by: Jim Shu > --- Reviewed-by: Daniel Henrique Barboza > target/riscv/cpu_cfg.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/target/riscv/cpu_cfg.h b/target/riscv/cpu_cfg.h > index 59d6fc445d..d8771ca641 100644 > --- a/target/riscv/cpu_cfg.h > +++ b/target/riscv/cpu_cfg.h > @@ -84,6 +84,7 @@ struct RISCVCPUConfig { > bool ext_svnapot; > bool ext_svpbmt; > bool ext_svvptc; > + bool ext_svukte; > bool ext_zdinx; > bool ext_zaamo; > bool ext_zacas;