1. 30 1月, 2017 1 次提交
  2. 25 1月, 2017 1 次提交
  3. 14 11月, 2016 1 次提交
  4. 22 9月, 2016 3 次提交
    • V
      KVM: arm: vgic: Support 64-bit data manipulation on 32-bit host systems · d7d0a11e
      Vladimir Murzin 提交于
      We have couple of 64-bit registers defined in GICv3 architecture, so
      unsigned long accesses to these registers will only access a single
      32-bit part of that regitser. On the other hand these registers can't
      be accessed as 64-bit with a single instruction like ldrd/strd or
      ldmia/stmia if we run a 32-bit host because KVM does not support
      access to MMIO space done by these instructions.
      
      It means that a 32-bit guest accesses these registers in 32-bit
      chunks, so the only thing we need to do is to ensure that
      extract_bytes() always takes 64-bit data.
      Acked-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NVladimir Murzin <vladimir.murzin@arm.com>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      d7d0a11e
    • V
      KVM: arm: vgic: Fix compiler warnings when built for 32-bit · e533a37f
      Vladimir Murzin 提交于
      Well, this patch is looking ahead of time, but we'll get following
      compiler warnings as soon as we introduce vgic-v3 to 32-bit world
      
        CC      arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.o
      arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.c: In function 'vgic_mmio_read_v3r_typer':
      arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.c:184:35: warning: left shift count >= width of type [-Wshift-count-overflow]
        value = (mpidr & GENMASK(23, 0)) << 32;
                                         ^
      In file included from ./include/linux/kernel.h:10:0,
                       from ./include/asm-generic/bug.h:13,
                       from ./arch/arm/include/asm/bug.h:59,
                       from ./include/linux/bug.h:4,
                       from ./include/linux/io.h:23,
                       from ./arch/arm/include/asm/arch_gicv3.h:23,
                       from ./include/linux/irqchip/arm-gic-v3.h:411,
                       from arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.c:14:
      arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.c: In function 'vgic_v3_dispatch_sgi':
      ./include/linux/bitops.h:6:24: warning: left shift count >= width of type [-Wshift-count-overflow]
       #define BIT(nr)   (1UL << (nr))
                              ^
      arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.c:614:20: note: in expansion of macro 'BIT'
        broadcast = reg & BIT(ICC_SGI1R_IRQ_ROUTING_MODE_BIT);
                          ^
      Let's fix them now.
      Acked-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NVladimir Murzin <vladimir.murzin@arm.com>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      e533a37f
    • V
      KVM: arm64: vgic-its: Introduce config option to guard ITS specific code · 7a1ff708
      Vladimir Murzin 提交于
      By now ITS code guarded with KVM_ARM_VGIC_V3 config option which was
      introduced to hide everything specific to vgic-v3 from 32-bit world.
      We are going to support vgic-v3 in 32-bit world and KVM_ARM_VGIC_V3
      will gone, but we don't have support for ITS there yet and we need to
      continue keeping ITS away.
      Introduce the new config option to prevent ITS code being build in
      32-bit mode when support for vgic-v3 is done.
      Signed-off-by: NVladimir Murzin <vladimir.murzin@arm.com>
      Acked-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NChristoffer Dall <christoffer.dall@linaro.org>
      7a1ff708
  5. 16 8月, 2016 1 次提交
  6. 19 7月, 2016 7 次提交
  7. 20 5月, 2016 6 次提交