On Tue, Apr 09, 2019 at 01:28:17PM +0200, Peter Zijlstra wrote:
> On Wed, Feb 27, 2019 at 08:05:16AM -0800, Ricardo Neri wrote:
> > @@ -62,7 +67,18 @@ static inline void set_comparator(struct hpet_hld_data
> > *hdata,
> > static void kick_timer(struct hpet_hld_da
On Tue, Apr 09, 2019 at 12:59:46PM +0200, Peter Zijlstra wrote:
> On Tue, Mar 26, 2019 at 09:49:13PM +0100, Thomas Gleixner wrote:
> > So way you should handle this is:
> >
> > cpumask_set_cpu(cpu, hld_data->cpu_monitored_mask);
> >
> > if (!hld_data->enabled_cpus++) {
> >
On Tue, Apr 09, 2019 at 01:03:40PM +0200, Peter Zijlstra wrote:
> On Wed, Feb 27, 2019 at 08:05:15AM -0800, Ricardo Neri wrote:
> > diff --git a/arch/x86/include/asm/hpet.h b/arch/x86/include/asm/hpet.h
> > index 4d559e0c746f..15dc3b576496 100644
> > --- a/arch/x86/include
er. I'll double check my setup.
>
> On 2/27/19 11:05 PM, Ricardo Neri wrote:
> > ..
> > diff --git a/arch/x86/kernel/watchdog_hld_hpet.c
> > b/arch/x86/kernel/watchdog_hld_hpet.c
> > new file mode 100644
> > index ..cfa284da4bf6
> > --
On Tue, Mar 26, 2019 at 10:29:52PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > + When hpet is specified, the NMI watchdog will be driven
> > + by an HPET timer, if available in the sy
On Tue, Mar 26, 2019 at 10:18:32PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > +// SPDX-License-Identifier: GPL-2.0
> > +/*
> > + * Detect hard lockups on a system
> > + *
> > + * Copyright (C) Intel Corporation 2019
> > +
On Tue, Mar 26, 2019 at 10:13:06PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > +#ifdef CONFIG_X86_HARDLOCKUP_DETECTOR_HPET
> > +struct hpet_hld_data *hpet_hardlockup_detector_assign_timer(void)
> > +{
> > + struct hpet_hld_data *hdat
On Tue, Mar 26, 2019 at 10:03:02PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > int hpet_alloc(struct hpet_data *hdp)
> > {
> > u64 cap, mcfg;
> > @@ -845,7 +868,6 @@ int hpet_alloc(struct hpet_data *hdp)
> > size_t siz;
On Tue, Mar 26, 2019 at 10:11:16PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
>
> > Users of HPET timers (such as the hardlockup detector) need the definitions
> > of these flags to interpret the configuration of a timer as passed by
> > p
On Tue, Mar 26, 2019 at 09:55:35PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > @@ -62,7 +67,18 @@ static inline void set_comparator(struct hpet_hld_data
> > *hdata,
> > static void kick_timer(struct hpet_hld_data *hdata, bool force
On Tue, Mar 26, 2019 at 10:00:24PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > struct irq_data;
> > @@ -109,6 +114,11 @@ extern void
> > hpet_unregister_irq_handler(rtc_irq_handler handler);
> > static inline int hpet_enable(void
On Tue, Mar 26, 2019 at 09:49:13PM +0100, Thomas Gleixner wrote:
> On Wed, 27 Feb 2019, Ricardo Neri wrote:
> > +/**
> > + * get_count() - Get the current count of the HPET timer
> > + *
> > + * Returns:
> > + *
> > + * Value of the main counter o
On Wed, Feb 27, 2019 at 08:17:58AM -0800, Paul E. McKenney wrote:
> On Wed, Feb 27, 2019 at 08:05:13AM -0800, Ricardo Neri wrote:
> > CPU architectures that have an NMI watchdog use arch_touch_nmi_watchdog()
> > to briefly ignore the hardlockup detector. If the architecture do
edanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
arch/x86/include/asm/hpet.h | 10 ++
arch/x86/kernel/hpet.c | 12 +++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
drivers/char/hpet.c | 31 +--
include/linux/hpet.h | 1 +
2 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index 4a22b4b41aef..b73b68c0e127 100644
--- a/drivers/char/hp
edanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
arch/x86/include/asm/hpet.h | 6 ++
arch/x86/kernel/hpet.c | 6 --
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86
edanne
Cc: "Eric W. Biederman"
Cc: Baoquan He
Cc: Dou Liyang
Cc: Jan Kiszka
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
arch/x86/include/asm/msidef.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/include/asm/msidef.h b/arch/
"Luis R. Rodriguez"
Cc: Waiman Long
Cc: Josh Poimboeuf
Cc: Randy Dunlap
Cc: Davidlohr Bueso
Cc: Christoffer Dall
Cc: Marc Zyngier
Cc: Kai-Heng Feng
Cc: Konrad Rzeszutek Wilk
Cc: David Rientjes
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Cc: sparcli...@vger.kernel.org
C
.
This condition greatly simplifies the implementation of the detector.
Cc: "H. Peter Anvin"
Cc: Ashok Raj
Cc: Andi Kleen
Cc: Tony Luck
Cc: Clemens Ladisch
Cc: Arnd Bergmann
Cc: Philippe Ombredanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: "Ravi V. Shankar"
Cc: x...@ker
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: "Ravi V. Shankar"
Cc: Mimi Zohar
Cc: Jan Kiszka
Cc: Nick Desaulniers
Cc: Masahiro Yamada
Cc: Nayna Jain
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
arch/x86/Kconfig.debug | 10 +
arch/x86/include/as
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Cc: sparcli...@vger.kernel.org
Cc: linuxppc-...@lists.ozlabs.org
Signed-off-by: Ricardo Neri
---
include/linux/nmi.h | 1 +
kernel/watchdog_hld.c | 18 +++---
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/include
: Paul Mackerras
Cc: Mathieu Desnoyers
Cc: Masami Hiramatsu
Cc: Peter Zijlstra
Cc: Andrew Morton
Cc: Philippe Ombredanne
Cc: Colin Ian King
Cc: "Luis R. Rodriguez"
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Cc: sparcli...@vger.kernel.org
Cc: linuxppc-...@lists.ozlabs.org
Kai-Heng Feng
Cc: Konrad Rzeszutek Wilk
Cc: David Rientjes
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Cc: "David S. Miller"
Cc: Benjamin Herrenschmidt
Cc: sparcli...@vger.kernel.org
Cc: linuxppc-...@lists.ozlabs.org
Signed-off-by: Ricardo Neri
---
include/linux/nmi.
edanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: Mimi Zohar
Cc: Jan Kiszka
Cc: Nick Desaulniers
Cc: Masahiro Yamada
Cc: Nayna Jain
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
--
checkpatch gives the following warning:
CHECK: __setup
rgmann
Cc: Philippe Ombredanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: Mimi Zohar
Cc: Jan Kiszka
Cc: Nick Desaulniers
Cc: Masahiro Yamada
Cc: Nayna Jain
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Suggested-by: Andi Kleen
Signed-off-by: Ricardo Neri
---
arch/x86/i
(Thomas Gleixner).
* Fixed unconditonal return NMI_HANDLED when the HPET timer is programmed
for FSB/MSI delivery (Peter Zijlstra).
References:
[1]. https://lkml.org/lkml/2018/6/12/1027
Ricardo Neri (14):
kernel/watchdog: Add a function to obtain the watchdog_allowed_mask
watchdog
Jan Kiszka
Cc: Nick Desaulniers
Cc: Masahiro Yamada
Cc: Nayna Jain
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Suggested-by: Nicholas Piggin
Signed-off-by: Ricardo Neri
---
arch/x86/Kconfig.debug | 4 ++
arch/x86/kernel/Makefile | 1 +
arch/
"
Cc: Ashok Raj
Cc: Andi Kleen
Cc: Tony Luck
Cc: Clemens Ladisch
Cc: Arnd Bergmann
Cc: Philippe Ombredanne
Cc: Kate Stewart
Cc: "Rafael J. Wysocki"
Cc: "Ravi V. Shankar"
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
arch/x86/include/asm/hpet.h | 3 +++
ar
On Tue, Nov 27, 2018 at 09:59:36PM +0100, Borislav Petkov wrote:
> From: Borislav Petkov
>
> ... instead of issuing it per CPU and flooding dmesg unnecessarily.
>
> Signed-off-by: Borislav Petkov
> Cc: "H. Peter Anvin"
> Cc: Ingo Molnar
> Cc: Ricardo Neri
On Tue, Nov 27, 2018 at 09:59:36PM +0100, Borislav Petkov wrote:
> From: Borislav Petkov
>
> ... instead of issuing it per CPU and flooding dmesg unnecessarily.
>
> Signed-off-by: Borislav Petkov
> Cc: "H. Peter Anvin"
> Cc: Ingo Molnar
> Cc: Ricardo Neri
On Thu, Aug 02, 2018 at 11:40:55AM +0200, Thomas Gleixner wrote:
> On Thu, 2 Aug 2018, Marc Zyngier wrote:
> > On Thu, 02 Aug 2018 07:55:49 +0100,
> > Thomas Gleixner wrote:
> > >
> > > On Thu, 2 Aug 2018, Marc Zyngier wrote:
> > > >
> > > > If we need to distinguish between the two, then we
On Thu, Aug 02, 2018 at 11:40:55AM +0200, Thomas Gleixner wrote:
> On Thu, 2 Aug 2018, Marc Zyngier wrote:
> > On Thu, 02 Aug 2018 07:55:49 +0100,
> > Thomas Gleixner wrote:
> > >
> > > On Thu, 2 Aug 2018, Marc Zyngier wrote:
> > > >
> > > > If we need to distinguish between the two, then we
On Wed, Aug 01, 2018 at 04:09:59PM +0100, Julien Thierry wrote:
> >>+static bool irq_supports_nmi(struct irq_desc *desc)
> >>+{
> >>+ struct irq_data *d = irq_desc_get_irq_data(desc);
> >>+
> >>+#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
> >>+ /* Only IRQs directly managed by the root irqchip can be
On Wed, Aug 01, 2018 at 04:09:59PM +0100, Julien Thierry wrote:
> >>+static bool irq_supports_nmi(struct irq_desc *desc)
> >>+{
> >>+ struct irq_data *d = irq_desc_get_irq_data(desc);
> >>+
> >>+#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
> >>+ /* Only IRQs directly managed by the root irqchip can be
On Tue, Jul 24, 2018 at 12:07:05PM +0100, Julien Thierry wrote:
> Add support for percpu_devid interrupts treated as NMIs.
>
> Percpu_devid NMIs need to be setup/torn down on each CPU they target.
>
> The same restrictions as for global NMIs still apply for percpu_devid NMIs.
>
> Signed-off-by:
On Tue, Jul 24, 2018 at 12:07:05PM +0100, Julien Thierry wrote:
> Add support for percpu_devid interrupts treated as NMIs.
>
> Percpu_devid NMIs need to be setup/torn down on each CPU they target.
>
> The same restrictions as for global NMIs still apply for percpu_devid NMIs.
>
> Signed-off-by:
On Tue, Jul 24, 2018 at 12:07:04PM +0100, Julien Thierry wrote:
Hi Julien,
Many thanks for your patchset and I apologize for the late reply. I tried
to use your patches on my own use case and I have the following
comments...
> Add functionality to allocate interrupt lines that will deliver IRQs
On Tue, Jul 24, 2018 at 12:07:04PM +0100, Julien Thierry wrote:
Hi Julien,
Many thanks for your patchset and I apologize for the late reply. I tried
to use your patches on my own use case and I have the following
comments...
> Add functionality to allocate interrupt lines that will deliver IRQs
On Tue, Dec 05, 2017 at 10:29:33PM +0100, Borislav Petkov wrote:
> On Tue, Dec 05, 2017 at 07:38:45PM +0100, Peter Zijlstra wrote:
> > Sorry what? So either this code is broken because it has IRQs enabled,
> > or its broken because its trying to acquire a mutex with IRQs disabled.
> > Which is it?
On Tue, Dec 05, 2017 at 10:29:33PM +0100, Borislav Petkov wrote:
> On Tue, Dec 05, 2017 at 07:38:45PM +0100, Peter Zijlstra wrote:
> > Sorry what? So either this code is broken because it has IRQs enabled,
> > or its broken because its trying to acquire a mutex with IRQs disabled.
> > Which is it?
On Tue, Dec 05, 2017 at 07:14:56PM +0100, Borislav Petkov wrote:
>
> But, if other code is going to use those functions - and I believe
> that's the idea - otherwise they wouldn't be in arch/x86/lib/
At the moment MPX and UMIP are using the insn-eval decoder to determine
linear addresses.
On Tue, Dec 05, 2017 at 07:14:56PM +0100, Borislav Petkov wrote:
>
> But, if other code is going to use those functions - and I believe
> that's the idea - otherwise they wouldn't be in arch/x86/lib/
At the moment MPX and UMIP are using the insn-eval decoder to determine
linear addresses.
On Thu, Nov 23, 2017 at 10:19:51AM +0100, Borislav Petkov wrote:
> From: Borislav Petkov
>
> In order to save on redundant structs definitions
> insn_get_code_seg_params() was made to return two 4-bit values in a char
> but clang complains:
>
> arch/x86/lib/insn-eval.c:780:10:
On Thu, Nov 23, 2017 at 10:19:51AM +0100, Borislav Petkov wrote:
> From: Borislav Petkov
>
> In order to save on redundant structs definitions
> insn_get_code_seg_params() was made to return two 4-bit values in a char
> but clang complains:
>
> arch/x86/lib/insn-eval.c:780:10: warning:
Commit-ID: fd11a6496e12848d4eeb21029c2c288bbc638048
Gitweb: https://git.kernel.org/tip/fd11a6496e12848d4eeb21029c2c288bbc638048
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Mon, 20 Nov 2017 19:04:36 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: fd11a6496e12848d4eeb21029c2c288bbc638048
Gitweb: https://git.kernel.org/tip/fd11a6496e12848d4eeb21029c2c288bbc638048
Author: Ricardo Neri
AuthorDate: Mon, 20 Nov 2017 19:04:36 -0800
Committer: Ingo Molnar
CommitDate: Tue, 21 Nov 2017 08:13:43 +0100
x86/umip: Print a warning
: Ravi V. Shankar <ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Suggested-by: Linus Torvalds <torva...@linux-foundation.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
Changes since V2:
* Dropped patches 1, 2, and 3 as they were applied on the tip rep
an existing call to the generic rate-limited pr_err()
with the new umip_pr_err().
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Linus Torvalds
Signed-off-by: Ricardo Neri
---
Changes since V2
On Tue, Nov 14, 2017 at 08:34:08AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri <ricardo.neri-calde...@linux.intel.com> wrote:
>
> > +const char * const umip_insns[5] = {
> > + [UMIP_INST_SGDT] = "sgdt",
> > + [UMIP_INST_SIDT]
On Tue, Nov 14, 2017 at 08:34:08AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri wrote:
>
> > +const char * const umip_insns[5] = {
> > + [UMIP_INST_SGDT] = "sgdt",
> > + [UMIP_INST_SIDT] = "sidt",
> > + [UMIP_INST_SMSW] = "smsw&q
On Tue, Nov 14, 2017 at 08:21:57AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri <ricardo.neri-calde...@linux.intel.com> wrote:
>
> > The instructions STR and SLDT are not emulated in any case. Thus, it made
> > sense to not implement functionality to identify them
On Tue, Nov 14, 2017 at 08:21:57AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri wrote:
>
> > The instructions STR and SLDT are not emulated in any case. Thus, it made
> > sense to not implement functionality to identify them. However, a
> > subsequent commit will intr
Commit-ID: 770c77557757873808a474016a3cae4b37690cb2
Gitweb: https://git.kernel.org/tip/770c77557757873808a474016a3cae4b37690cb2
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Mon, 13 Nov 2017 22:29:43 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 770c77557757873808a474016a3cae4b37690cb2
Gitweb: https://git.kernel.org/tip/770c77557757873808a474016a3cae4b37690cb2
Author: Ricardo Neri
AuthorDate: Mon, 13 Nov 2017 22:29:43 -0800
Committer: Ingo Molnar
CommitDate: Tue, 14 Nov 2017 08:38:09 +0100
x86/umip: Print a line
Commit-ID: 796ebc81b9931bfa293b4ca38ae28c21a363f4d0
Gitweb: https://git.kernel.org/tip/796ebc81b9931bfa293b4ca38ae28c21a363f4d0
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Mon, 13 Nov 2017 22:29:42 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 796ebc81b9931bfa293b4ca38ae28c21a363f4d0
Gitweb: https://git.kernel.org/tip/796ebc81b9931bfa293b4ca38ae28c21a363f4d0
Author: Ricardo Neri
AuthorDate: Mon, 13 Nov 2017 22:29:42 -0800
Committer: Ingo Molnar
CommitDate: Tue, 14 Nov 2017 08:38:08 +0100
x86/umip: Select
Commit-ID: 6e2a3064d6a86094fecc20cd430fd96aaa801687
Gitweb: https://git.kernel.org/tip/6e2a3064d6a86094fecc20cd430fd96aaa801687
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Mon, 13 Nov 2017 22:29:44 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 6e2a3064d6a86094fecc20cd430fd96aaa801687
Gitweb: https://git.kernel.org/tip/6e2a3064d6a86094fecc20cd430fd96aaa801687
Author: Ricardo Neri
AuthorDate: Mon, 13 Nov 2017 22:29:44 -0800
Committer: Ingo Molnar
CommitDate: Tue, 14 Nov 2017 08:38:09 +0100
x86/umip: Identify
<ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Suggested-by: Ingo Molnar <mi...@kernel.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
arch/x86/kernel/cpu/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/common.c b/arc
Let us have an indication that this feature has been enabled.
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Ingo Molnar
Signed-off-by: Ricardo Neri
---
arch/x86/kernel/cpu/common.c | 2
t;ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Suggested-by: Linus Torvalds <torva...@linux-foundation.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
arch/x86/kernel/umip.c | 65 +-
1 file changed, 59 inse
Lutomirski <l...@kernel.org>
Cc: H. Peter Anvin <h...@zytor.com>
Cc: Borislav Petkov <b...@suse.de>
Cc: Tony Luck <tony.l...@intel.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Ravi V. Shankar <ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Signed-off-
Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
This patch also corrects the #define of SMSW. This change does not have a
functional impact as it is only used as an identifier.
---
arch/x86
() in order to have it printing at the same rate and log
level.
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Linus Torvalds
Signed-off-by: Ricardo Neri
---
arch/x86/kernel/umip.c | 65
the update to the existing
rate-limited pr_err().
Ricardo Neri (4):
x86/umip: Select X86_INTEL_UMIP by default
x86/umip: Inform that UMIP has been enabled
x86/umip: Identify the str and sldt instructions
x86/umip: Warn if UMIP-protected instructions are used
arch/x86/Kconfig | 10
: x...@kernel.org
Suggested-by: Ingo Molnar <mi...@kernel.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
arch/x86/Kconfig | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f08977d..a524
the update to the existing
rate-limited pr_err().
Ricardo Neri (4):
x86/umip: Select X86_INTEL_UMIP by default
x86/umip: Inform that UMIP has been enabled
x86/umip: Identify the str and sldt instructions
x86/umip: Warn if UMIP-protected instructions are used
arch/x86/Kconfig | 10
the instructions
protected by UMIP.
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Ingo Molnar
Signed-off-by: Ricardo Neri
---
arch/x86/Kconfig | 10 --
1 file changed, 8 insertions(+), 2
On Mon, Nov 13, 2017 at 09:12:03AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri <ricardo.neri-calde...@linux.intel.com> wrote:
>
> > The instructions str and sldt are not emulated in any case. Thus, it made
> > sense to not implement functionality to identify them
On Mon, Nov 13, 2017 at 09:12:03AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri wrote:
>
> > The instructions str and sldt are not emulated in any case. Thus, it made
> > sense to not implement functionality to identify them. However, a
> > subsequent commit will intr
: x...@kernel.org
Suggested-by: Ingo Molnar <mi...@kernel.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
arch/x86/Kconfig | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f08977d..a524
the instructions
protected by UMIP.
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Ingo Molnar
Signed-off-by: Ricardo Neri
---
arch/x86/Kconfig | 10 --
1 file changed, 8 insertions(+), 2
<ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Suggested-by: Ingo Molnar <mi...@kernel.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
---
arch/x86/kernel/cpu/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/common.c b/arc
Let us have an indication that this feature has been enabled.
Cc: Andy Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Ingo Molnar
Signed-off-by: Ricardo Neri
---
arch/x86/kernel/cpu/common.c | 2
Cc: Borislav Petkov <b...@suse.de>
Cc: Tony Luck <tony.l...@intel.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Ravi V. Shankar <ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Suggested-by: Linus Torvalds <torva...@linux-foundation.org>
Signed-off-by: Ricardo N
and BR,
Ricardo
[1]. https://lkml.org/lkml/2017/10/27/699
[2]. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1523438.html
[3]. https://lkml.org/lkml/2017/11/8/238
[4]. https://lkml.org/lkml/2017/11/8/593
Ricardo Neri (4):
x86/umip: Select X86_INTEL_UMIP by default
x86/umip
Lutomirski <l...@kernel.org>
Cc: H. Peter Anvin <h...@zytor.com>
Cc: Borislav Petkov <b...@suse.de>
Cc: Tony Luck <tony.l...@intel.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>
Cc: Ravi V. Shankar <ravi.v.shan...@intel.com>
Cc: x...@kernel.org
Signed-off-
and BR,
Ricardo
[1]. https://lkml.org/lkml/2017/10/27/699
[2]. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1523438.html
[3]. https://lkml.org/lkml/2017/11/8/238
[4]. https://lkml.org/lkml/2017/11/8/593
Ricardo Neri (4):
x86/umip: Select X86_INTEL_UMIP by default
x86/umip
Lutomirski
Cc: H. Peter Anvin
Cc: Borislav Petkov
Cc: Tony Luck
Cc: Paolo Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Signed-off-by: Ricardo Neri
---
This patch also corrects the #define of SMSW. This change does not have a
functional impact as it is only used as an identifier.
---
arch/x86
Bonzini
Cc: Ravi V. Shankar
Cc: x...@kernel.org
Suggested-by: Linus Torvalds
Signed-off-by: Ricardo Neri
---
arch/x86/kernel/umip.c | 65 +-
1 file changed, 59 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/umip.c b/arch/x86/kernel
On Wed, Nov 08, 2017 at 06:14:12PM +0100, Paolo Bonzini wrote:
> On 08/11/2017 18:09, Denys Vlasenko wrote:
> > On 11/08/2017 05:57 PM, Linus Torvalds wrote:
> >> On Wed, Nov 8, 2017 at 8:53 AM, Denys Vlasenko
> >> wrote:
> >>> We can postpone enabling UMIP by default by a
On Wed, Nov 08, 2017 at 06:14:12PM +0100, Paolo Bonzini wrote:
> On 08/11/2017 18:09, Denys Vlasenko wrote:
> > On 11/08/2017 05:57 PM, Linus Torvalds wrote:
> >> On Wed, Nov 8, 2017 at 8:53 AM, Denys Vlasenko
> >> wrote:
> >>> We can postpone enabling UMIP by default by a year or so.
> >>> By
On Wed, Nov 08, 2017 at 08:34:45AM -0800, Linus Torvalds wrote:
> On Wed, Nov 8, 2017 at 8:14 AM, Denys Vlasenko wrote:
> >
> > Can we avoid maintain emulation of these isns, by asking Wine to remove
> > their use instead?
>
> If we ask the Wine people to remove the
On Wed, Nov 08, 2017 at 08:34:45AM -0800, Linus Torvalds wrote:
> On Wed, Nov 8, 2017 at 8:14 AM, Denys Vlasenko wrote:
> >
> > Can we avoid maintain emulation of these isns, by asking Wine to remove
> > their use instead?
>
> If we ask the Wine people to remove the instruction use, that may
On Wed, Nov 08, 2017 at 05:14:33PM +0100, Denys Vlasenko wrote:
> On 11/08/2017 12:00 PM, tip-bot for Ricardo Neri wrote:
> >Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01
> >Gitweb:
> >https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01
> &
On Wed, Nov 08, 2017 at 05:14:33PM +0100, Denys Vlasenko wrote:
> On 11/08/2017 12:00 PM, tip-bot for Ricardo Neri wrote:
> >Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01
> >Gitweb:
> >https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01
> &
On Wed, Nov 08, 2017 at 10:52:59AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri <ricardo.neri-calde...@linux.intel.com> wrote:
>
> > User-Mode Instruction Prevention (UMIP) is enabled by setting/clearing a
> > bit in %cr4.
> >
> > It makes sense to
On Wed, Nov 08, 2017 at 10:52:59AM +0100, Ingo Molnar wrote:
>
> * Ricardo Neri wrote:
>
> > User-Mode Instruction Prevention (UMIP) is enabled by setting/clearing a
> > bit in %cr4.
> >
> > It makes sense to enable UMIP at some point while booting, before u
On Wed, Nov 08, 2017 at 11:00:13AM +0100, Thomas Gleixner wrote:
> On Sun, 5 Nov 2017, Ricardo Neri wrote:
> > Changes since V10:
> > *Patch 1 ("x86/insn-eval: Extend get_seg_base_addr() to also obtain segment
> > limit") of v10 has been dropped has it
On Wed, Nov 08, 2017 at 11:00:13AM +0100, Thomas Gleixner wrote:
> On Sun, 5 Nov 2017, Ricardo Neri wrote:
> > Changes since V10:
> > *Patch 1 ("x86/insn-eval: Extend get_seg_base_addr() to also obtain segment
> > limit") of v10 has been dropped has it
Commit-ID: a9e017d5619eb371460c8e516f4684def62bef3a
Gitweb: https://git.kernel.org/tip/a9e017d5619eb371460c8e516f4684def62bef3a
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Sun, 5 Nov 2017 18:27:57 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: a9e017d5619eb371460c8e516f4684def62bef3a
Gitweb: https://git.kernel.org/tip/a9e017d5619eb371460c8e516f4684def62bef3a
Author: Ricardo Neri
AuthorDate: Sun, 5 Nov 2017 18:27:57 -0800
Committer: Ingo Molnar
CommitDate: Wed, 8 Nov 2017 11:16:25 +0100
selftests/x86: Add tests
Commit-ID: 9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e
Gitweb: https://git.kernel.org/tip/9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Sun, 5 Nov 2017 18:27:56 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e
Gitweb: https://git.kernel.org/tip/9390afebe1d3f5a0be18b1afdd0ce09d67cebf9e
Author: Ricardo Neri
AuthorDate: Sun, 5 Nov 2017 18:27:56 -0800
Committer: Ingo Molnar
CommitDate: Wed, 8 Nov 2017 11:16:24 +0100
selftests/x86: Add tests
Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01
Gitweb: https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Sun, 5 Nov 2017 18:27:52 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 1e5db223696afa55e6a038fac638f759e1fdcc01
Gitweb: https://git.kernel.org/tip/1e5db223696afa55e6a038fac638f759e1fdcc01
Author: Ricardo Neri
AuthorDate: Sun, 5 Nov 2017 18:27:52 -0800
Committer: Ingo Molnar
CommitDate: Wed, 8 Nov 2017 11:16:22 +0100
x86/umip: Add emulation
Commit-ID: aa35f896979d9610bb11df485cf7bb6ca241febb
Gitweb: https://git.kernel.org/tip/aa35f896979d9610bb11df485cf7bb6ca241febb
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Sun, 5 Nov 2017 18:27:54 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: 6fc9dc81bff0ea461db534e2672acfdaf76f3e4e
Gitweb: https://git.kernel.org/tip/6fc9dc81bff0ea461db534e2672acfdaf76f3e4e
Author: Ricardo Neri <ricardo.neri-calde...@linux.intel.com>
AuthorDate: Sun, 5 Nov 2017 18:27:55 -0800
Committer: Ingo Molnar <mi...@kernel.org>
Commit-ID: aa35f896979d9610bb11df485cf7bb6ca241febb
Gitweb: https://git.kernel.org/tip/aa35f896979d9610bb11df485cf7bb6ca241febb
Author: Ricardo Neri
AuthorDate: Sun, 5 Nov 2017 18:27:54 -0800
Committer: Ingo Molnar
CommitDate: Wed, 8 Nov 2017 11:16:23 +0100
x86/umip: Enable User-Mode
Commit-ID: 6fc9dc81bff0ea461db534e2672acfdaf76f3e4e
Gitweb: https://git.kernel.org/tip/6fc9dc81bff0ea461db534e2672acfdaf76f3e4e
Author: Ricardo Neri
AuthorDate: Sun, 5 Nov 2017 18:27:55 -0800
Committer: Ingo Molnar
CommitDate: Wed, 8 Nov 2017 11:16:24 +0100
x86/traps: Fix up general
101 - 200 of 958 matches
Mail list logo