Merge tag 'kvm-arm-fixes-for-v4.16-2' into HEAD
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 17:43:01 +0000 (17:43 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 17:43:01 +0000 (17:43 +0000)
Resolve conflicts with current mainline

1  2 
arch/arm/kvm/hyp/Makefile
include/kvm/arm_vgic.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/hyp/vgic-v3-sr.c
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c
virt/kvm/arm/vgic/vgic.c
virt/kvm/arm/vgic/vgic.h

@@@ -7,6 -7,9 +7,8 @@@ ccflags-y += -fno-stack-protector -DDIS
  
  KVM=../../../../virt/kvm
  
 -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v2-sr.o
+ CFLAGS_ARMV7VE                   :=$(call cc-option, -march=armv7ve)
  obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o
  obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o
  
Simple merge
Simple merge
@@@ -212,12 -211,13 +212,14 @@@ void __hyp_text __vgic_v3_save_state(st
  
        /*
         * Make sure stores to the GIC via the memory mapped interface
 -       * are now visible to the system register interface.
 +       * are now visible to the system register interface when reading the
 +       * LRs, and when reading back the VMCR on non-VHE systems.
         */
 -      if (!cpu_if->vgic_sre) {
 -              dsb(sy);
 -              isb();
 -              cpu_if->vgic_vmcr = read_gicreg(ICH_VMCR_EL2);
 +      if (used_lrs || !has_vhe()) {
-               if (!cpu_if->vgic_sre)
-                       dsb(st);
++              if (!cpu_if->vgic_sre) {
++                      dsb(sy);
++                      isb();
++              }
        }
  
        if (used_lrs) {
Simple merge
Simple merge
Simple merge
Simple merge