Files
android_kernel_xiaomi_sm8450/arch/arm/include/asm
Christoffer Dall 1138245ccf KVM: ARM: User space API for getting/setting co-proc registers
The following three ioctls are implemented:
 -  KVM_GET_REG_LIST
 -  KVM_GET_ONE_REG
 -  KVM_SET_ONE_REG

Now we have a table for all the cp15 registers, we can drive a generic
API.

The register IDs carry the following encoding:

ARM registers are mapped using the lower 32 bits.  The upper 16 of that
is the register group type, or coprocessor number:

ARM 32-bit CP15 registers have the following id bit patterns:
  0x4002 0000 000F <zero:1> <crn:4> <crm:4> <opc1:4> <opc2:3>

ARM 64-bit CP15 registers have the following id bit patterns:
  0x4003 0000 000F <zero:1> <zero:4> <crm:4> <opc1:4> <zero:3>

For futureproofing, we need to tell QEMU about the CP15 registers the
host lets the guest access.

It will need this information to restore a current guest on a future
CPU or perhaps a future KVM which allow some of these to be changed.

We use a separate table for these, as they're only for the userspace API.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
2013-01-23 13:29:14 -05:00
..
2012-07-05 13:06:32 +01:00
2012-10-02 08:58:07 +02:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-07-05 09:50:55 +01:00
2009-03-15 21:01:20 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-09-14 09:21:59 -05:00
2012-03-20 21:48:30 +08:00
2012-09-14 13:53:39 +00:00
2013-01-23 13:29:09 -05:00
2012-11-16 18:21:36 -08:00
2010-10-07 14:08:55 +01:00
2010-10-29 13:14:40 -05:00
2012-07-24 15:27:28 +08:00
2012-10-02 08:58:07 +02:00
2012-02-23 20:19:04 -07:00
2010-10-01 22:32:18 -04:00
2012-11-29 00:01:23 -05:00
2008-11-27 12:37:59 +00:00
2012-03-28 18:30:01 +01:00
2012-08-08 16:34:01 +00:00
2011-03-31 11:26:23 -03:00
2012-01-16 08:56:25 -06:00
2011-07-12 11:19:29 -05:00
2012-09-19 08:32:52 +01:00