s390-hypercall.h 772 B

12345678910111213141516171819202122232425
  1. /*
  2. * Support for QEMU/KVM hypercalls on s390x
  3. *
  4. * Copyright IBM Corp. 2012, 2017
  5. * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
  6. *
  7. * This work is licensed under the terms of the GNU GPL, version 2 or (at
  8. * your option) any later version. See the COPYING file in the top-level
  9. * directory.
  10. */
  11. #ifndef HW_S390_HYPERCALL_H
  12. #define HW_S390_HYPERCALL_H
  13. #include "cpu.h"
  14. #define DIAG500_VIRTIO_NOTIFY 0 /* legacy, implemented as a NOP */
  15. #define DIAG500_VIRTIO_RESET 1 /* legacy */
  16. #define DIAG500_VIRTIO_SET_STATUS 2 /* legacy */
  17. #define DIAG500_VIRTIO_CCW_NOTIFY 3 /* KVM_S390_VIRTIO_CCW_NOTIFY */
  18. #define DIAG500_STORAGE_LIMIT 4
  19. void handle_diag_500(S390CPU *cpu, uintptr_t ra);
  20. #endif /* HW_S390_HYPERCALL_H */