linux-stable/arch/arm64/kvm
Sean Christopherson e539451b7e KVM: arm64: Use common code's approach for __GFP_ZERO with memory caches
Add a "gfp_zero" member to arm64's 'struct kvm_mmu_memory_cache' to make
the struct and its usage compatible with the common 'struct
kvm_mmu_memory_cache' in linux/kvm_host.h.  This will minimize code
churn when arm64 moves to the common implementation in a future patch, at
the cost of temporarily having somewhat silly code.

Note, GFP_PGTABLE_USER is equivalent to GFP_KERNEL_ACCOUNT | GFP_ZERO:

  #define GFP_PGTABLE_USER  (GFP_PGTABLE_KERNEL | __GFP_ACCOUNT)
  |
  -> #define GFP_PGTABLE_KERNEL        (GFP_KERNEL | __GFP_ZERO)

  == GFP_KERNEL | __GFP_ACCOUNT | __GFP_ZERO

versus

  #define GFP_KERNEL_ACCOUNT (GFP_KERNEL | __GFP_ACCOUNT)

    with __GFP_ZERO explicitly OR'd in

  == GFP_KERNEL | __GFP_ACCOUNT | __GFP_ZERO

No functional change intended.

Tested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200703023545.8771-18-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-09 13:29:43 -04:00
..
hyp
vgic KVM: arm64: vgic-v4: Plug race between non-residency and v4.1 doorbell 2020-06-23 11:24:39 +01:00
aarch32.c
arch_timer.c
arm.c KVM: arm64: Use common code's approach for __GFP_ZERO with memory caches 2020-07-09 13:29:43 -04:00
debug.c
fpsimd.c
guest.c
handle_exit.c
hyp-init.S KVM: arm64: Stop clobbering x0 for HVC_SOFT_RESTART 2020-07-06 11:47:02 +01:00
hyp.S
hypercalls.c
inject_fault.c
irq.h
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
mmio.c
mmu.c KVM: arm64: Use common code's approach for __GFP_ZERO with memory caches 2020-07-09 13:29:43 -04:00
perf.c
pmu-emul.c
pmu.c KVM: arm64: PMU: Fix per-CPU access in preemptible context 2020-07-06 11:47:02 +01:00
psci.c
pvtime.c KVM: arm64: pvtime: Ensure task delay accounting is enabled 2020-06-22 15:35:57 +01:00
regmap.c
reset.c KVM: arm64: Fix kvm_reset_vcpu() return code being incorrect with SVE 2020-06-22 14:39:57 +01:00
sys_regs.c
sys_regs.h
sys_regs_generic_v8.c
trace.h
trace_arm.h
trace_handle_exit.h
va_layout.c
vgic-sys-reg-v3.c