vgic-v3-coproc.c 916 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * VGIC system registers handling functions for AArch32 mode
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include <linux/kvm.h>
  14. #include <linux/kvm_host.h>
  15. #include <asm/kvm_emulate.h>
  16. #include "vgic.h"
  17. int vgic_v3_has_cpu_sysregs_attr(struct kvm_vcpu *vcpu, bool is_write, u64 id,
  18. u64 *reg)
  19. {
  20. /*
  21. * TODO: Implement for AArch32
  22. */
  23. return -ENXIO;
  24. }
  25. int vgic_v3_cpu_sysregs_uaccess(struct kvm_vcpu *vcpu, bool is_write, u64 id,
  26. u64 *reg)
  27. {
  28. /*
  29. * TODO: Implement for AArch32
  30. */
  31. return -ENXIO;
  32. }