kvm_ras.h 594 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (C) 2018 - Arm Ltd */
  3. #ifndef __ARM64_KVM_RAS_H__
  4. #define __ARM64_KVM_RAS_H__
  5. #include <linux/acpi.h>
  6. #include <linux/errno.h>
  7. #include <linux/types.h>
  8. #include <asm/acpi.h>
  9. /*
  10. * Was this synchronous external abort a RAS notification?
  11. * Returns '0' for errors handled by some RAS subsystem, or -ENOENT.
  12. */
  13. static inline int kvm_handle_guest_sea(phys_addr_t addr, u64 esr)
  14. {
  15. /* apei_claim_sea(NULL) expects to mask interrupts itself */
  16. lockdep_assert_irqs_enabled();
  17. return apei_claim_sea(NULL);
  18. }
  19. #endif /* __ARM64_KVM_RAS_H__ */