[PATCH v4 1/2] kbuild, x86: Track generated headers with generated-y

2016-06-24 Thread James Hogan
. This will allow the asm-generic wrapper handling code to remove stale wrappers when files are removed from generic-y, without also removing these headers which are generated separately. Reported-by: kbuild test robot <fengguang...@intel.com> Signed-off-by: James Hogan <james.ho...@imgtec.c

[PATCH 3/4] KVM: MIPS: Implement EXIT_VM hypercall

2017-02-06 Thread James Hogan
with the others as the documentation was never added. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Andreas Herrmann <andreas.herrm...@caviumne

[PATCH 1/4] KVM: MIPS: Implement HYPCALL emulation

2017-02-06 Thread James Hogan
document the hypercall ABI which asm/kvm_para.h uses. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Andreas Herrmann <andreas.herrm..

[PATCH 0/4] KVM: MIPS: Hypercalls

2017-02-06 Thread James Hogan
a...@cavium.com> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-m...@linux-mips.org Cc: k...@vger.kernel.org Cc: linux-doc@vger.kernel.org James Hogan (4): KVM: MIPS: Implement HYPCALL emulation KVM: MIPS: Implement GET_CLOCK_FREQ hypercall KVM: MIPS: Implement EXIT_VM hyperca

[PATCH 4/4] KVM: MIPS: Implement console output hypercall

2017-02-06 Thread James Hogan
Implement console output hypercall by exiting back to userland with KVM_EXIT_HYPERCALL, and setting the return value on next KVM_RUN. We also document the hypercall along with the others as the documentation was never added Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo B

[PATCH 2/4] KVM: MIPS: Implement GET_CLOCK_FREQ hypercall

2017-02-06 Thread James Hogan
. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Andreas Herrmann <andreas.herrm...@caviumnetworks.com> Cc: David Daney <david

Re: [PATCH 4/4] KVM: MIPS: Implement console output hypercall

2017-02-06 Thread James Hogan
On Mon, Feb 06, 2017 at 02:25:59PM +0100, Paolo Bonzini wrote: > > > On 06/02/2017 11:46, James Hogan wrote: > > Documentation/virtual/kvm/api.txt seems to suggest that > > KVM_EXIT_HYPERCALL is obsolete. When it suggests using KVM_EXIT_MMIO, > > does it simply mea

[PATCH 23/32] KVM: MIPS: Implement VZ support

2017-03-02 Thread James Hogan
are optional or can be disabled. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Ingo Molnar <

[PATCH 27/32] KVM: MIPS/VZ: Support guest segmentation control

2017-03-02 Thread James Hogan
ing a GVA root exception to be updated to interpret the segmentation registers and decode the faulting instruction enough to detect EVA memory access instructions. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <

[PATCH 30/32] KVM: MIPS/VZ: Emulate MAARs when necessary

2017-03-02 Thread James Hogan
Add emulation of Memory Accessibility Attribute Registers (MAARs) when necessary. We can't actually do anything with whatever the guest provides, but it may not be possible to clear Guest.Config5.MRP so we have to emulate at least a pair of MAARs. Signed-off-by: James Hogan <james

[PATCH 0/32] KVM: MIPS: Add VZ support

