[PATCH 3.12 41/63] KVM: ARM/arm64: fix broken __percpu annotation

2015-04-30 Thread Jiri Slaby
From: Will Deacon 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4000be423cb01a8d09de878bb8184511c49d4238 upstream. Running sparse results in a bunch of noisy address space mismatches thanks to the broken __percpu annotation on

[PATCH 3.12 45/63] arm/arm64: KVM: Complete WFI/WFE instructions

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 05e0127f9e362b36aa35f17b1a3d52bca9322a3a upstream. The architecture specifies that when the processor wakes up from a WFE or WFI instruction, the instruction is

[PATCH 3.12 30/63] KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses

2015-04-30 Thread Jiri Slaby
From: Andre Przywara 3.12-stable review patch. If anyone has any objections, please let me know. === commit f2ae85b2ab3776b9e4e42e5b6fa090f40d396794 upstream. Since KVM internally represents the ICFGR registers by stuffing two of them into one word, the offset for accessing the

[PATCH 3.12 36/63] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2015-04-30 Thread Jiri Slaby
From: Kim Phillips 3.12-stable review patch. If anyone has any objections, please let me know. === commit b88657674d39fc2127d62d0de9ca142e166443c8 upstream. A userspace process can map device MMIO memory via VFIO or /dev/mem, e.g., for platform device passthrough support in QEMU.

[PATCH 3.12 29/63] ARM: KVM: disable KVM in Kconfig on big-endian systems

2015-04-30 Thread Jiri Slaby
From: Will Deacon 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4e4468fac4381b92eb333d94256e7fb8350f3de3 upstream. KVM currently crashes and burns on big-endian hosts, so don't allow it to be selected until we've got that fixed. Cc: Marc

[PATCH 3.12 35/63] ARM: KVM: Unmap IPA on memslot delete/move

2015-04-30 Thread Jiri Slaby
From: Eric Auger 3.12-stable review patch. If anyone has any objections, please let me know. === commit df6ce24f2ee485c4f9a5cb610063a5eb60da8267 upstream. Currently when a KVM region is deleted or moved after KVM_SET_USER_MEMORY_REGION ioctl, the corresponding intermediate

[PATCH 3.12 40/63] KVM: ARM/arm64: fix non-const declaration of function returning const

2015-04-30 Thread Jiri Slaby
From: Will Deacon 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6951e48bff0b55d2a8e825a953fc1f8e3a34bf1c upstream. Sparse kicks up about a type mismatch for kvm_target_cpu: arch/arm64/kvm/guest.c:271:25: error: symbol 'kvm_target_cpu'

[PATCH 3.12 37/63] arm64: KVM: export demux regids as KVM_REG_ARM64

2015-04-30 Thread Jiri Slaby
From: Alex Bennée 3.12-stable review patch. If anyone has any objections, please let me know. === commit efd48ceacea78e4d4656aa0a6bf4c5b92ed22130 upstream. I suspect this is a -ECUTPASTE fault from the initial implementation. If we don't declare the register ID to be

[PATCH 3.12 47/63] KVM: ARM: vgic: plug irq injection race

2015-04-30 Thread Jiri Slaby
From: Marc Zyngier 3.12-stable review patch. If anyone has any objections, please let me know. === commit 71afaba4a2e98bb7bdeba5078370ab43d46e67a1 upstream. As it stands, nothing prevents userspace from injecting an interrupt before the guest's GIC is actually initialized. This

[PATCH 3.12 44/63] ARM/ARM64: KVM: Nuke Hyp-mode tlbs before enabling MMU

2015-04-30 Thread Jiri Slaby
From: Pranavkumar Sawargaonkar 3.12-stable review patch. If anyone has any objections, please let me know. === commit f6edbbf36da3a27b298b66c7955fc84e1dcca305 upstream. X-Gene u-boot runs in EL2 mode with MMU enabled hence we might have stale EL2 tlb enteris when we enable EL2

[PATCH 3.12 46/63] ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault()

2015-04-30 Thread Jiri Slaby
From: Ard Biesheuvel 3.12-stable review patch. If anyone has any objections, please let me know. === commit a7d079cea2dffb112e26da2566dd84c0ef1fce97 upstream. The ISS encoding for an exception from a Data Abort has a WnR bit[6] that indicates whether the Data Abort was caused by

[PATCH 3.12 49/63] arm: kvm: fix CPU hotplug

2015-04-30 Thread Jiri Slaby
From: Vladimir Murzin 3.12-stable review patch. If anyone has any objections, please let me know. === commit 37a34ac1d4775aafbc73b9db53c7daebbbc67e6a upstream. On some platforms with no power management capabilities, the hotplug implementation is allowed to return from a

[PATCH 3.12 53/63] arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()

