Immediate mode instructions, which can only take an operand of up to 16īits signed, which isn't quite large enough.įix these spots to use a scratch register or use two immediate mode There's a few bits of assembly in the book3s64 code that use THREAD_SIZE in When CONFIG_VMAP_STACK is enabled, we set THREAD_SIZE to be at least the 17:27 ` Andrew Donnellan 17:27 ` Andrew Donnellan -1 siblings, 0 replies 32+ messages in thread * powerpc/64s: Fix assembly to support larger values of THREAD_SIZE To: linuxppc-dev +Cc: linux-hardening, cmr * VMAP_STACK support for book3s64 17:27 ` Andrew Donnellan 0 siblings, 0 replies 32+ messages in thread powerpc/platforms/powernv/opal-wrappers.S | 43 ++++++-Īrch/powerpc/platforms/powernv/opal-xscom.c | 2 +-Īrch/powerpc/platforms/powernv/opal.c | 16 ++-Īrch/powerpc/platforms/powernv/pci-ioda.c | 14 ++-Īrch/powerpc/platforms/powernv/pci.c | 25 ++++-Īrch/powerpc/platforms/powernv/setup.c | 2 +-Īrch/powerpc/platforms/powernv/smp.c | 2 +-Īrch/powerpc/sysdev/xics/icp-opal.c | 2 +-Īrch/powerpc/sysdev/xics/ics-opal.c | 8 +-Īrch/powerpc/sysdev/xive/native.c | 33 +++++-ĭrivers/mtd/devices/powernv_flash.c | 4 +-ĥ2 files changed, 347 insertions(+), 134 deletions(-)Ĭreate mode 100644 arch/powerpc/include/asm/book3s/64/stack.h powerpc/platforms/powernv/opal-sysparam.c | 4 +. powerpc/platforms/powernv/opal-powercap.c | 2 +-Īrch/powerpc/platforms/powernv/opal-prd.c | 6 +-Īrch/powerpc/platforms/powernv/opal-psr.c | 2 +-Īrch/powerpc/platforms/powernv/opal-rtc.c | 2 +-Īrch/powerpc/platforms/powernv/opal-secvar.c | 9 ++-Īrch/powerpc/platforms/powernv/opal-sensor.c | 4 +. Powerpc/powernv/idle: Convert stack pointer to physical addressĪrch/powerpc/include/asm/asm-compat.h | 2 +Īrch/powerpc/include/asm/book3s/64/stack.h | 71 +++++++++++++++++++Īrch/powerpc/include/asm/processor.h | 6 ++Īrch/powerpc/kernel/asm-offsets.c | 8 +++Īrch/powerpc/kvm/book3s_hv_builtin.c | 2 +-Īrch/powerpc/kvm/book3s_hv_rmhandlers.S | 3 +-Īrch/powerpc/platforms/Kconfig.cputype | 1 +Īrch/powerpc/platforms/powernv/eeh-powernv.c | 20 +++-Īrch/powerpc/platforms/powernv/idle.c | 47 +++++++++++-Īrch/powerpc/platforms/powernv/ocxl.c | 3 +-Īrch/powerpc/platforms/powernv/opal-core.c | 4 +-Īrch/powerpc/platforms/powernv/opal-dump.c | 6 +-Īrch/powerpc/platforms/powernv/opal-elog.c | 10 +-Īrch/powerpc/platforms/powernv/opal-fadump.c | 12 ++-Īrch/powerpc/platforms/powernv/opal-flash.c | 5 +-Īrch/powerpc/platforms/powernv/opal-hmi.c | 3 +-Īrch/powerpc/platforms/powernv/opal-irqchip.c | 4 +-Īrch/powerpc/platforms/powernv/opal-lpc.c | 8 +-Īrch/powerpc/platforms/powernv/opal-nvram.c | 4 +-Īrch/powerpc/platforms/powernv/opal-power.c | 4 +. Powerpc/powernv: Convert pointers to physical addresses in OPAL call Powerpc/powernv: Keep MSR in register across OPAL entry/return path Powerpc/64s: Helpers to switch between linear and vmapped stack Powerpc/64s: Fix assembly to support larger values of THREAD_SIZE If anyone has better suggestions for the extremely ugly approach to fixing Patches for KVM support but they're not quite ready yet. Right now, VMAP_STACK is only enabled if KVM_BOOK3S_64_HV=n - I'm working on Some reason or another - this includes OPAL, the cpu idle driver, KVM, and a The primary issue is the amount of arch code that has to run in real mode for I'm about to go on holidays for a couple of weeks, and I'll pick it up once I'm Right now, it doesn't boot on my POWER9 machine - I'm sending this as is because This series begins implementing VMAP_STACK support for book3s64 platforms,īuilding on the existing 32-bit work that Christophe Leroy has done. To: linuxppc-dev +Cc: ruscur, cmr, linux-hardening, christophe.leroy VMAP_STACK support for book3s64 All of help / color / mirror / Atom feed * VMAP_STACK support for book3s64 17:27 ` Andrew Donnellan 0 siblings, 0 replies 32+ messages in threadįrom: Andrew Donnellan 17:27 UTC ( / raw)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |