Re: [PATCH V4 0/3] KVM/Hyper-V: Add Hyper-V direct tlb flush support

2019-09-17 Thread Tianyu Lan
On Tue, Sep 17, 2019 at 11:28 PM Vitaly Kuznetsov wrote: > > Paolo Bonzini writes: > > > On 22/08/19 16:30, lantianyu1...@gmail.com wrote: > >> From: Tianyu Lan > >> > >> This patchset is to add Hyper-V direct tlb support in KVM. Hyper-V > >> in L0 can delegate L1 hypervisor to handle tlb flush

Re: [GIT PULL] Documentation for 5.4

2019-09-17 Thread pr-tracker-bot
The pull request you sent on Mon, 16 Sep 2019 00:19:18 -0600: > git://git.lwn.net/linux.git tags/docs-5.4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7c672abc120a55f678e5571ae2ee93f06ca4d7f9 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/us

[PATCH 1/2] kernel-doc: fix processing nested structs with attributes

2019-09-17 Thread André Almeida
The current regular expression for strip attributes of structs (and for nested ones as well) also removes all whitespaces that may surround the attribute. After that, the code will split structs and iterate for each symbol separated by comma at the end of struct definition (e.g. "} alias1, alias2;"

[PATCH 2/2] kernel-doc: add support for ____cacheline_aligned_in_smp attribute

2019-09-17 Thread André Almeida
Subroutine dump_struct uses type attributes to check if the struct syntax is valid. Then, it removes all attributes before using it for output. `cacheline_aligned_in_smp` is an attribute that is not included in both steps. Add it, since it is used by kernel structs. Signed-off-by: André Almeid

[PATCH 0/2] kernel-doc: fix bug and improve dump_struct

2019-09-17 Thread André Almeida
Hello, This patch series improves kernel-doc script at dump_struct() subroutine by solving a bug and by making the parser more complete. The current way that scripts/kernel-doc dump structs do not work for nested structs with attributes (e.g. __packed) and without type alias (e.g } alias1;). This

Re: [PATCH V4 0/3] KVM/Hyper-V: Add Hyper-V direct tlb flush support

2019-09-17 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 22/08/19 16:30, lantianyu1...@gmail.com wrote: >> From: Tianyu Lan >> >> This patchset is to add Hyper-V direct tlb support in KVM. Hyper-V >> in L0 can delegate L1 hypervisor to handle tlb flush request from >> L2 guest when direct tlb flush is enabled in L1. >> >>

[PATCH 4/4] Documentation: arm64: document support for the AMU extension

2019-09-17 Thread Ionela Voinescu
The activity monitors extension is an optional extension introduced by the ARMv8.4 CPU architecture. Add initial documentation for the AMUv1 extension: - arm64/amu.txt: AMUv1 documentation - arm64/booting.txt: system registers initialisation - arm64/cpu-feature-registers.txt: visibility to user

[PATCH 1/4] arm64: add support for the AMU extension v1

2019-09-17 Thread Ionela Voinescu
The activity monitors extension is an optional extension introduced by the ARMv8.4 CPU architecture. This implements basic support for version 1 of the activity monitors architecture, AMUv1. This support includes: - Extension detection on each CPU (boot, secondary, hotplugged) - Register interface

[PATCH 2/4] arm64: trap to EL1 accesses to AMU counters from EL0

2019-09-17 Thread Ionela Voinescu
The activity monitors extension is an optional extension introduced by the ARMv8.4 CPU architecture. In order to access the activity monitors counters safely, if desired, the kernel should detect the presence of the extension through the feature register, and mediate the access. Therefore, disable

[PATCH 3/4] arm64/kvm: disable access to AMU registers from kvm guests

2019-09-17 Thread Ionela Voinescu
Access to the AMU counters should be disabled by default in kvm guests, as information from the counters might reveal activity in other guests or activity on the host. Therefore, disable access to AMU registers from EL0 and EL1 in kvm guests by: - Hiding the presence of the extension in the featu

[PATCH 0/4] arm64: ARMv8.4 Activity Monitors support

2019-09-17 Thread Ionela Voinescu
These patches introduce support for the Activity Monitors Unit (AMU) CPU extension, an optional extension in ARMv8.4 CPUs. This provides performance counters intended for system management use. With the CONFIG_ARM64_AMU_EXTN enabled the kernel is able to safely run a mix of CPUs with and without s

Re: [PATCH V4 0/3] KVM/Hyper-V: Add Hyper-V direct tlb flush support

2019-09-17 Thread Paolo Bonzini
On 22/08/19 16:30, lantianyu1...@gmail.com wrote: > From: Tianyu Lan > > This patchset is to add Hyper-V direct tlb support in KVM. Hyper-V > in L0 can delegate L1 hypervisor to handle tlb flush request from > L2 guest when direct tlb flush is enabled in L1. > > Patch 2 introduces new cap KVM_CA

Re: [PATCH v2 02/11] coresight: etm4x: Fix input validation for sysfs.

2019-09-17 Thread Suzuki K Poulose
On 29/08/2019 22:33, Mike Leach wrote: A number of issues are fixed relating to sysfs input validation:- 1) bb_ctrl_store() - incorrect compare of bit select field to absolute value. Reworked per ETMv4 specification. 2) seq_event_store() - incorrect mask value - register has two event values.

Re: [PATCH v2 03/11] coresight: etm4x: Add missing API to set EL match on address filters

2019-09-17 Thread Suzuki K Poulose
Hi Mike, On 29/08/2019 22:33, Mike Leach wrote: TRCACATRn registers have match bits for secure and non-secure exception levels which are not accessible by the sysfs API. This adds a new sysfs parameter to enable this - addr_exlevel_s_ns. Looks good to me. Some minor nits below. Signed-off-b

[PATCH v2] Documentation: document earlycon without options for more platforms

2019-09-17 Thread Christoph Hellwig
The earlycon options without arguments is supposed to work on all device tree platforms, not just arm64. Signed-off-by: Christoph Hellwig --- Changes since v1: - add comma, fix typo Documentation/admin-guide/kernel-parameters.txt | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-

[PATCH v3] printf: add support for printing symbolic error codes

2019-09-17 Thread Rasmus Villemoes
It has been suggested several times to extend vsnprintf() to be able to convert the numeric value of ENOSPC to print "ENOSPC". This is yet another attempt. Rather than adding another %p extension, simply teach plain %p to convert ERR_PTRs. While the primary use case is if (IS_ERR(foo)) { pr_