2015-04-30 Thread Jiri Slaby
From: Ard Biesheuvel 3.12-stable review patch. If anyone has any objections, please let me know. === commit 07a9748c78cfc39b54f06125a216b67b9c8f09ed upstream. Instead of using kvm_is_mmio_pfn() to decide whether a host region should be stage 2 mapped with device attributes, add a

[PATCH 3.12 50/63] arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit c3058d5da629bc2223c488a4512b59bb4baf upstream. When creating or moving a memslot, make sure the IPA space is within the addressable range of the guest. Otherwise,

[PATCH 3.12 54/63] arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 03f1d4c17edb31b41b14ca3a749ae38d2dd6639d upstream. If a VCPU was originally started with power off (typically to be brought up by PSCI in SMP configurations), there is no

[PATCH 3.12 55/63] arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3ad8b3de526a76fbe9466b366059e4958957b88f upstream. The implementation of KVM_ARM_VCPU_INIT is currently not doing what userspace expects, namely making sure that a vcpu

[PATCH 3.12 51/63] arm: kvm: STRICT_MM_TYPECHECKS fix for user_mem_abort

2015-04-30 Thread Jiri Slaby
From: Steve Capper 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d08c629244257473450a8ba17cb8184b91e68f8 upstream. Commit: b886576 ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping introduced some code in user_mem_abort that

[PATCH 3.12 58/63] arm/arm64: KVM: Don't allow creating VCPUs after vgic_initialized

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 716139df2517fbc3f2306dbe8eba0fa88dca0189 upstream. When the vgic initializes its internal state it does so based on the number of VCPUs available at the time. If we

[PATCH 3.12 62/63] arm64: KVM: Do not use pgd_index to index stage-2 pgd

2015-04-30 Thread Jiri Slaby
From: Marc Zyngier 3.12-stable review patch. If anyone has any objections, please let me know. === commit 04b8dc85bf4a64517e3cf20e409eeaa503b15cc1 upstream. The kernel's pgd_index macro is designed to index a normal, page sized array. KVM is a bit diffferent, as we can use

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-30 Thread Łukasz Stelmach
It was <2015-04-30 czw 12:40>, when Richard Weinberger wrote: > Am 30.04.2015 um 12:19 schrieb Łukasz Stelmach: >> It was <2015-04-30 czw 11:12>, when Richard Weinberger wrote: >>> Am 30.04.2015 um 11:05 schrieb Łukasz Stelmach: Regardless, of initrd issues I feel there is a need of a local

[PATCH 3.12 63/63] arm/arm64: KVM: Keep elrsr/aisr in sync with software model

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit ae705930fca6322600690df9dc1c7d0516145a93 upstream. There is an interesting bug in the vgic code, which manifests itself when the KVM run loop has a signal pending or

[PATCH 3.12 59/63] arm/arm64: KVM: Require in-kernel vgic for the arch timers

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 05971120fca43e0357789a14b3386bb56eef2201 upstream. It is curently possible to run a VM with architected timers support without creating an in-kernel VGIC, which will

[PATCH 3.12 48/63] arm/arm64: KVM: Fix VTTBR_BADDR_MASK and pgd alloc

2015-04-30 Thread Jiri Slaby
From: Joel Schopp 3.12-stable review patch. If anyone has any objections, please let me know. === commit dbff124e29fa24aff9705b354b5f4648cd96e0bb upstream. The current aarch64 calculation for VTTBR_BADDR_MASK masks only 39 bits and not all the bits in the PA range. This is

[PATCH 3.12 61/63] arm64: KVM: Fix HCR setting for 32bit guests

2015-04-30 Thread Jiri Slaby
From: Marc Zyngier 3.12-stable review patch. If anyone has any objections, please let me know. === commit 801f6772cecea6cfc7da61aa197716ab64db5f9e upstream. Commit b856a59141b1 (arm/arm64: KVM: Reset the HCR on each vcpu when resetting the vcpu) moved the init of the HCR register

[PATCH 3.12 33/63] kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform

2015-04-30 Thread Jiri Slaby
From: Will Deacon 3.12-stable review patch. If anyone has any objections, please let me know. === commit 63afbe7a0ac184ef8485dac4914e87b211b5bfaa upstream. If the physical address of GICV isn't page-aligned, then we end up creating a stage-2 mapping of the page containing it,

[PATCH 3.12 52/63] arm64/kvm: Fix assembler compatibility of macros

2015-04-30 Thread Jiri Slaby
From: Geoff Levand 3.12-stable review patch. If anyone has any objections, please let me know. === commit 286fb1cc32b11c18da3573a8c8c37a4f9da16e30 upstream. Some of the macros defined in kvm_arm.h are useful in assembly files, but are not compatible with the assembler. Change

[PATCH 3.12 56/63] arm/arm64: KVM: Reset the HCR on each vcpu when resetting the vcpu

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit b856a59141b1066d3c896a0d0231f84dabd040af upstream. When userspace resets the vcpu using KVM_ARM_VCPU_INIT, we should also reset the HCR, because we now modify the HCR

