Message ID | 20240416184421.3693802-3-atishp@rivosinc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE16413777B for <kvm@vger.kernel.org>; Tue, 16 Apr 2024 18:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293087; cv=none; b=UaEWm8oo5qESMJClVDYJauXKM9BePkdv6+YUOXbJmrgMALNBQBylHDnaWSLujU1V4a2B4tnl76563RXltz7VMDqzbyRUM3C9jCiSNr/66oCgEUkHeCXrHA+9a0DPNiOeskVMAIxW9K/G2yBK4rzezs8seCpKnyw2cjfzmqRObcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293087; c=relaxed/simple; bh=tjU5YEqQieqMxVoH/UAjG6llZvkwIlIrjBWxORyGdm4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=h3r1tNFFNTmw6vJgvwVrqPdL152xdlx9MxL3EcxmKbVQb8I1NLZiOa4By3239FuBxg1neEdSKBAvs6jsamhHMV8yqXok8KYqp0LltoNKfzaxmmCsHvhcfqGLwSVXAyibJ9LniGmO1512iNUJhM3AB6YB2zW3eAanJi1TCPhei7A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=utrstbRr; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="utrstbRr" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2a4bdef3d8eso3573323a91.1 for <kvm@vger.kernel.org>; Tue, 16 Apr 2024 11:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713293084; x=1713897884; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2nwzSC0mjOXawHhzlfTnID2LKW7HdSbdpZLlPlBet3o=; b=utrstbRrMjRRChhLFVweOitbaGiAHu9BN399M6mQ43R7/NSkrgveJU3xJXgO4vQaKn ndPp5i9j/h9Ku9haCS/419zxpUZFqIqcRiIcBjZg7WRWCXzltRd4lLhHoQUc0VE/fT5a T2jUqlApgJcLfwjD8/qAOsd4o56XGKpfTTDR+7aZJvnr9iKjgFqEhRbD2JNfmlQ7nYD7 iZvwLiIgVHOI/hB2hZovs7Xyq/0Fp5rToGFuXGSHtpqsDSxYWwVv+YnWurZkcjwhL2dr oeXrQQM7F5BMh0FpFnvpzHRM2C0boNpcV+P3C/QZFdiFgEdylg15M40xE/t0YwfhXNw8 o94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713293084; x=1713897884; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2nwzSC0mjOXawHhzlfTnID2LKW7HdSbdpZLlPlBet3o=; b=UPw9rUz6yHhg03DjB422ieA0JR7yVwAe9WWNM839pvcppp/zq2gTNIOn74eWjMaZea Ke1f92o5/IXQdvmcf3APNH5Fqk6Vu9zoNG0SYJvpWrkbmgyBVlmA1XR0hW9TFAH5RQyU i3XeJNnOjs/Ys9ihkzjEKgeWS6m5vJ/v0s2R93GfT/YARMMkQy+uyBI72bYmZZO4/jI0 0trUVEf8PqwzR6A5EFtsjxJWuHH3yR4H6rQduNKNJ2n4Q1GofoXKTcerIWgfIlbsVP3i R0Uz080HGk0H027i+TFqSzDPZw2J9uN/DHM49mQTyVQc8+8mQOY78eA4xEhCOdCLm4gi 9Gxg== X-Forwarded-Encrypted: i=1; AJvYcCUS6+ZmvO9RrBHnpWDWgzlEIqFFeoWbvVnb7ryH6340VbxBTTYvecdYFetlAxNsWRVD24lW+Im6YHRLu3bxQdAr+sFD X-Gm-Message-State: AOJu0Yx/KL0AQaqYoAIsWPmzZ2yDlUh92EF5TrY0rLNdV6rF1kouHfDP qrqodz5qm+oJrBp/b6lzsSmAXLBYE+eFEWnmV+qOd3tNPxnmZqmHB4uOtgmxoHA= X-Google-Smtp-Source: AGHT+IEoEjUu4cy1AorDUlJRRsn2LFZCsazPsjOtul090pjdnU5WLR3vSTyvWTwboMGTmVgvzKEuGA== X-Received: by 2002:a17:90a:b00d:b0:2a7:8794:bd9d with SMTP id x13-20020a17090ab00d00b002a78794bd9dmr7689700pjq.39.1713293084173; Tue, 16 Apr 2024 11:44:44 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id o19-20020a17090aac1300b002a269828bb8sm8883645pjq.40.2024.04.16.11.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 11:44:43 -0700 (PDT) From: Atish Patra <atishp@rivosinc.com> To: linux-kernel@vger.kernel.org Cc: Atish Patra <atishp@rivosinc.com>, Andrew Jones <ajones@ventanamicro.com>, =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <cleger@rivosinc.com>, Conor Dooley <conor.dooley@microchip.com>, Anup Patel <anup@brainfault.org>, Ajay Kaher <ajay.kaher@broadcom.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexandre Ghiti <alexghiti@rivosinc.com>, Juergen Gross <jgross@suse.com>, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland <mark.rutland@arm.com>, Palmer Dabbelt <palmer@dabbelt.com>, Paolo Bonzini <pbonzini@redhat.com>, Paul Walmsley <paul.walmsley@sifive.com>, Shuah Khan <shuah@kernel.org>, virtualization@lists.linux.dev, Will Deacon <will@kernel.org>, x86@kernel.org Subject: [PATCH v7 02/24] RISC-V: Add FIRMWARE_READ_HI definition Date: Tue, 16 Apr 2024 11:43:59 -0700 Message-Id: <20240416184421.3693802-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240416184421.3693802-1-atishp@rivosinc.com> References: <20240416184421.3693802-1-atishp@rivosinc.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: <kvm.vger.kernel.org> List-Subscribe: <mailto:kvm+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:kvm+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
Series |
RISC-V SBI v2.0 PMU improvements and Perf sampling in KVM guest
|
expand
|
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 6e68f8dff76b..ef8311dafb91 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -131,6 +131,7 @@ enum sbi_ext_pmu_fid { SBI_EXT_PMU_COUNTER_START, SBI_EXT_PMU_COUNTER_STOP, SBI_EXT_PMU_COUNTER_FW_READ, + SBI_EXT_PMU_COUNTER_FW_READ_HI, }; union sbi_pmu_ctr_info {