Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (C) 2018 - Arm Ltd */
0003 
0004 #ifndef __ARM64_KVM_RAS_H__
0005 #define __ARM64_KVM_RAS_H__
0006 
0007 #include <linux/acpi.h>
0008 #include <linux/errno.h>
0009 #include <linux/types.h>
0010 
0011 #include <asm/acpi.h>
0012 
0013 /*
0014  * Was this synchronous external abort a RAS notification?
0015  * Returns '0' for errors handled by some RAS subsystem, or -ENOENT.
0016  */
0017 static inline int kvm_handle_guest_sea(phys_addr_t addr, u64 esr)
0018 {
0019     /* apei_claim_sea(NULL) expects to mask interrupts itself */
0020     lockdep_assert_irqs_enabled();
0021 
0022     return apei_claim_sea(NULL);
0023 }
0024 
0025 #endif /* __ARM64_KVM_RAS_H__ */