2026-01-29 22:25:33 +08:00

39 lines
915 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SW64_KVM_ASM_H
#define _ASM_SW64_KVM_ASM_H
#define SW64_KVM_EXIT_HOST_INTR 0
#define SW64_KVM_EXIT_IO 1
#define SW64_KVM_MIGRATION_SET_DIRTY 2
#define SW64_KVM_MIGRATION_SET_DIRTY_HM 3
#define SW64_KVM_EXIT_HALT 10
#define SW64_KVM_EXIT_SHUTDOWN 12
#define SW64_KVM_EXIT_TIMER 13
#define SW64_KVM_EXIT_IPI 14
#define SW64_KVM_EXIT_STOP 16
#define SW64_KVM_EXIT_RESTART 17
#define SW64_KVM_EXIT_APT_FAULT 18
#define SW64_KVM_EXIT_FATAL_ERROR 22
#define SW64_KVM_EXIT_MEMHOTPLUG 23
#define SW64_KVM_EXIT_DEBUG 24
#define kvm_sw64_exception_type \
{0, "HOST_INTR" }, \
{1, "IO" }, \
{10, "HALT" }, \
{12, "SHUTDOWN" }, \
{13, "TIMER" }, \
{14, "IPI" }, \
{16, "STOP" }, \
{17, "RESTART" }, \
{18, "APT_FAULT" }, \
{22, "FATAL_ERROR" }, \
{23, "MEMHOTPLUG" }, \
{24, "DEBUG" }
#include <asm/csr.h>
#endif /* _ASM_SW64_KVM_ASM_H */