mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
The KVM ISA extension related checks are not VCPU specific and should be factored out of vcpu_onereg.c into separate sources. Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Reviewed-by: Radim Krčmář <radim.krcmar@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260120080013.2153519-6-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
21 lines
537 B
C
21 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2026 Qualcomm Technologies, Inc.
|
|
*/
|
|
|
|
#ifndef __KVM_RISCV_ISA_H
|
|
#define __KVM_RISCV_ISA_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
unsigned long kvm_riscv_base2isa_ext(unsigned long base_ext);
|
|
|
|
int __kvm_riscv_isa_check_host(unsigned long ext, unsigned long *base_ext);
|
|
#define kvm_riscv_isa_check_host(ext) \
|
|
__kvm_riscv_isa_check_host(KVM_RISCV_ISA_EXT_##ext, NULL)
|
|
|
|
bool kvm_riscv_isa_enable_allowed(unsigned long ext);
|
|
bool kvm_riscv_isa_disable_allowed(unsigned long ext);
|
|
|
|
#endif
|