[PATCH 3.12 11/63] arm/arm64: kvm: Set vcpu->cpu to -1 on vcpu_put

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit e9b152cb957cb194437f37e79f0f3c9d34fe53d6 upstream. The arch-generic KVM code expects the cpu field of a vcpu to be -1 if the vcpu is no longer assigned to a cpu. This is

[PATCH 3.12 57/63] arm/arm64: KVM: Introduce stage2_unmap_vm

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 957db105c99792ae8ef61ffc9ae77d910f6471da upstream. Introduce a new function to unmap user RAM regions in the stage2 page tables. This is needed on reboot (or when the

[PATCH 3.12 60/63] arm64: KVM: Fix TLB invalidation by IPA/VMID

2015-04-30 Thread Jiri Slaby
From: Marc Zyngier 3.12-stable review patch. If anyone has any objections, please let me know. === commit 55e858b75808347378e5117c3c2339f46cc03575 upstream. It took about two years for someone to notice that the IPA passed to TLBI IPAS2E1IS must be shifted by 12 bits. Clearly our

[PATCH] qla2xxx: prevent board_disable from running during EEH

2015-04-30 Thread Thadeu Lima de Souza Cascardo
Commit f3ddac1918fe963bcbf8d407a3a3c0881b47248b ("[SCSI] qla2xxx: Disable adapter when we encounter a PCI disconnect.") has introduced a code that disables the board, releasing some resources, when reading 0x. In case this happens when there is an EEH, this read will trigger EEH detection

[PATCH 3.12 14/63] KVM: ARM: Remove duplicate include

2015-04-30 Thread Jiri Slaby
From: Sachin Kamat 3.12-stable review patch. If anyone has any objections, please let me know. === commit 61466710de078c697106fa5b70ec7afc9feab520 upstream. trace.h was included twice. Remove duplicate inclusion. Signed-off-by: Sachin Kamat Signed-off-by: Christoffer Dall

[PATCH 3.12 10/63] ARM: KVM: Allow creating the VGIC after VCPUs

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit e1ba0207a1b3714bb3f000e506285ae5123cdfa7 upstream. Rework the VGIC initialization slightly to allow initialization of the vgic cpu-specific state even if the irqchip (the

Re: [PATCH 4/7] staging: fsl-mc: Upgraded MC bus driver to match MC fw 7.0.0

2015-04-30 Thread Dan Carpenter
On Tue, Apr 28, 2015 at 12:39:07PM -0500, J. German Rivera wrote: > - Migrated MC bus driver to use DPRC flib 0.6. What does this mean? What is a flib? After reading the patch, apparently it means that we can remove all the ifdefs from patch 1. :) > - Changed IRQ setup infrastructure to be

[PATCH 3.12 17/63] arm64: KVM: force cache clean on page fault when caches are off

2015-04-30 Thread Jiri Slaby
From: Marc Zyngier 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2d58b733c87689d3d5144e4ac94ea861cc729145 upstream. In order for the guest with caches off to observe data written contained in a given page, we need to make sure that page is

[PATCH 3.12 05/63] KVM: ARM: Update comments for kvm_handle_wfi

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 82ea046c95a3c3ddcfa058c8a270b9afb6e93700 upstream. Update comments to reflect what is really going on and add the TWE bit to the comments in kvm_arm.h. Also renames the

[PATCH 3.12 13/63] arm: KVM: Don't return PSCI_INVAL if waitqueue is inactive

2015-04-30 Thread Jiri Slaby
From: Christoffer Dall 3.12-stable review patch. If anyone has any objections, please let me know. === commit 478a8237f656d86d25b3e4e4bf3c48f590156294 upstream. The current KVM implementation of PSCI returns INVALID_PARAMETERS if the waitqueue for the corresponding CPU is not

[PATCH 3.12 00/63] 3.12.42-stable review

2015-04-30 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.42 release. There are 63 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Mon May 4 11:48:46 CEST 2015. Anything

Re: [PATCH 3.12 00/83] 3.12.41-stable review

2015-04-30 Thread Jiri Slaby
On 04/28/2015, 02:32 AM, Shuah Khan wrote: > Compiled and booted on my test system. No dmesg regressions. On 04/28/2015, 03:43 AM, Guenter Roeck wrote: > Build results: > total: 125 pass: 124 fail: 1 > Failed builds: > arm64:allmodconfig > > Qemu test results: > total: 27 pass: 27

Re: [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment

2015-04-30 Thread Christian Borntraeger
Am 30.04.2015 um 13:57 schrieb Preeti U Murthy: > Looks like commit : > > 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)") > > left behind a reference to ASSIGN_ONCE. Update this to WRITE_ONCE. > > Signed-off-by: Preeti U Murthy Acked-by: Christian Borntraeger >

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-04-30 Thread Mike Galbraith
On Thu, 2015-04-30 at 04:14 -0700, Daniel Phillips wrote: > Lovely sounding argument, but it is wrong because Tux3 still beats XFS > even with seek time factored out of the equation. Hm. Do you have big-storage comparison numbers to back that? I'm no storage guy (waiting for holographic

Re: [PATCHv5 20/28] mm: differentiate page_mapped() from page_mapcount() for compound pages

2015-04-30 Thread Kirill A. Shutemov
On Wed, Apr 29, 2015 at 06:20:03PM +0200, Jerome Marchand wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > > Let's define page_mapped() to be true for compound pages if any > > sub-pages of the compound page is mapped (with PMD or PTE). > > > > On other hand page_mapcount() return

Re: [PATCHv5 17/28] mm, thp: remove infrastructure for handling splitting PMDs

2015-04-30 Thread Kirill A. Shutemov
On Wed, Apr 29, 2015 at 06:14:13PM +0200, Jerome Marchand wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > > With new refcounting we don't need to mark PMDs splitting. Let's drop code > > to handle this. > > > > Arch-specific code will removed separately. > > This series only removed

Re: [PATCHv5 16/28] mm, thp: remove compound_lock

2015-04-30 Thread Kirill A. Shutemov
On Wed, Apr 29, 2015 at 06:11:08PM +0200, Jerome Marchand wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > > We are going to use migration entries to stabilize page counts. It means > > By "stabilize" do you mean "protect" from concurrent access? I've seen > that you use the same term

[PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment

2015-04-30 Thread Preeti U Murthy
Looks like commit : 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)") left behind a reference to ASSIGN_ONCE. Update this to WRITE_ONCE. Signed-off-by: Preeti U Murthy --- include/linux/compiler.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCHv5 02/28] rmap: add argument to charge compound page

2015-04-30 Thread Kirill A. Shutemov
On Wed, Apr 29, 2015 at 05:53:04PM +0200, Jerome Marchand wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > > diff --git a/mm/rmap.c b/mm/rmap.c > > index dad23a43e42c..4ca4b5cffd95 100644 > > --- a/mm/rmap.c > > +++ b/mm/rmap.c > > @@ -1048,9 +1048,9 @@ static void

[PATCH] netxen_nic: use spin_[un]lock_bh around tx_clean_lock

2015-04-30 Thread Tony Camuso
While testing this driver with DEBUG_LOCKDEP and DEBUG_SPINLOCK enabled did not produce any traces, it would be more prudent in the case of tx_clean_lock to use spin_[un]lock_bh, since this lock is manipulated in both the process and softirq contexts. This patch was tested for functionality and

Re: [PATCH 1/7] staging: fsl-mc: MC bus IRQ support

2015-04-30 Thread Dan Carpenter
On Tue, Apr 28, 2015 at 12:39:04PM -0500, J. German Rivera wrote: > Change-Id: I2a986c465989c3811de19cfe9ed0b77168250cb1 > Reviewed-on: http://git.am.freescale.net:8181/33626 > Tested-by: Review Code-CDREVIEW These things are totally useless to the rest of us. Don't add them. > diff --git

Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage

2015-04-30 Thread Mark Williamson
On Wed, Apr 29, 2015 at 10:02 PM, Linus Torvalds wrote: > On Wed, Apr 29, 2015 at 1:44 PM, Konstantin Khlebnikov > wrote: >> >> This's no longer true. After recent fixes for "anon_vma endless growing" new >> vma >> might reuse old anon_vma from grandparent vma. > > Oh well. I guess that was

Re: [Linaro-acpi] [PATCH 2/2] ACPI / scan: Parse _CCA and setup device coherency

2015-04-30 Thread Will Deacon
On Thu, Apr 30, 2015 at 12:24:12PM +0100, Arnd Bergmann wrote: > On Thursday 30 April 2015 12:07:18 Will Deacon wrote: > > So for the CPU caches we'd do the usual clean to push dirty lines to the > > device > > and (clean+)invalidate before reading data from the device. For the "other > > caches

Re: Regression: Requiring CAP_SYS_ADMIN for /proc//pagemap causes application-level breakage

2015-04-30 Thread Konstantin Khlebnikov
On Thu, Apr 30, 2015 at 12:02 AM, Linus Torvalds wrote: > On Wed, Apr 29, 2015 at 1:44 PM, Konstantin Khlebnikov > wrote: >> >> This's no longer true. After recent fixes for "anon_vma endless growing" new >> vma >> might reuse old anon_vma from grandparent vma. > > Oh well. I guess that was

[PATCH] perf probe: Ignore tail calls to probed functions

2015-04-30 Thread Naveen N. Rao
perf probe currently errors out if there are any tail calls to probed functions: [root@rhel71be]# perf probe do_fork Failed to find probe point in any functions. Error: Failed to add events. Fix this by teaching perf to ignore tail calls. Signed-off-by: Naveen N. Rao --- I'm seeing this with

[PATCH 02/13] KVM: reuse memslot in kvm_write_guest_page

2015-04-30 Thread Paolo Bonzini
From: Radim Krčmář Saves one O(log N) search. Signed-off-by: Radim Krčmář Message-Id: <1428695247-27603-1-git-send-email-rkrc...@redhat.com> Signed-off-by: Paolo Bonzini --- virt/kvm/kvm_main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/virt/kvm/kvm_main.c

[PATCH 03/13] KVM: export __gfn_to_pfn_memslot, drop gfn_to_pfn_async

2015-04-30 Thread Paolo Bonzini
gfn_to_pfn_async is used in just one place, and because of x86-specific treatment that place will need to look at the memory slot. Hence inline it into try_async_pf and export __gfn_to_pfn_memslot. The patch also switches the subsequent call to gfn_to_pfn_prot to use __gfn_to_pfn_memslot. For

[PATCH 08/13] KVM: x86: stubs for SMM support

2015-04-30 Thread Paolo Bonzini
This patch adds the interface between x86.c and the emulator: the SMBASE register, a new emulator flag, the RSM instruction. It also adds a new request bit that will be used by the KVM_SMI ioctl. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_emulate.h | 2 ++

[PATCH 05/13] KVM: x86: pass host_initiated to functions that read MSRs

2015-04-30 Thread Paolo Bonzini
SMBASE is only readable from SMM for the VCPU, but it must be always accessible if userspace is accessing it. Thus, all functions that read MSRs are changed to accept a struct msr_data; the host_initiated and index fields are pre-initialized, while the data field is filled on return.

[PATCH 06/13] KVM: x86: pass the whole hflags field to emulator and back

2015-04-30 Thread Paolo Bonzini
The hflags field will contain information about system management mode and will be useful for the emulator. Pass the entire field rather than just the guest-mode information. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_emulate.h | 5 - arch/x86/kvm/emulate.c | 6

[PATCH 12/13] KVM: x86: add KVM_MEM_X86_SMRAM memory slot flag

2015-04-30 Thread Paolo Bonzini
This adds an arch-specific memslot flag that hides slots unless the VCPU is in system management mode. Some care is needed in order to limit the overhead of x86_gfn_to_memslot when compared with gfn_to_memslot. Thankfully, we have __gfn_to_memslot and search_memslots which are the same, so we

[PATCH 09/13] KVM: x86: save/load state on SMM switch

2015-04-30 Thread Paolo Bonzini
The big ugly one. This patch adds support for switching in and out of system management mode, respectively upon receiving KVM_REQ_SMI and upon executing a RSM instruction. Both 32- and 64-bit formats are supported for the SMM state save area. Signed-off-by: Paolo Bonzini ---

[PATCH 10/13] KVM: x86: add vcpu-specific functions to read/write/translate GFNs

2015-04-30 Thread Paolo Bonzini
We need to hide SMRAM from guests not running in SMM. Therefore, all uses of kvm_read_guest* and kvm_write_guest* must be changed to check whether the VCPU is in system management mode. We need to introduce a new family of functions for this. For now, the code is just copied from

[PATCH 11/13] KVM: x86: add SMM to the MMU role

2015-04-30 Thread Paolo Bonzini
Whenever it may change, the context is reset. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 11 +-- arch/x86/kvm/mmu.c | 5 - arch/x86/kvm/x86.c | 5 - 3 files changed, 9 insertions(+), 12 deletions(-) diff --git

[PATCH 07/13] KVM: x86: API changes for SMM support

2015-04-30 Thread Paolo Bonzini
This patch includes changes to the external API for SMM support. All the changes are predicated by the availability of a new capability, KVM_CAP_X86_SMM, which is added at the end of the patch series. Signed-off-by: Paolo Bonzini --- Documentation/virtual/kvm/api.txt | 34

[PATCH 13/13] KVM: x86: advertise KVM_CAP_X86_SMM

2015-04-30 Thread Paolo Bonzini
TODO: disable if !unrestricted_guest && !emulate_invalid_guest_state. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a4192c352744..ceb50dc9e71c 100644 --- a/arch/x86/kvm/x86.c +++

[PATCH 01/13] KVM: MMU: fix for CR4.SMEP=1, CR0.WP=0?

2015-04-30 Thread Paolo Bonzini
smep_andnot_wp is initialized in kvm_init_shadow_mmu and shadow pages should not be reused for different values of it. Thus, it has to be added to the mask in kvm_mmu_pte_write. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 04/13] KVM: remove unnecessary arg from mark_page_dirty_in_slot, export it

