Files
kernel_google_b1c1/include/linux/swapfile.h
Petri Gynther f512ef7dda Merge 4.9.120 into android-msm-bluecross-4.9-lts
Linux 4.9.120
    x86/CPU/AMD: Have smp_num_siblings and cpu_llc_id always be present
    x86/cpu/amd: Limit cpu_core_id fixup to families older than F17h
  * x86/speculation/l1tf: Unbreak !__HAVE_ARCH_PFN_MODIFY_ALLOWED architectures
      include/asm-generic/pgtable.h
    x86/init: fix build with CONFIG_SWAP=n
  * cpu/hotplug: Non-SMP machines do not make use of booted_once
      kernel/cpu.c
    x86/smp: fix non-SMP broken build due to redefinition of apic_id_is_primary_thread
    x86/microcode: Allow late microcode loading with SMT disabled
    x86/microcode: Do not upload microcode if CPUs are offline
    tools headers: Synchronise x86 cpufeatures.h for L1TF additions
    x86/mm/kmmio: Make the tracer robust against L1TF
    x86/mm/pat: Make set_memory_np() L1TF safe
    x86/speculation/l1tf: Make pmd/pud_mknotpresent() invert
    x86/speculation/l1tf: Invert all not present mappings
  * cpu/hotplug: Fix SMT supported evaluation
      include/linux/cpu.h
      kernel/cpu.c
      kernel/smp.c
    KVM: VMX: Tell the nested hypervisor to skip L1D flush on vmentry
    x86/speculation: Use ARCH_CAPABILITIES to skip L1D flush on vmentry
    x86/speculation: Simplify sysfs report of VMX L1TF vulnerability
    KVM: VMX: support MSR_IA32_ARCH_CAPABILITIES as a feature MSR
    KVM: X86: Allow userspace to define the microcode version
    KVM: X86: Introduce kvm_get_msr_feature()
    KVM: SVM: Add MSR-based feature support for serializing LFENCE
  * KVM: x86: Add a framework for supporting MSR-based features
      include/uapi/linux/kvm.h
    Documentation/l1tf: Remove Yonah processors from not vulnerable list
    x86/KVM/VMX: Don't set l1tf_flush_l1d from vmx_handle_external_intr()
    x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d
    x86: Don't include linux/irq.h from asm/hardirq.h
    x86/KVM/VMX: Introduce per-host-cpu analogue of l1tf_flush_l1d
    x86/irq: Demote irq_cpustat_t::__softirq_pending to u16
    x86/KVM/VMX: Move the l1tf_flush_l1d test to vmx_l1d_flush()
    x86/KVM/VMX: Replace 'vmx_l1d_flush_always' with 'vmx_l1d_flush_cond'
    x86/KVM/VMX: Don't set l1tf_flush_l1d to true from vmx_l1d_flush()
  * cpu/hotplug: detect SMT disabled by BIOS
      kernel/cpu.c
    Documentation/l1tf: Fix typos
    x86/KVM/VMX: Initialize the vmx_l1d_flush_pages' content
    Documentation: Add section about CPU vulnerabilities
    x86/bugs, kvm: Introduce boot-time control of L1TF mitigations
  * cpu/hotplug: Set CPU_SMT_NOT_SUPPORTED early
      include/linux/cpu.h
      kernel/cpu.c
  * cpu/hotplug: Expose SMT control init function
      include/linux/cpu.h
      kernel/cpu.c
    x86/kvm: Allow runtime control of L1D flush
    x86/kvm: Serialize L1D flush parameter setter
    x86/kvm: Add static key for flush always
    x86/kvm: Move l1tf setup function
    x86/l1tf: Handle EPT disabled state proper
    x86/kvm: Drop L1TF MSR list approach
    x86/litf: Introduce vmx status variable
  * cpu/hotplug: Online siblings when SMT control is turned on
      kernel/cpu.c
    x86/KVM/VMX: Use MSR save list for IA32_FLUSH_CMD if required
    x86/KVM/VMX: Extend add_atomic_switch_msr() to allow VMENTER only MSRs
    x86/KVM/VMX: Separate the VMX AUTOLOAD guest/host number accounting
    x86/KVM/VMX: Add find_msr() helper function
    x86/KVM/VMX: Split the VMX MSR LOAD structures to have an host/guest numbers
    kvm: nVMX: Update MSR load counts on a VMCS switch
    x86/KVM/VMX: Add L1D flush logic
    x86/KVM/VMX: Add L1D MSR based flush
    x86/KVM/VMX: Add L1D flush algorithm
    x86/KVM/VMX: Add module argument for L1TF mitigation
  * x86/KVM: Warn user if KVM is loaded SMT and L1TF CPU bug being present
      kernel/cpu.c
  * cpu/hotplug: Boot HT siblings at least once
      kernel/cpu.c
    Revert "x86/apic: Ignore secondary threads if nosmt=force"
    x86/speculation/l1tf: Fix up pte->pfn conversion for PAE
    x86/speculation/l1tf: Protect PAE swap entries against L1TF
    x86/CPU/AMD: Move TOPOEXT reenablement before reading smp_num_siblings
    x86/cpufeatures: Add detection of L1D cache flush support.
    x86/speculation/l1tf: Extend 64bit swap file size limit
    x86/apic: Ignore secondary threads if nosmt=force
    x86/cpu/AMD: Evaluate smp_num_siblings early
    x86/CPU/AMD: Do not check CPUID max ext level before parsing SMP info
    x86/cpu/intel: Evaluate smp_num_siblings early
    x86/cpu/topology: Provide detect_extended_topology_early()
    x86/cpu/common: Provide detect_ht_early()
    x86/cpu/AMD: Remove the pointless detect_ht() call
    x86/cpu: Remove the pointless CPU printout
  * cpu/hotplug: Provide knobs to control SMT
      arch/Kconfig
      include/linux/cpu.h
      kernel/cpu.c
  * cpu/hotplug: Split do_cpu_down()
      kernel/cpu.c
  * cpu/hotplug: Make bringup/teardown of smp threads symmetric
      kernel/cpu.c
    x86/topology: Provide topology_smt_supported()
    x86/smp: Provide topology_is_primary_thread()
    x86/bugs: Move the l1tf function and define pr_fmt properly
  * x86/speculation/l1tf: Limit swap file size to MAX_PA/2
      include/linux/swapfile.h
      mm/swapfile.c
  * x86/speculation/l1tf: Disallow non privileged high MMIO PROT_NONE mappings
      include/asm-generic/pgtable.h
      mm/memory.c
      mm/mprotect.c
  * x86/speculation/l1tf: Add sysfs reporting for l1tf
      drivers/base/cpu.c
      include/linux/cpu.h
    x86/speculation/l1tf: Make sure the first page is always reserved
    x86/speculation/l1tf: Protect PROT_NONE PTEs against speculation
    x86/speculation/l1tf: Protect swap entries against L1TF
    x86/speculation/l1tf: Change order of offset/type in swap entry
    mm: x86: move _PAGE_SWP_SOFT_DIRTY from bit 7 to bit 1
    x86/speculation/l1tf: Increase 32bit PAE __PHYSICAL_PAGE_SHIFT
    x86/irqflags: Provide a declaration for native_save_fl
    kprobes/x86: Fix %p uses in error messages
    x86/speculation: Protect against userspace-userspace spectreRSB
    x86/paravirt: Fix spectre-v2 mitigations for paravirt guests
    ARM: dts: imx6sx: fix irq for pcie bridge
    IB/ocrdma: fix out of bounds access to local buffer
    mtd: nand: qcom: Add a NULL check for devm_kasprintf()
    IB/mlx4: Mark user MR as writable if actual virtual memory is writable
    IB/core: Make testing MR flags for writability a static inline function
  * proc: Fix proc_sys_prune_dcache to hold a sb reference
      fs/proc/internal.h
      fs/proc/proc_sysctl.c
      include/linux/sysctl.h
  * proc/sysctl: Don't grab i_lock under sysctl_lock.
      fs/proc/proc_sysctl.c
  * proc/sysctl: prune stale dentries during unregistering
      fs/proc/inode.c
      fs/proc/internal.h
      fs/proc/proc_sysctl.c
      include/linux/sysctl.h
  * fix __legitimize_mnt()/mntput() race
      fs/namespace.c
  * fix mntput/mntput race
      fs/namespace.c
  * make sure that __dentry_kill() always invalidates d_seq, unhashed or not
      fs/dcache.c
  * root dentries need RCU-delayed freeing
      fs/dcache.c
  * init: rename and re-order boot_cpu_state_init()
      include/linux/cpu.h
      init/main.c
      kernel/cpu.c
    scsi: sr: Avoid that opening a CD-ROM hangs with runtime power management enabled
    ACPI / LPSS: Add missing prv_offset setting for byt/cht PWM devices
    xen/netfront: don't cache skb_shinfo()
  * Mark HI and TASKLET softirq synchronous
      kernel/softirq.c
  * kasan: add no_sanitize attribute for clang builds
      include/linux/compiler-clang.h
    parisc: Define mb() and add memory barriers to assembler unlock sequences
    parisc: Enable CONFIG_MLONGCALLS by default
    tpm: fix race condition in tpm_common_write()
  * ext4: fix check to prevent initializing reserved inodes
      fs/ext4/ialloc.c
      fs/ext4/super.c

Change-Id: I44617ccbb51a9a46de5341ae2b71af65e2265580
Signed-off-by: Petri Gynther <pgynther@google.com>
2018-09-27 15:02:48 -07:00

21 lines
758 B
C

#ifndef _LINUX_SWAPFILE_H
#define _LINUX_SWAPFILE_H
/*
* these were static in swapfile.c but frontswap.c needs them and we don't
* want to expose them to the dozens of source files that include swap.h
*/
extern spinlock_t swap_lock;
extern struct plist_head swap_active_head;
extern spinlock_t swap_avail_lock;
extern struct plist_head swap_avail_head;
extern struct swap_info_struct *swap_info[];
extern int try_to_unuse(unsigned int, bool, unsigned long);
extern unsigned long generic_max_swapfile_size(void);
extern unsigned long max_swapfile_size(void);
extern int swap_ratio(struct swap_info_struct **si);
extern void setup_swap_ratio(struct swap_info_struct *p, int prio);
extern bool is_swap_ratio_group(int prio);
#endif /* _LINUX_SWAPFILE_H */