[RESEND PATCH V8 04/11] KVM: Document Memory ROE

2019-01-21 Thread Ahmed Abd El Mawgood
ROE version documented here is implemented in the next 2 patches Signed-off-by: Ahmed Abd El Mawgood --- Documentation/virtual/kvm/hypercalls.txt | 40 1 file changed, 40 insertions(+) diff --git a/Documentation/virtual/kvm/hypercalls.txt b/Documentation/virtual/kvm/hyp

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-01-21 Thread hpa
On January 20, 2019 5:45:53 PM PST, Joel Fernandes wrote: >On Sun, Jan 20, 2019 at 01:58:15PM -0800, h...@zytor.com wrote: >> On January 20, 2019 8:10:03 AM PST, Joel Fernandes > wrote: >> >On Sat, Jan 19, 2019 at 11:01:13PM -0800, h...@zytor.com wrote: >> >> On January 19, 2019 2:36:06 AM PST, G

Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

2019-01-21 Thread hpa
On January 20, 2019 8:10:03 AM PST, Joel Fernandes wrote: >On Sat, Jan 19, 2019 at 11:01:13PM -0800, h...@zytor.com wrote: >> On January 19, 2019 2:36:06 AM PST, Greg KH > wrote: >> >On Sat, Jan 19, 2019 at 02:28:00AM -0800, Christoph Hellwig wrote: >> >> This seems like a pretty horrible idea an

[RESEND PATCH V8 10/11] KVM: Log ROE violations in system log

2019-01-21 Thread Ahmed Abd El Mawgood
Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_main.c| 3 ++- virt/kvm/roe.c | 25 + virt/kvm/roe_generic.h | 3 ++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d92d300539..b3dc7255b0 1

Re: [PATCH] doc:process: add missing internal link in stable-kernel-rules

2019-01-21 Thread Jonathan Corbet
On Sun, 20 Jan 2019 12:16:29 +0100 Federico Vaga wrote: > Keep consistent the document. In the document, option references > are always linked, except for the one I fixed with this patch > > Signed-off-by: Federico Vaga Applied, thanks. jon

Re: [PATCH v5] coding-style: Clarify the expectations around bool

2019-01-21 Thread Jonathan Corbet
On Fri, 18 Jan 2019 15:50:47 -0700 Jason Gunthorpe wrote: > There has been some confusion since checkpatch started warning about bool > use in structures, and people have been avoiding using it. > > Many people feel there is still a legitimate place for bool in structures, > so provide some guid

Re: [PATCH v2 1/1] doc: networking: integrate scaling document into doc tree

2019-01-21 Thread Jonathan Corbet
On Fri, 18 Jan 2019 21:38:32 +0100 Otto Sabart wrote: > Convert scaling document into reStructuredText and add reference to > scaling document into main table of contents in network documentation. > > There are no semantic changes. > > There are no references to "scaling.txt" file. Whole kernel

Re: [PATCH] doc:it_IT: add translations in process/

2019-01-21 Thread Federico Vaga
On Monday, January 21, 2019 2:56:17 AM CET Jonathan Corbet wrote: > On Sat, 19 Jan 2019 23:13:41 +0100 > > Federico Vaga wrote: > > This patch adds the Italian translation for the following documents > > in Documentation/process: > > > > - applying-patches > > - submit-checklist > > - submitting

Re: [PATCH] doc:process: remove note from 'stable api nonsense'

2019-01-21 Thread Federico Vaga
On Monday, January 21, 2019 2:43:38 AM CET Jonathan Corbet wrote: > On Fri, 18 Jan 2019 22:58:04 +0100 > > Federico Vaga wrote: > > The link referred by the note can't be retrieved: this patch just > > remove that old note. > > > > Signed-off-by: Federico Vaga > > --- > > > > Documentation/pr

Re: [PATCH] Documentation: DMA-API: fix two typos

2019-01-21 Thread Jonathan Corbet
On Fri, 18 Jan 2019 13:38:22 + Corentin Labbe wrote: > This patch fixes two typos, a missing "e" and dma-api/driver_filter was > incorrectly typed dma-api/driver-filter. > > Signed-off-by: Corentin Labbe So I've applied this, but... > Documentation/DMA-API.txt | 4 ++-- > 1 file changed,

[RESEND PATCH V8 03/11] KVM: X86: Add helper function to convert SPTE to GFN