2015-04-30 Thread Paolo Bonzini
Reviewed-by: Marcelo Tosatti Signed-off-by: Paolo Bonzini --- include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 14 ++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 647ad05b05af..1edb63dbdead 100644

[RFC PATCH 00/13] KVM: x86: SMM support

2015-04-30 Thread Paolo Bonzini
This patch series introduces system management mode support. There is still some work to do, namely: test without unrestricted guest support, test on AMD, disable the capability if !unrestricted guest and !emulate invalid guest state(*), test with a QEMU that understand KVM_MEM_X86_SMRAM, actually

[PATCH V3 3/3] mfd: da9063: MFD support for OnKey driver

2015-04-30 Thread S Twiss
From: Steve Twiss Add MFD support for the DA9063 OnKey driver Signed-off-by: Steve Twiss --- Version History Changes in V3 - The MFD code was originally in [PATCH V2 1/2]. This is now been moved into this patch [PATCH V3 3/3]. - Whitespace cleanup This patch applies against linux-next

[PATCH V3 2/3] devicetree: Add bindings for DA9063 OnKey

2015-04-30 Thread S Twiss
From: Steve Twiss Add device tree bindings for the DA9063 OnKey driver Signed-off-by: Steve Twiss --- Version History Changes in V3 - No change Changes in V2 - Remove the circular dependency comment linking patches in the main e-mail - Search and replace 'keyword' with 'property' in

