debug-sr.c 464 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2015 - ARM Ltd
  4. * Author: Marc Zyngier <[email protected]>
  5. */
  6. #include <hyp/debug-sr.h>
  7. #include <linux/kvm_host.h>
  8. #include <asm/kvm_hyp.h>
  9. void __debug_switch_to_guest(struct kvm_vcpu *vcpu)
  10. {
  11. __debug_switch_to_guest_common(vcpu);
  12. }
  13. void __debug_switch_to_host(struct kvm_vcpu *vcpu)
  14. {
  15. __debug_switch_to_host_common(vcpu);
  16. }
  17. u64 __kvm_get_mdcr_el2(void)
  18. {
  19. return read_sysreg(mdcr_el2);
  20. }