]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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

index 1964111c984a318a50479d97e021b6646f989681,63d6b404d88e39bf581c0434aff5d6b0e951279f..7fc0638f263ac975dc3a4bddd0c1ec00adc2348f
@@@ -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
index b13cbd41dbc399f19410e8ca9e9252d729856953,b89ce5432214358e594c536bedf371a1b986e5ae..616e5a433ab0f76adfb0a12e0f9f436912352f38
@@@ -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