[PATCH V3 1/3] input: misc: da9063: OnKey driver

2015-04-30 Thread S Twiss
From: Steve Twiss Add OnKey driver support for DA9063 Signed-off-by: Steve Twiss --- The changes made here have been taken from the DA9062 OnKey review thread. Please see https://lkml.org/lkml/2015/4/29/406 for more information on this. Version History Changes in V3 - Move the MFD code

[PATCH V3 0/3] Add OnKey support for DA9063

2015-04-30 Thread S Twiss
From: Steve Twiss This patch set adds OnKey driver support for the Dialog Semiconductor DA9063 PMIC. [PATCH V3 1/3]: kernel driver onkey support [PATCH V3 2/3]: device tree bindings document [PATCH V3 3/3]: mfd core support Thank you, Steve Twiss, Dialog Semiconductor Ltd. S Twiss (3):

Re: [PATCH 1/1 linux-next] exofs: convert simple_str to kstr

2015-04-30 Thread Alexey Dobriyan
On Thu, Apr 30, 2015 at 2:06 PM, Alexey Dobriyan wrote: >> case Opt_pid: >> + { >> + int rc; >> + >> if (0 == match_strlcpy(str, [0], sizeof(str))) >> return -EINVAL; >> - opts->pid = simple_strtoull(str, NULL, 0); >> + rc = kstrtoull(str, 0, >pid); >> + if (rc) >> + return rc; > >

Re: [PATCH] iio: acpi: Add ACPI0008 Ambient Light Sensor

2015-04-30 Thread Marek Vasut
On Thursday, April 30, 2015 at 01:27:43 PM, Gabriele Mazzotta wrote: > On Thursday 30 April 2015 11:44:36 Marek Vasut wrote: > > On Wednesday, April 29, 2015 at 05:36:32 PM, Gabriele Mazzotta wrote: > > [...] > > > > > > > I'm sorry, I've just noticed that I haven't changed the value of > > > > >

Re: [PATCH 1/2] usb: phy: msm: Use extcon framework for VBUS and ID detection

2015-04-30 Thread Ivan T. Ivanov
Ping. On Tue, 2015-04-21 at 10:28 +0300, Ivan T. Ivanov wrote: > On Thu, 2015-04-09 at 11:34 +0300, Ivan T. Ivanov wrote: > > On recent Qualcomm platforms VBUS and ID lines are not routed to > > USB PHY LINK controller. Use extcon framework to receive connect > > and disconnect ID and VBUS

Re: [RFC] scripts: kerrno.sh - errno translator

2015-04-30 Thread Bartosz Golaszewski
2015-04-30 13:04 GMT+02:00 Richard Weinberger : > On Thu, Apr 30, 2015 at 12:53 PM, Bartosz Golaszewski > wrote: >> Shell script allowing to find errno definitions and descriptions in the >> kernel source. >> >> Signed-off-by: Bartosz Golaszewski >> --- >> This is a simple script I use when

Re: [PATCH] iio: acpi: Add ACPI0008 Ambient Light Sensor

2015-04-30 Thread Gabriele Mazzotta
On Thursday 30 April 2015 11:44:36 Marek Vasut wrote: > On Wednesday, April 29, 2015 at 05:36:32 PM, Gabriele Mazzotta wrote: > [...] > > > > I'm sorry, I've just noticed that I haven't changed the value of > > > > realbits in acpi_als_channels. This makes me wonder what would be the > > > >

Re: [PATCH] x86, doc: Remove cmdline_size from list of fields to be filled in for EFI handover

2015-04-30 Thread Matt Fleming
On Sat, 28 Mar, at 12:14:09PM, Alex Smith wrote: > The cmdline_size field in setup_header is listed as read-only, and is > never read by the kernel. Therefore, there is no need for it to be set > by a boot loader implementing the EFI handover protocol, so remove it > from the list of fields

Re: [Linaro-acpi] [PATCH 2/2] ACPI / scan: Parse _CCA and setup device coherency

2015-04-30 Thread Arnd Bergmann
On Thursday 30 April 2015 12:07:18 Will Deacon wrote: > On Thu, Apr 30, 2015 at 11:47:46AM +0100, Arnd Bergmann wrote: > > On Thursday 30 April 2015 11:41:02 Will Deacon wrote: > > >- 0x0: The device is not coherent. Therefore: > > > * Cache maintenance is required for memory shared with

Re: [STLinux Kernel] [PATCH v2 1/6] ARM: STi: DT: STiH407: Fix retime pin mask for PIO5 and PIO35

2015-04-30 Thread Maxime Coquelin
On 03/18/2015 06:21 PM, Lee Jones wrote: From: Karim BEN BELGACEM This will avoid programming the retime registers when not implemented - PIO5 : no retime registers assigned to pins 6 and 7 - PIO35 : pin 7 is reserved so no retime register assigned to it Signed-off-by: Karim BEN BELGACEM

Re: Module stacking next steps

2015-04-30 Thread James Morris
On Wed, 29 Apr 2015, John Johansen wrote: > On 04/29/2015 06:55 PM, James Morris wrote: > > On Tue, 21 Apr 2015, Casey Schaufler wrote: > > > >> > >> James, do you want to take the module stacking changes in through > >> the security tree? Are there remaining objections or concerns? What > >>

Re: [STLinux Kernel] [PATCH v7 3/9] ARM: multi_v7_defconfig: Enable support for ST's LPC RTC

2015-04-30 Thread Maxime Coquelin
On 04/09/2015 04:47 PM, Lee Jones wrote: Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 138e68a..136b8da 100644 ---

Re: [STLinux Kernel] [PATCH v7 2/9] ARM: multi_v7_defconfig: Enable support for ST's LPC Watchdog

2015-04-30 Thread Maxime Coquelin
On 04/09/2015 04:47 PM, Lee Jones wrote: Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index b7e6b6fb..138e68a 100644 ---

Re: xfs: does mkfs.xfs require fancy switches to get decent performance? (was Tux3 Report: How fast can we fsync?)

2015-04-30 Thread Daniel Phillips
On Wednesday, April 29, 2015 5:20:08 PM PDT, Dave Chinner wrote: It's easy to be fast on empty filesystems. XFS does not aim to be fast in such situations - it aims to have consistent performance across the life of the filesystem. In this case, ext4, btrfs and tux3 have optimal allocation

Re: [STLinux Kernel] [PATCH v7 4/9] ARM: STi: DT: STiH407: Add Device Tree node for the LPC

2015-04-30 Thread Maxime Coquelin
On 04/09/2015 04:47 PM, Lee Jones wrote: On current ST platforms the LPC controls a number of functions. This patch enables support for the LPC Watchdog and LPC RTC devices on LPC1 and LPC2 respectively. Signed-off-by: David Paris Signed-off-by: Lee Jones ---

Re: [Linaro-acpi] [PATCH 2/2] ACPI / scan: Parse _CCA and setup device coherency

2015-04-30 Thread Will Deacon
On Thu, Apr 30, 2015 at 11:47:46AM +0100, Arnd Bergmann wrote: > On Thursday 30 April 2015 11:41:02 Will Deacon wrote: > >- 0x0: The device is not coherent. Therefore: > > * Cache maintenance is required for memory shared with the > >device that is mapped on CPUs as IWB-OWB-ISH. >

Re: [PATCH 2/3] ARM: DT: STi: STiH407: Add sata DT nodes.

2015-04-30 Thread Maxime Coquelin
On 03/31/2015 09:35 AM, Peter Griffin wrote: Now that the miphy28lp is upstream, we can add the sata dt nodes for stih407 family silicon. This has been tested on b2120 board J4 (sata0 channel). These nodes are disabled by default as a special mini pci-e to sata daughter board is required which

Re: [PATCH 1/1 linux-next] exofs: convert simple_str to kstr

2015-04-30 Thread Alexey Dobriyan
> case Opt_pid: > + { > + int rc; > + > if (0 == match_strlcpy(str, [0], sizeof(str))) > return -EINVAL; > - opts->pid = simple_strtoull(str, NULL, 0); > + rc = kstrtoull(str, 0, >pid); > + if (rc) > + return rc; kstrto*() functions were designed for proc/sysfs/sysctl/debugfs/... files

Re: [RFC] scripts: kerrno.sh - errno translator

2015-04-30 Thread Richard Weinberger
On Thu, Apr 30, 2015 at 12:53 PM, Bartosz Golaszewski wrote: > Shell script allowing to find errno definitions and descriptions in the > kernel source. > > Signed-off-by: Bartosz Golaszewski > --- > This is a simple script I use when seeing messages like: > > some_func() failed: -123

[RFC PATCH 03/22] perf: add bpf common operations.

2015-04-30 Thread Wang Nan
Add bpf syscall and related structure to perf for bpf loader use. Signed-off-by: Wang Nan --- tools/perf/perf-sys.h | 6 ++ tools/perf/util/Build | 1 + tools/perf/util/bpf.c | 39 +++ tools/perf/util/bpf.h | 22 ++ 4 files changed,

[RFC PATCH 07/22] perf bpf: iterater over elf sections to collect information.

2015-04-30 Thread Wang Nan
bpf_obj_elf_collect() is introduced to iterate over each elf sections to collection informations in eBPF object files. This function will futher enhanced to collect license, kernel version, programs, configs and map information. Signed-off-by: Wang Nan --- tools/perf/util/bpf-loader.c | 54

[RFC PATCH 05/22] perf bpf: open eBPF object file and do basic validation.

2015-04-30 Thread Wang Nan
This patch adds basic 'struct bpf_obj' which will be used for eBPF object files loading. eBPF object files are compiled by LLVM as ELF format. In this patch, libelf is used to open those files, read EHDR and do basic validation according to e_type and e_machine. All elf related staffs are grouped

[RFC PATCH 00/22] perf tools: introduce 'perf bpf' command to load eBPF programs.

2015-04-30 Thread Wang Nan
This series of patches is an approach to integrate eBPF with perf. After applying these patches, users are allowed to use following command to load eBPF program compiled by LLVM into kernel: $ perf bpf sample_bpf.o The required BPF code and the loading procedure is similar to Alexei

[RFC PATCH 13/22] perf bpf: collects relocation sections from object file.

2015-04-30 Thread Wang Nan
This patch collects relocation sections into 'struct obj'. Such sections are used for associating maps with bpf programs. Signed-off-by: Wang Nan --- tools/perf/util/bpf-loader.c | 17 + tools/perf/util/bpf-loader.h | 5 + 2 files changed, 22 insertions(+) diff --git

[RFC PATCH 12/22] perf bpf: collect bpf programs from object files.

2015-04-30 Thread Wang Nan
This patch collects all programs in an object file and links them into a list for further processing. 'struct bpf_perf_prog' is used for representing each eBPF program. 'bpf_prog' should be a better name, but it has been used by linux/filter.h. Although it is a kernel space name, I still prefer to

[RFC PATCH 02/22] perf: bpf: prepare: add __aligned_u64 to types.h.

2015-04-30 Thread Wang Nan
Following patches will introduce linux/bpf.h to perf, which requires definition of __aligned_u64. This patch add it to the common types.h for tools. Signed-off-by: Wang Nan --- tools/include/linux/types.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/types.h

[RFC PATCH 11/22] perf bpf: collect symbol table in object files.

2015-04-30 Thread Wang Nan
This patch collects symbols section. This section is useful when linking ELF maps. Signed-off-by: Wang Nan --- tools/perf/util/bpf-loader.c | 11 +++ tools/perf/util/bpf-loader.h | 1 + 2 files changed, 12 insertions(+) diff --git a/tools/perf/util/bpf-loader.c

[RFC PATCH 15/22] perf bpf: config eBPF programs using config section.

2015-04-30 Thread Wang Nan
This patch uses bpf_perf_prog_config() to config perf programs using config section. In bpf_obj_config(), splits config section into lines and parse config string line by line. This patch and previous patch should config all eBPF programs. This patch also makes bpf_obj_validate() to check

[RFC PATCH 04/22] perf tools: Add new 'perf bpf' command.

2015-04-30 Thread Wang Nan
Adding new 'perf bpf' command to provide eBPF program loading and management support. Signed-off-by: Wang Nan --- tools/perf/Build | 1 + tools/perf/Documentation/perf-bpf.txt | 18 ++ tools/perf/builtin-bpf.c | 63 +++

[RFC PATCH 14/22] perf bpf: config eBPF programs based on their names.

2015-04-30 Thread Wang Nan
This patch partially implements bpf_obj_config(), which is used for define k(ret)probe positions which will be attached eBPF programs. parse_perf_probe_command() is used to do the main parsing works. Parsing result is stored into a global array. This is because add_perf_probe_events() is

[RFC PATCH 20/22] perf bpf: clean elf memory after loading.

2015-04-30 Thread Wang Nan
After all eBPF programs in an object file are loaded, related ELF information is useless. Close the object file and free those memory. Signed-off-by: Wang Nan --- tools/perf/util/bpf-loader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/bpf-loader.c

[RFC PATCH 01/22] perf: probe: avoid segfault if passed with ''.

2015-04-30 Thread Wang Nan
Since parse_perf_probe_point() deals with a user passed argument, we should not assume it to be a valid string. Without this patch, if pass '' to perf probe, a segfault raises: $ perf probe -a '' Segmentation fault This patch checks argument of parse_perf_probe_point() before string

<    2   3   4   5   6   7   8   9   10   11   >