2019-01-21 Thread Ahmed Abd El Mawgood
Signed-off-by: Ahmed Abd El Mawgood --- arch/x86/kvm/mmu.c | 7 +++ arch/x86/kvm/mmu.h | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 098df7d135..bbfe3f2863 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -1053,6 +1053,13 @@ sta

Re: [PATCH] doc:process: remove note from 'stable api nonsense'

2019-01-21 Thread Greg KH
On Mon, Jan 21, 2019 at 09:14:00AM +0100, Federico Vaga wrote: > On Monday, January 21, 2019 2:43:38 AM CET Jonathan Corbet wrote: > > On Fri, 18 Jan 2019 22:58:04 +0100 > > > > Federico Vaga wrote: > > > The link referred by the note can't be retrieved: this patch just > > > remove that old note

[RESEND PATCH V8 05/11] KVM: Create architecture independent ROE skeleton

2019-01-21 Thread Ahmed Abd El Mawgood
This patch introduces a hypercall that can assist against subset of kernel rootkits, it works by place readonly protection in shadow PTE. The end result protection is also kept in a bitmap for each kvm_memory_slot and is used as reference when updating SPTEs. The whole goal is to protect the guest

[RESEND PATCH V8 11/11] KVM: ROE: Store protected chunks in red black tree

2019-01-21 Thread Ahmed Abd El Mawgood
The old way of storing protected chunks was a linked list. That made linear overhead when searching for chunks. When reaching 2000 chunk, The time taken two read the last chunk was about 10 times slower than the first chunk. This patch stores the chunks as tree for faster search. Signed-off-by: Ah

[RESEND PATCH V8 02/11] KVM: X86: Add arbitrary data pointer in kvm memslot iterator functions

2019-01-21 Thread Ahmed Abd El Mawgood
This will help sharing data into the slot_level_handler callback. In my case I need to a share a counter for the pages traversed to use it in some bitmap. Being able to send arbitrary memory pointer into the slot_level_handler callback made it easy. Signed-off-by: Ahmed Abd El Mawgood --- arch/x

[RESEND PATCH V8 01/11] KVM: State whether memory should be freed in kvm_free_memslot

2019-01-21 Thread Ahmed Abd El Mawgood
The conditions upon which kvm_free_memslot are kind of ad-hock, it will be hard to extend memslot with allocatable data that needs to be freed, so I replaced the current mechanism by clear flag that states if the memory slot should be freed. Signed-off-by: Ahmed Abd El Mawgood --- virt/kvm/kvm_m

[RESEND PATCH V8 0/11] KVM: X86: Introducing ROE Protection Kernel Hardening

2019-01-21 Thread Ahmed Abd El Mawgood
-- Summary -- ROE is a hypercall that enables host operating system to restrict guest's access to its own memory. This will provide a hardening mechanism that can be used to stop rootkits from manipulating kernel static data structures and code. Once a memory region is protected the guest kernel c

[PATCH v2 3/3] sched: Document Energy Aware Scheduling

2019-01-21 Thread Quentin Perret
Add some documentation detailing the main design points of EAS, as well as a list of its dependencies. Parts of this documentation are taken from Morten Rasmussen's original EAS posting: https://lkml.org/lkml/2015/7/7/754 Reviewed-by: Qais Yousef Co-authored-by: Morten Rasmussen Signed-off-by:

[PATCH v2 2/3] PM / EM: Document the Energy Model framework

2019-01-21 Thread Quentin Perret
Introduce a documentation file summarizing the key design points and APIs of the newly introduced Energy Model framework. Reviewed-by: Juri Lelli Signed-off-by: Quentin Perret --- Juri: Although I did change some things to the doc in v2 (translated to rst mainly), I kept your 'Reviewed-by' as

[PATCH v2 0/3] Documentation: Explain EAS and EM

2019-01-21 Thread Quentin Perret
The recently introduced Energy Aware Scheduling (EAS) feature relies on a large set of concepts, assumptions, and design choices that are probably not obvious for an outsider. Moreover, enabling EAS on a particular platform isn't straightforward because of all its dependencies. This series tries to

[PATCH v2 1/3] PM / EM: Fix broken kerneldoc

2019-01-21 Thread Quentin Perret
Some of the kerneldoc comments about the Energy Model framework are slightly broken, hence causing errors when compiling the html doc. Fix them. Signed-off-by: Quentin Perret --- include/linux/energy_model.h | 4 ++-- kernel/power/energy_model.c | 2 +- 2 files changed, 3 insertions(+), 3 dele

