Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm64 / include / asm / kvm_ras.h
blob87e10d9a635b55016596a412b3b79b0951d10085
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2018 - Arm Ltd */
4 #ifndef __ARM64_KVM_RAS_H__
5 #define __ARM64_KVM_RAS_H__
7 #include <linux/acpi.h>
8 #include <linux/errno.h>
9 #include <linux/types.h>
11 #include <asm/acpi.h>
14 * Was this synchronous external abort a RAS notification?
15 * Returns '0' for errors handled by some RAS subsystem, or -ENOENT.
17 static inline int kvm_handle_guest_sea(phys_addr_t addr, u64 esr)
19 /* apei_claim_sea(NULL) expects to mask interrupts itself */
20 lockdep_assert_irqs_enabled();
22 return apei_claim_sea(NULL);
25 #endif /* __ARM64_KVM_RAS_H__ */