2017-03-02 Thread James Hogan
nux-mips.org> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Ingo Molnar <mi...@redhat.com> Cc: Paul Burton <paul.bur...@imgtec.com> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-m...@linux-mips.org Cc: k...@vger.kernel.org Cc: linux-doc@vger.kernel.org James Hogan (3

[PATCH 25/32] KVM: MIPS/VZ: Support guest CP0_BadInstr[P]

2017-03-02 Thread James Hogan
Add support for VZ guest CP0_BadInstr and CP0_BadInstrP registers, as found on most VZ capable cores. These guest registers need context switching, and exposing via the KVM ioctl API when they are present. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@r

[PATCH 12/32] KVM: MIPS: Add 64BIT capability

2017-03-02 Thread James Hogan
not support full context switching of 64-bit registers. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Jonathan Corbet <cor...@lwn.net

[PATCH 11/32] KVM: MIPS: Add VZ capability

2017-03-02 Thread James Hogan
against known values to determine what type of implementation was chosen. This is designed to allow the desired implementation (T vs VZ) to be potentially chosen at runtime rather than being fixed in the kernel configuration. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc

Re: [PATCH 11/32] KVM: MIPS: Add VZ capability

2017-03-02 Thread James Hogan
Hi Paolo, On Thu, Mar 02, 2017 at 11:59:28AM +0100, Paolo Bonzini wrote: > On 02/03/2017 10:36, James Hogan wrote: > > - KVM_VM_MIPS_DEFAULT = 2 > > > >This will provide the best available KVM implementation (even on > >older kernels), preferring hardware a

[PATCH v2 28/33] KVM: MIPS/VZ: Support guest segmentation control

2017-03-14 Thread James Hogan
ing a GVA root exception to be updated to interpret the segmentation registers and decode the faulting instruction enough to detect EVA memory access instructions. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <

[PATCH v2 29/33] KVM: MIPS/VZ: Support guest hardware page table walker

2017-03-14 Thread James Hogan
they are present. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-m...@linux-mips.org Cc: k...@vger.

[PATCH v2 24/33] KVM: MIPS: Implement VZ support

2017-03-14 Thread James Hogan
are optional or can be disabled. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Ingo Molnar <

[PATCH v2 13/33] KVM: MIPS: Add 64BIT capability

2017-03-14 Thread James Hogan
not support full context switching of 64-bit registers. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Jonathan Corbet <cor...@lwn.net

[PATCH v2 26/33] KVM: MIPS/VZ: Support guest CP0_BadInstr[P]

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_BadInstr and CP0_BadInstrP registers, as found on most VZ capable cores. These guest registers need context switching, and exposing via the KVM ioctl API when they are present. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@r

[PATCH v2 27/33] KVM: MIPS/VZ: Support guest CP0_[X]ContextConfig

2017-03-14 Thread James Hogan
Add support for VZ guest CP0_ContextConfig and CP0_XContextConfig (MIPS64 only) registers, as found on P5600 and P6600 cores. These guest registers need initialising, context switching, and exposing via the KVM ioctl API when they are present. Signed-off-by: James Hogan <james.ho...@imgtec.

[PATCH v2 31/33] KVM: MIPS/VZ: Emulate MAARs when necessary

2017-03-14 Thread James Hogan
Add emulation of Memory Accessibility Attribute Registers (MAARs) when necessary. We can't actually do anything with whatever the guest provides, but it may not be possible to clear Guest.Config5.MRP so we have to emulate at least a pair of MAARs. Signed-off-by: James Hogan <james

[PATCH v2 7/33] KVM: MIPS: Implement HYPCALL emulation

2017-03-14 Thread James Hogan
code in the return value for forward compatibility. Non-zero HYPCALL codes are not handled. We also document the hypercall ABI which asm/kvm_para.h uses. Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkr

[PATCH v2 12/33] KVM: MIPS: Add VZ & TE capabilities

2017-03-14 Thread James Hogan
Signed-off-by: James Hogan <james.ho...@imgtec.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Radim Krčmář" <rkrc...@redhat.com> Cc: Ralf Baechle <r...@linux-mips.org> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-m...@linux-mips.org Cc: k...@vger.kernel

[PATCH v2 0/33] KVM: MIPS: Add VZ support

2017-03-14 Thread James Hogan
t;paul.bur...@imgtec.com> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-m...@linux-mips.org Cc: k...@vger.kernel.org Cc: linux-doc@vger.kernel.org James Hogan (33): MIPS: Add defs & probing of UFR MIPS: Separate MAAR V bit into VL and VH for XPA MIPS: Probe guest CP0_UserLocal

Re: [PATCH 11/32] KVM: MIPS: Add VZ capability

2017-03-02 Thread James Hogan
On Thu, Mar 02, 2017 at 01:20:05PM +0100, Paolo Bonzini wrote: > On 02/03/2017 12:39, James Hogan wrote: > > It can't right now, though with relocation of the kernel now implemented > > in MIPS Linux for KASLR, and hopes for a more generic EVA implementation > > (which c

Re: [PATCH 11/32] KVM: MIPS: Add VZ capability

2017-03-03 Thread James Hogan
On Thu, Mar 02, 2017 at 10:34:07PM +, James Hogan wrote: > I suppose the exception is T It shouldn't assume that just because VZ > is available that T isn't (even if that is the case right now). It > could always just try KVM_CREATE_VM with kvm type 0 and detect the error &g

[PATCH] docs/features: parisc implements tracehook

2017-08-04 Thread James Hogan
Since commit 64e2a42bca12 ("parisc: Add ARCH_TRACEHOOK and regset support") in v4.7, parisc selects HAVE_ARCH_TRACEHOOK, so update its entry in Documentation/features from TODO to ok. Fixes: 64e2a42bca12 ("parisc: Add ARCH_TRACEHOOK and regset support") Signed-off-by: J

Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2017-06-05 Thread James Hogan
ne it so that no in-tree architectures > are affected. > > Cc: Arnd Bergmann <a...@arndb.de> > Cc: James Hogan <james.ho...@imgtec.com> > Cc: linux-a...@vger.kernel.org > Cc: linux-snps-...@lists.infradead.org > Cc: Catalin Marinas <catalin.mari...@arm.com&

Re: [PATCH v2] MIPS: Add nonxstack=on|off kernel parameter

2017-11-30 Thread James Hogan
nt: Tuesday, November 21, 2017 9:53 PM > To: Aleksandar Markovic; linux-m...@linux-mips.org > Cc: Miodrag Dinic; Aleksandar Markovic; Andrew Morton; DengCheng Zhu; Ding > Tianhong; Douglas Leung; Frederic Weisbecker; Goran Ferenc; Ingo Molnar; > James Cowgill; James Hogan; Jonathan Corbet

Re: [PATCH v2] MIPS: Add nonxstack=on|off kernel parameter

2018-02-08 Thread James Hogan
Hi, On Thu, Dec 07, 2017 at 11:33:47AM +, Miodrag Dinic wrote: > > On Wed, Dec 06, 2017 at 05:50:52PM +, Maciej W. Rozycki wrote: > > > What problem are you trying to solve anyway? Is it not something that > > > can be handled with the `execstack' utility? > > > > The commit message

[PATCH 02/13] docs: Remove metag docs

2018-02-21 Thread James Hogan
Now that arch/metag/ has been removed, remove Meta architecture specific documentation from the Documentation/ directory. Signed-off-by: James Hogan <jho...@kernel.org> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-me...@vger.kernel.org Cc: linux-doc@vger.kernel.org --- Documentat

[PATCH 03/13] docs: Remove remaining references to metag

2018-02-21 Thread James Hogan
Remove any remaining references to the Meta architecture in Documentation/, primarily from Documentation/features/. Signed-off-by: James Hogan <jho...@kernel.org> Cc: Jonathan Corbet <cor...@lwn.net> Cc: linux-me...@vger.kernel.org Cc: linux-doc@vger.kernel.org --- Documentati

Re: [PATCH 00/13] Remove metag architecture

2018-02-22 Thread James Hogan
On Thu, Feb 22, 2018 at 10:26:54AM +0100, Peter Zijlstra wrote: > On Wed, Feb 21, 2018 at 11:38:12PM +0000, James Hogan wrote: > > So lets call it a day and drop the Meta architecture port from the > > kernel. RIP Meta. > > So long, and thanks for all the fish! > >

Re: [PATCH 00/13] Remove metag architecture

2018-02-23 Thread James Hogan
On Fri, Feb 23, 2018 at 11:26:58AM +0100, Arnd Bergmann wrote: > On Thu, Feb 22, 2018 at 12:38 AM, James Hogan <jho...@kernel.org> wrote: > > So lets call it a day and drop the Meta architecture port from the > > kernel. RIP Meta. > > Since I brought up the architectu

[GIT PULL] Remove metag architecture

2018-02-27 Thread James Hogan
Hi Arnd, On Fri, Feb 23, 2018 at 01:26:09PM +0100, Arnd Bergmann wrote: > On Fri, Feb 23, 2018 at 12:02 PM, James Hogan <jho...@kernel.org> wrote: > > I'm happy to put v2 in linux-next now (only patch 4 has changed, I just > > sent an updated version), and send you a pull re