[PATCH] pinctrl.txt: Remove outdated information

2019-01-21 Thread Ramon Fried
Returning -EAGAIN is no longer supported by pin_config_group_set() since ad42fc6c8479 ("pinctrl: rip out the direct pinconf API") Remove the relevant section from the documentation. Signed-off-by: Ramon Fried --- Documentation/driver-api/pinctl.rst | 9 - 1 file changed, 9 deletions(-)

Dearest Friend

2019-01-21 Thread Mercy Kings
Dearest One First i thanks your attention to me, I am mercy kings My parents Mr.and Mrs.kings were assassinated here in IVORY COAST. Before my Before my father's death he had (USD $5.9M) Five Million Nine Hundred Thousand United State Dollars deposited in a bank here in Abidjan. I want you to do m

Re: [LKP] [/proc/stat] 3047027b34: reaim.jobs_per_min -4.8% regression

2019-01-21 Thread Kees Cook
On Fri, Jan 18, 2019 at 9:44 PM kernel test robot wrote: > > Greeting, > > FYI, we noticed a -4.8% regression of reaim.jobs_per_min due to commit: > > > commit: 3047027b34b8c6404b509903058b89836093acc7 ("[PATCH 2/2] /proc/stat: > Add sysctl parameter to control irq counts latency") > url: > http

[PATCH v9 0/3] watchdog: allow setting deadline for opening /dev/watchdogN

2019-01-21 Thread Rasmus Villemoes
If a watchdog driver tells the framework that the device is running, the framework takes care of feeding the watchdog until userspace opens the device. If the userspace application which is supposed to do that never comes up properly, the watchdog is fed indefinitely by the kernel. This can be espe

[PATCH v9 1/3] watchdog: introduce watchdog.open_timeout commandline parameter

2019-01-21 Thread Rasmus Villemoes
The watchdog framework takes care of feeding a hardware watchdog until userspace opens /dev/watchdogN. If that never happens for some reason (buggy init script, corrupt root filesystem or whatnot) but the kernel itself is fine, the machine stays up indefinitely. This patch allows setting an upper l

[PATCH v9 2/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT

2019-01-21 Thread Rasmus Villemoes
This allows setting a default value for the watchdog.open_timeout commandline parameter via Kconfig. Some BSPs allow remote updating of the kernel image and root file system, but updating the bootloader requires physical access. Hence, if one has a firmware update that requires relaxing the watchd

[PATCH v9 3/3] watchdog: make the device time out at open_deadline when open_timeout is used

2019-01-21 Thread Rasmus Villemoes
When the watchdog device is not open by userspace, the kernel takes care of pinging it. When the open_timeout feature is in use, we should ensure that the hardware fires close to open_timeout seconds after the kernel has assumed responsibility for the device (either at boot, or after userspace has

[PATCH V2] doc:it_IT: add translations in process/

2019-01-21 Thread Federico Vaga
This patch adds the Italian translation for the following documents in Documentation/process: - applying-patches - submit-checklist - submitting-drivers - changes - stable api nonsense Signed-off-by: Federico Vaga --- .../translations/it_IT/doc-guide/sphinx.rst | 2 + .../it_IT/process/appl

Re: [LKP] [/proc/stat] 3047027b34: reaim.jobs_per_min -4.8% regression

2019-01-21 Thread Alexey Dobriyan
On Tue, Jan 22, 2019 at 09:02:53AM +1300, Kees Cook wrote: > On Fri, Jan 18, 2019 at 9:44 PM kernel test robot > wrote: > > > > Greeting, > > > > FYI, we noticed a -4.8% regression of reaim.jobs_per_min due to commit: > > > > > > commit: 3047027b34b8c6404b509903058b89836093acc7 ("[PATCH 2/2] /pro

Re: [RESEND PATCH V8 05/11] KVM: Create architecture independent ROE skeleton

2019-01-21 Thread Chao Gao
On Mon, Jan 21, 2019 at 01:39:34AM +0200, Ahmed Abd El Mawgood wrote: >This patch introduces a hypercall that can assist against subset of kernel >rootkits, it works by place readonly protection in shadow PTE. The end >result protection is also kept in a bitmap for each kvm_memory_slot and is >used