]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - virt/kvm/arm/vgic/vgic-mmio.h
KVM: arm/arm64: Allow GICv2 to supply a uaccess register function
[linux.git] / virt / kvm / arm / vgic / vgic-mmio.h
index ea4171acdef3b2da35326fb2ded7dd1b37b8eaa1..27924a3d87695e520664c0fbad0ea189962397e1 100644 (file)
@@ -75,7 +75,7 @@ extern struct kvm_io_device_ops kvm_io_gic_ops;
  * The _WITH_LENGTH version instantiates registers with a fixed length
  * and is mutually exclusive with the _PER_IRQ version.
  */
-#define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, bpi, acc)         \
+#define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, ur, uw, bpi, acc) \
        {                                                               \
                .reg_offset = off,                                      \
                .bits_per_irq = bpi,                                    \
@@ -83,6 +83,8 @@ extern struct kvm_io_device_ops kvm_io_gic_ops;
                .access_flags = acc,                                    \
                .read = rd,                                             \
                .write = wr,                                            \
+               .uaccess_read = ur,                                     \
+               .uaccess_write = uw,                                    \
        }
 
 #define REGISTER_DESC_WITH_LENGTH(off, rd, wr, length, acc)            \