mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
The SBI MPXY extension is a platform-level functionality so KVM only needs to forward SBI MPXY calls to KVM user-space. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20251017155925.361560-4-apatel@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
35 lines
948 B
C
35 lines
948 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2025 Ventana Micro Systems Inc.
|
|
*/
|
|
|
|
#include <linux/kvm_host.h>
|
|
#include <asm/kvm_vcpu_sbi.h>
|
|
#include <asm/sbi.h>
|
|
|
|
const struct kvm_vcpu_sbi_extension vcpu_sbi_ext_experimental = {
|
|
.extid_start = SBI_EXT_EXPERIMENTAL_START,
|
|
.extid_end = SBI_EXT_EXPERIMENTAL_END,
|
|
.handler = kvm_riscv_vcpu_sbi_forward_handler,
|
|
};
|
|
|
|
const struct kvm_vcpu_sbi_extension vcpu_sbi_ext_vendor = {
|
|
.extid_start = SBI_EXT_VENDOR_START,
|
|
.extid_end = SBI_EXT_VENDOR_END,
|
|
.handler = kvm_riscv_vcpu_sbi_forward_handler,
|
|
};
|
|
|
|
const struct kvm_vcpu_sbi_extension vcpu_sbi_ext_dbcn = {
|
|
.extid_start = SBI_EXT_DBCN,
|
|
.extid_end = SBI_EXT_DBCN,
|
|
.default_disabled = true,
|
|
.handler = kvm_riscv_vcpu_sbi_forward_handler,
|
|
};
|
|
|
|
const struct kvm_vcpu_sbi_extension vcpu_sbi_ext_mpxy = {
|
|
.extid_start = SBI_EXT_MPXY,
|
|
.extid_end = SBI_EXT_MPXY,
|
|
.default_disabled = true,
|
|
.handler = kvm_riscv_vcpu_sbi_forward_handler,
|
|
};
|