Linux-libre 4.14.68-gnu
[librecmc/linux-libre.git] / arch / arm / kvm / vgic-v3-coproc.c
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
14 #include <linux/kvm.h>
15 #include <linux/kvm_host.h>
16 #include <asm/kvm_emulate.h>
17 #include "vgic.h"
18
19 int vgic_v3_has_cpu_sysregs_attr(struct kvm_vcpu *vcpu, bool is_write, u64 id,
20                                  u64 *reg)
21 {
22         /*
23          * TODO: Implement for AArch32
24          */
25         return -ENXIO;
26 }
27
28 int vgic_v3_cpu_sysregs_uaccess(struct kvm_vcpu *vcpu, bool is_write, u64 id,
29                                 u64 *reg)
30 {
31         /*
32          * TODO: Implement for AArch32
33          */
34         return -ENXIO;
35 }