1. 08 2月, 2022 1 次提交
  2. 16 12月, 2021 2 次提交
  3. 20 8月, 2021 3 次提交
  4. 18 6月, 2021 1 次提交
  5. 26 5月, 2021 2 次提交
  6. 01 4月, 2021 1 次提交
    • A
      KVM: arm64: Log source when panicking from nVHE hyp · aec0fae6
      Andrew Scull 提交于
      To aid with debugging, add details of the source of a panic from nVHE
      hyp. This is done by having nVHE hyp exit to nvhe_hyp_panic_handler()
      rather than directly to panic(). The handler will then add the extra
      details for debugging before panicking the kernel.
      
      If the panic was due to a BUG(), look up the metadata to log the file
      and line, if available, otherwise log an address that can be looked up
      in vmlinux. The hyp offset is also logged to allow other hyp VAs to be
      converted, similar to how the kernel offset is logged during a panic.
      
      __hyp_panic_string is now inlined since it no longer needs to be
      referenced as a symbol and the message is free to diverge between VHE
      and nVHE.
      
      The following is an example of the logs generated by a BUG in nVHE hyp.
      
      [   46.754840] kvm [307]: nVHE hyp BUG at: arch/arm64/kvm/hyp/nvhe/switch.c:242!
      [   46.755357] kvm [307]: Hyp Offset: 0xfffea6c58e1e0000
      [   46.755824] Kernel panic - not syncing: HYP panic:
      [   46.755824] PS:400003c9 PC:0000d93a82c705ac ESR:f2000800
      [   46.755824] FAR:0000000080080000 HPFAR:0000000000800800 PAR:0000000000000000
      [   46.755824] VCPU:0000d93a880d0000
      [   46.756960] CPU: 3 PID: 307 Comm: kvm-vcpu-0 Not tainted 5.12.0-rc3-00005-gc572b99cf65b-dirty #133
      [   46.757459] Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015
      [   46.758366] Call trace:
      [   46.758601]  dump_backtrace+0x0/0x1b0
      [   46.758856]  show_stack+0x18/0x70
      [   46.759057]  dump_stack+0xd0/0x12c
      [   46.759236]  panic+0x16c/0x334
      [   46.759426]  arm64_kernel_unmapped_at_el0+0x0/0x30
      [   46.759661]  kvm_arch_vcpu_ioctl_run+0x134/0x750
      [   46.759936]  kvm_vcpu_ioctl+0x2f0/0x970
      [   46.760156]  __arm64_sys_ioctl+0xa8/0xec
      [   46.760379]  el0_svc_common.constprop.0+0x60/0x120
      [   46.760627]  do_el0_svc+0x24/0x90
      [   46.760766]  el0_svc+0x2c/0x54
      [   46.760915]  el0_sync_handler+0x1a4/0x1b0
      [   46.761146]  el0_sync+0x170/0x180
      [   46.761889] SMP: stopping secondary CPUs
      [   46.762786] Kernel Offset: 0x3e1cd2820000 from 0xffff800010000000
      [   46.763142] PHYS_OFFSET: 0xffffa9f680000000
      [   46.763359] CPU features: 0x00240022,61806008
      [   46.763651] Memory Limit: none
      [   46.813867] ---[ end Kernel panic - not syncing: HYP panic:
      [   46.813867] PS:400003c9 PC:0000d93a82c705ac ESR:f2000800
      [   46.813867] FAR:0000000080080000 HPFAR:0000000000800800 PAR:0000000000000000
      [   46.813867] VCPU:0000d93a880d0000 ]---
      Signed-off-by: NAndrew Scull <ascull@google.com>
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/20210318143311.839894-6-ascull@google.com
      aec0fae6
  7. 19 3月, 2021 4 次提交
  8. 23 1月, 2021 3 次提交
  9. 04 12月, 2020 1 次提交
  10. 27 11月, 2020 1 次提交
  11. 16 11月, 2020 2 次提交
  12. 10 11月, 2020 1 次提交
    • M
      KVM: arm64: Add kimg_hyp_va() helper · 1db9d9de
      Marc Zyngier 提交于
      KVM/arm64 is so far unable to deal with function pointers, as the compiler
      will generate the kernel's runtime VA, and not the linear mapping address,
      meaning that kern_hyp_va() will give the wrong result.
      
      We so far have been able to use PC-relative addressing, but that's not
      always easy to use, and prevents the implementation of things like
      the mapping of an index to a pointer.
      
      To allow this, provide a new helper that computes the required
      translation from the kernel image to the HYP VA space.
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      1db9d9de
  13. 30 9月, 2020 2 次提交
  14. 29 9月, 2020 5 次提交
  15. 11 9月, 2020 3 次提交
  16. 10 7月, 2020 1 次提交
  17. 07 7月, 2020 1 次提交
  18. 11 6月, 2020 1 次提交
  19. 10 6月, 2020 2 次提交
    • M
      mm: reorder includes after introduction of linux/pgtable.h · 65fddcfc
      Mike Rapoport 提交于
      The replacement of <asm/pgrable.h> with <linux/pgtable.h> made the include
      of the latter in the middle of asm includes.  Fix this up with the aid of
      the below script and manual adjustments here and there.
      
      	import sys
      	import re
      
      	if len(sys.argv) is not 3:
      	    print "USAGE: %s <file> <header>" % (sys.argv[0])
      	    sys.exit(1)
      
      	hdr_to_move="#include <linux/%s>" % sys.argv[2]
      	moved = False
      	in_hdrs = False
      
      	with open(sys.argv[1], "r") as f:
      	    lines = f.readlines()
      	    for _line in lines:
      		line = _line.rstrip('
      ')
      		if line == hdr_to_move:
      		    continue
      		if line.startswith("#include <linux/"):
      		    in_hdrs = True
      		elif not moved and in_hdrs:
      		    moved = True
      		    print hdr_to_move
      		print line
      Signed-off-by: NMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Cain <bcain@codeaurora.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Greentime Hu <green.hu@gmail.com>
      Cc: Greg Ungerer <gerg@linux-m68k.org>
      Cc: Guan Xuetao <gxt@pku.edu.cn>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Nick Hu <nickhu@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Vincent Chen <deanbo422@gmail.com>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Link: http://lkml.kernel.org/r/20200514170327.31389-4-rppt@kernel.orgSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      65fddcfc
    • M
      mm: introduce include/linux/pgtable.h · ca5999fd
      Mike Rapoport 提交于
      The include/linux/pgtable.h is going to be the home of generic page table
      manipulation functions.
      
      Start with moving asm-generic/pgtable.h to include/linux/pgtable.h and
      make the latter include asm/pgtable.h.
      Signed-off-by: NMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Cain <bcain@codeaurora.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Greentime Hu <green.hu@gmail.com>
      Cc: Greg Ungerer <gerg@linux-m68k.org>
      Cc: Guan Xuetao <gxt@pku.edu.cn>
      Cc: Guo Ren <guoren@kernel.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Max Filippov <jcmvbkbc@gmail.com>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Nick Hu <nickhu@andestech.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Vincent Chen <deanbo422@gmail.com>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Link: http://lkml.kernel.org/r/20200514170327.31389-3-rppt@kernel.orgSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ca5999fd
  20. 05 6月, 2020 1 次提交
    • M
      arm64: add support for folded p4d page tables · e9f63768
      Mike Rapoport 提交于
      Implement primitives necessary for the 4th level folding, add walks of p4d
      level where appropriate, replace 5level-fixup.h with pgtable-nop4d.h and
      remove __ARCH_USE_5LEVEL_HACK.
      
      [arnd@arndb.de: fix gcc-10 shift warning]
        Link: http://lkml.kernel.org/r/20200429185657.4085975-1-arnd@arndb.deSigned-off-by: NMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Brian Cain <bcain@codeaurora.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christophe Leroy <christophe.leroy@c-s.fr>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Geert Uytterhoeven <geert+renesas@glider.be>
      Cc: Guan Xuetao <gxt@pku.edu.cn>
      Cc: James Morse <james.morse@arm.com>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Julien Thierry <julien.thierry.kdev@gmail.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Rich Felker <dalias@libc.org>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Stafford Horne <shorne@gmail.com>
      Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Link: http://lkml.kernel.org/r/20200414153455.21744-4-rppt@kernel.orgSigned-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e9f63768
  21. 29 5月, 2020 1 次提交
  22. 25 5月, 2020 1 次提交