Re: [PATCH] powerpc/kprobes: Pass ppc_inst as a pointer to emulate_step() on ppc32

2021-05-21 Thread Naveen N. Rao
Christophe Leroy wrote: Le 20/05/2021 à 12:54, Naveen N. Rao a écrit : Christophe Leroy wrote: Le 20/05/2021 à 09:29, Naveen N. Rao a écrit : diff --git a/arch/powerpc/kernel/optprobes.c b/arch/powerpc/kernel/optprobes.c index cdf87086fa33a0..2bc53fa48a1b33 100644 --- a/arch/powerpc/kerne

Re: [PATCH 00/16] Rid W=1 warnings from Char

2021-05-21 Thread Lee Jones
On Thu, 20 May 2021, Arnd Bergmann wrote: > On Thu, May 20, 2021 at 2:13 PM Lee Jones wrote: > > > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > > > Lee Jones (16): > > char: pc

Re: [PATCH 00/16] Rid W=1 warnings from Char

2021-05-21 Thread Greg Kroah-Hartman
On Fri, May 21, 2021 at 08:22:36AM +0100, Lee Jones wrote: > On Thu, 20 May 2021, Arnd Bergmann wrote: > > > On Thu, May 20, 2021 at 2:13 PM Lee Jones wrote: > > > > > > This set is part of a larger effort attempting to clean-up W=1 > > > kernel builds, which are currently overwhelmingly riddled

Re: [PATCH 00/16] Rid W=1 warnings from Char

2021-05-21 Thread Greg Kroah-Hartman
On Fri, May 21, 2021 at 09:42:29AM +0200, Greg Kroah-Hartman wrote: > On Fri, May 21, 2021 at 08:22:36AM +0100, Lee Jones wrote: > > On Thu, 20 May 2021, Arnd Bergmann wrote: > > > > > On Thu, May 20, 2021 at 2:13 PM Lee Jones wrote: > > > > > > > > This set is part of a larger effort attempting

Re: [PATCH 00/16] Rid W=1 warnings from Char

2021-05-21 Thread Lee Jones
On Fri, 21 May 2021, Greg Kroah-Hartman wrote: > On Fri, May 21, 2021 at 09:42:29AM +0200, Greg Kroah-Hartman wrote: > > On Fri, May 21, 2021 at 08:22:36AM +0100, Lee Jones wrote: > > > On Thu, 20 May 2021, Arnd Bergmann wrote: > > > > > > > On Thu, May 20, 2021 at 2:13 PM Lee Jones wrote: > > >

Re: [PATCH 1/3] sched/topology: Allow archs to populate distance map

2021-05-21 Thread Peter Zijlstra
On Fri, May 21, 2021 at 08:08:02AM +0530, Srikar Dronamraju wrote: > * Peter Zijlstra [2021-05-20 20:56:31]: > > > On Thu, May 20, 2021 at 09:14:25PM +0530, Srikar Dronamraju wrote: > > > Currently scheduler populates the distance map by looking at distance > > > of each node from all other nodes

Re: [PATCH 19/26] nfblock: convert to blk_alloc_disk/blk_cleanup_disk

2021-05-21 Thread Geert Uytterhoeven
On Fri, May 21, 2021 at 7:52 AM Christoph Hellwig wrote: > Convert the nfblock driver to use the blk_alloc_disk and blk_cleanup_disk > helpers to simplify gendisk and request_queue allocation. > > Signed-off-by: Christoph Hellwig Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH 6/9] tty: hvc_console: Fix coding style issues of block comments

2021-05-21 Thread Johan Hovold
On Thu, May 20, 2021 at 08:21:39AM -0700, Joe Perches wrote: > On Thu, 2021-05-20 at 10:21 +0200, Johan Hovold wrote: > > On Tue, May 18, 2021 at 12:01:22PM +0800, Xiaofei Tan wrote: > > > On 2021/5/17 22:15, Johan Hovold wrote: > > > > How is this an improvement? First, the multi-line comment sty

[PATCH v4 00/16] Enable VAS and NX-GZIP support on powerVM

2021-05-21 Thread Haren Myneni
Virtual Accelerator Switchboard (VAS) allows kernel subsystems and user space processes to directly access the Nest Accelerator (NX) engines which provides HW compression. The true user mode VAS/NX support on PowerNV is already included in Linux. Whereas PowerVM support is available from P10 onwa

[PATCH v4 01/16] powerpc/vas: Move VAS API to book3s common platform

2021-05-21 Thread Haren Myneni
Using the same /dev/crypto/nx-gzip interface for both powerNV and pseries. So this patch creates platforms/book3s/ and moves VAS API to that directory. The actual functionality is not changed. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/vas.h| 3 +++ arch/powe

Re: [PATCH 1/3] sched/topology: Allow archs to populate distance map

2021-05-21 Thread Srikar Dronamraju
* Peter Zijlstra [2021-05-21 10:14:10]: > On Fri, May 21, 2021 at 08:08:02AM +0530, Srikar Dronamraju wrote: > > * Peter Zijlstra [2021-05-20 20:56:31]: > > > > > On Thu, May 20, 2021 at 09:14:25PM +0530, Srikar Dronamraju wrote: > > > > Currently scheduler populates the distance map by looking

[PATCH v4 03/16] powerpc/vas: Add platform specific user window operations

2021-05-21 Thread Haren Myneni
PowerNV uses registers to open/close VAS windows, and getting the paste address. Whereas the hypervisor calls are used on PowerVM. This patch adds the platform specific user space window operations and register with the common VAS user space interface. Signed-off-by: Haren Myneni --- arch/pow

[PATCH v4 02/16] powerpc/powernv/vas: Rename register/unregister functions

2021-05-21 Thread Haren Myneni
powerNV and pseries drivers register / unregister to the corresponding platform specific VAS separately. Then these VAS functions call the common API with the specific window operations. So rename powerNV VAS API register/unregister functions. Signed-off-by: Haren Myneni Reviewed-by: Nicholas P

[PATCH v4 04/16] powerpc/vas: Create take/drop pid and mm references

2021-05-21 Thread Haren Myneni
Take pid and mm references when each window opens and drops during close. This functionality is needed for powerNV and pseries. So this patch defines the existing code as functions in common book3s platform vas-api.c Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/vas.h |

[PATCH v4 05/16] powerpc/vas: Move update_csb/dump_crb to common book3s platform

2021-05-21 Thread Haren Myneni
If a coprocessor encounters an error translating an address, the VAS will cause an interrupt in the host. The kernel processes the fault by updating CSB. This functionality is same for both powerNV and pseries. So this patch moves these functions to common vas-api.c and the actual functionality i

[PATCH v4 06/16] powerpc/vas: Define and use common vas_window struct

2021-05-21 Thread Haren Myneni
Same vas_window struct is used on powerNV and pseries. So this patch changes in struct vas_window to support both platforms and also the corresponding modifications in powerNV vas code. On powerNV, vas_window is used for both TX and RX windows, whereas only for TX windows on powerVM. So some ele

[PATCH v4 07/16] powerpc/pseries/vas: Define VAS/NXGZIP HCALLs and structs

2021-05-21 Thread Haren Myneni
This patch adds HCALLs and other definitions. Also define structs that are used in VAS implementation on powerVM. Signed-off-by: Haren Myneni --- arch/powerpc/include/asm/hvcall.h| 7 ++ arch/powerpc/include/asm/vas.h | 32 arch/powerpc/platforms/pseries/vas.h | 110 +

[PATCH v4 08/16] powerpc/vas: Define QoS credit flag to allocate window

2021-05-21 Thread Haren Myneni
PowerVM introduces two different type of credits: Default and Quality of service (QoS). The total number of default credits available on each LPAR depends on CPU resources configured. But these credits can be shared or over-committed across LPARs in shared mode which can result in paste command

[PATCH v4 09/16] powerpc/pseries/vas: Add HCALL wrappers for VAS handling

2021-05-21 Thread Haren Myneni
This patch adds the following HCALL wrapper functions to allocate, modify and deallocate VAS windows, and retrieve VAS capabilities. H_ALLOCATE_VAS_WINDOW: Allocate VAS window H_DEALLOCATE_VAS_WINDOW: Close VAS window H_MODIFY_VAS_WINDOW: Setup window before using H_QUERY_VAS_CAPABILITIES: Get V

[PATCH v4 10/16] powerpc/pseries/vas: Implement getting capabilities from hypervisor

2021-05-21 Thread Haren Myneni
The hypervisor provides VAS capabilities for GZIP default and QoS features. These capabilities gives information for the specific features such as total number of credits available in LPAR, maximum credits allowed per window, maximum credits allowed in LPAR, whether usermode copy/paste is support

[PATCH v4 11/16] powerpc/pseries/vas: Integrate API with open/close windows

2021-05-21 Thread Haren Myneni
This patch adds VAS window allocatioa/close with the corresponding HCALLs. Also changes to integrate with the existing user space VAS API and provide register/unregister functions to NX pseries driver. The driver register function is used to create the user space interface (/dev/crypto/nx-gzip)

[PATCH v4 12/16] powerpc/pseries/vas: Setup IRQ and fault handling

2021-05-21 Thread Haren Myneni
NX generates an interrupt when sees a fault on the user space buffer and the hypervisor forwards that interrupt to OS. Then the kernel handles the interrupt by issuing H_GET_NX_FAULT hcall to retrieve the fault CRB information. This patch also adds changes to setup and free IRQ per each window a

[PATCH v4 13/16] crypto/nx: Rename nx-842-pseries file name to nx-common-pseries

2021-05-21 Thread Haren Myneni
Rename nx-842-pseries.c to nx-common-pseries.c to add code for new GZIP compression type. The actual functionality is not changed in this patch. Signed-off-by: Haren Myneni Acked-by: Herbert Xu --- drivers/crypto/nx/Makefile | 2 +- drivers/crypto/nx/{nx-842-p

[PATCH v4 14/16] crypto/nx: Register and unregister VAS interface

2021-05-21 Thread Haren Myneni
Changes to create /dev/crypto/nx-gzip interface with VAS register and to remove this interface with VAS unregister. Signed-off-by: Haren Myneni Acked-by: Herbert Xu --- drivers/crypto/nx/Kconfig | 1 + drivers/crypto/nx/nx-common-pseries.c | 9 + 2 files changed, 10 insert

[PATCH v4 15/16] crypto/nx: Get NX capabilities for GZIP coprocessor type

2021-05-21 Thread Haren Myneni
The hypervisor provides different capabilities that it supports to define the user space NX request. These capabilities are recommended minimum compression / decompression lengths and the maximum request buffer size in bytes. Changes to get NX overall capabilities which points to the specific fe

[PATCH v4 16/16] crypto/nx: Add sysfs interface to export NX capabilities

2021-05-21 Thread Haren Myneni
Changes to export the following NXGZIP capabilities through sysfs: /sys/devices/vio/ibm,compression-v1/NxGzCaps: min_compress_len /*Recommended minimum compress length in bytes*/ min_decompress_len /*Recommended minimum decompress length in bytes*/ req_max_processed_len /* Maximum number of byt

[PATCH] powerpc/papr_scm: Add support for reporting dirty-shutdown-count

2021-05-21 Thread Vaibhav Jain
Persistent memory devices like NVDIMMs can loose cached writes in case something prevents flush on power-fail. Such situations are termed as dirty shutdown and are exposed to applications as last-shutdown-state (LSS) flag and a dirty-shutdown-counter(DSC) as described at [1]. The latter being usefu

[PATCH v2 00/11] powerpc/64: fast interrupt exits

2021-05-21 Thread Nicholas Piggin
This series attempts to improve the speed of interrupts and system calls in three major ways. Firstly, the SRR/HSRR registers do not need to be reloaded if they were clobbered for the duration of the interrupt and the return NIP and MSR did not changed. 64e does not implement this part, but it cou

[PATCH v2 01/11] powerpc: remove interrupt exit helpers unused argument

2021-05-21 Thread Nicholas Piggin
The msr argument is not used, remove it. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/asm-prototypes.h | 4 ++-- arch/powerpc/kernel/interrupt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/asm-prototypes.h b/arch/pow

[PATCH v2 02/11] powerpc/64s: introduce different functions to return from SRR vs HSRR interrupts

2021-05-21 Thread Nicholas Piggin
This makes no real difference yet except that HSRR type interrupts will use hrfid to return. This is important for the next patch. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/entry_64.S | 65 +--- arch/powerpc/kernel/exceptions-64e.S | 4 ++ arch/powerpc/ker

[PATCH v2 03/11] powerpc/64s: avoid reloading (H)SRR registers if they are still valid

2021-05-21 Thread Nicholas Piggin
When an interrupt is taken, the SRR registers are set to return to where it left off. Unless they are modified in the meantime, or the return address or MSR are modified, there is no need to reload these registers when returning from interrupt. Introduce per-CPU flags that track the validity of SR

[PATCH v2 04/11] powerpc/64: handle MSR EE and RI in interrupt entry wrapper

2021-05-21 Thread Nicholas Piggin
Similarly to the system call change in the previous patch, the mtmsrd to enable RI can be combined with the mtmsrd to enable EE for interrupts which enable the latter, which tends to be the important synchronous interrupts (i.e., page faults). Do this by enabling EE and RI together at the beginnin

[PATCH v2 05/11] powerpc/64: move interrupt return asm to interrupt_64.S

2021-05-21 Thread Nicholas Piggin
The next patch would like to move interrupt return assembly code to a low location before general text, so move it into its own file and include via head_64.S Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/head-64.h | 2 +- arch/powerpc/kernel/entry_64.S | 623

[PATCH v2 06/11] powerpc/64s: system call avoid setting MSR[RI] until we set MSR[EE]

2021-05-21 Thread Nicholas Piggin
This extends the MSR[RI]=0 window a little further into the system call in order to pair RI and EE enabling with a single mtmsrd. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 2 -- arch/powerpc/kernel/interrupt_64.S | 4 ++-- 2 files changed, 2 insertions(+), 4 del

[PATCH v2 07/11] powerpc/64s: save one more register in the masked interrupt handler

2021-05-21 Thread Nicholas Piggin
This frees up one more register (and takes advantage of that to clean things up a little bit). This register will be used in the following patch. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 34 1 file changed, 20 insertions(+), 14 delet

[PATCH v2 08/11] powerpc/64: allow alternate return locations for soft-masked interrupts

2021-05-21 Thread Nicholas Piggin
The exception table fixup adjusts a failed page fault's interrupt return location if it was taken at an address specified in the exception table, to a corresponding fixup handler address. Introduce a variation of that idea which adds a fixup table for NMIs and soft-masked asynchronous interrupts.

[PATCH v2 10/11] powerpc/64: treat low kernel text as irqs soft-masked

2021-05-21 Thread Nicholas Piggin
Treat code below __end_soft_masked as soft-masked for the purpose of alternate return. 64s already mostly does this for scv entry. This will be used to exit from interrupts without disabling MSR[EE]. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/interrupt.h | 8 ++-- arch/pow

[PATCH v2 09/11] powerpc/64: interrupt soft-enable race fix

2021-05-21 Thread Nicholas Piggin
Prevent interrupt restore from allowing racing hard interrupts going ahead of previous soft-pending ones, by using the soft-masked restart handler to allow a store to clear the soft-mask while knowing nothing is soft-pending. This probably doesn't matter much in practice, but it's a simple demonst

[PATCH v2 11/11] powerpc/64: use interrupt restart table to speed up return from interrupt

2021-05-21 Thread Nicholas Piggin
Use the restart table facility to return from interrupt or system calls without disabling MSR[EE] or MSR[RI]. Interrupt return asm is put into the low soft-masked region, to prevent interrupts being processed here, although they are still taken as masked interrupts which causes SRRs to be clobbere

Re: [PATCH 1/2] powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls

2021-05-21 Thread Michael Ellerman
On Thu, 20 May 2021 21:19:30 +1000, Nicholas Piggin wrote: > The sc and scv 0 system calls have different ABI conventions, and > ptracers need to know which system call type is being used if it wants > to look at the syscall registers. > > Document that pt_regs.trap can be used for this, and fix o

Re: [RFC PATCH kernel] powerpc: Fix early setup to make early_ioremap work

2021-05-21 Thread Michael Ellerman
On Thu, 20 May 2021 13:29:19 +1000, Alexey Kardashevskiy wrote: > The immediate problem is that after > 0bd3f9e953bd ("powerpc/legacy_serial: Use early_ioremap()") > the kernel silently reboots. The reason is that early_ioremap() returns > broken addresses as it uses slot_virt[] array which initial

Re: [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN

2021-05-21 Thread Greg KH
On Fri, May 14, 2021 at 04:44:22PM -0500, Nathan Lynch wrote: > hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN > when the underlying hcall returns a "busy" status, but udbg_hvc_putc() > doesn't handle this. When using xmon on a PowerVM guest, this can > result in incomplete

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Aneesh Kumar K.V
On 5/21/21 11:43 AM, Linus Torvalds wrote: On Thu, May 20, 2021 at 5:03 PM Aneesh Kumar K.V wrote: On 5/21/21 8:10 AM, Linus Torvalds wrote: So mremap does need to flush the TLB before releasing the page table lock, because that's the lifetime boundary for the page that got moved. How will

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > On 5/21/21 11:43 AM, Linus Torvalds wrote: >> On Thu, May 20, 2021 at 5:03 PM Aneesh Kumar K.V >> wrote: >>> >>> On 5/21/21 8:10 AM, Linus Torvalds wrote: So mremap does need to flush the TLB before releasing the page table lock, because that's the lif

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Liam Howlett
* Aneesh Kumar K.V [210521 08:51]: > On 5/21/21 11:43 AM, Linus Torvalds wrote: > > On Thu, May 20, 2021 at 5:03 PM Aneesh Kumar K.V > > wrote: > > > > > > On 5/21/21 8:10 AM, Linus Torvalds wrote: > > > > > > > > So mremap does need to flush the TLB before releasing the page table > > > > lock

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Aneesh Kumar K.V
On 5/21/21 8:54 PM, Liam Howlett wrote: * Aneesh Kumar K.V [210521 08:51]: On 5/21/21 11:43 AM, Linus Torvalds wrote: On Thu, May 20, 2021 at 5:03 PM Aneesh Kumar K.V wrote: On 5/21/21 8:10 AM, Linus Torvalds wrote: So mremap does need to flush the TLB before releasing the page table lock

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Linus Torvalds
On Fri, May 21, 2021 at 3:04 AM Aneesh Kumar K.V wrote: > > We could do MOVE_PMD with something like below? A equivalent MOVE_PUD > will be costlier which makes me wonder whether we should even support that? Well, without USE_SPLIT_PTE_PTLOCKS the pud case would be trivial too. But everybody uses

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Linus Torvalds
On Fri, May 21, 2021 at 5:25 AM Liam Howlett wrote: > > mremap holds the mmap_sem in write mode as well, doesn't it? How is the user > thread > getting the new location? No amount of locking protects against the HW page table walker (or, indeed, software ones, but they are irrelevant). And an

Re: [PATCH v5 7/9] mm/mremap: Move TLB flush outside page table lock

2021-05-21 Thread Aneesh Kumar K.V
On 5/21/21 9:33 PM, Linus Torvalds wrote: On Fri, May 21, 2021 at 3:04 AM Aneesh Kumar K.V wrote: We could do MOVE_PMD with something like below? A equivalent MOVE_PUD will be costlier which makes me wonder whether we should even support that? Well, without USE_SPLIT_PTE_PTLOCKS the pud case

Re: [dm-devel] [PATCH 01/26] block: refactor device number setup in __device_add_disk

2021-05-21 Thread Luis Chamberlain
On Fri, May 21, 2021 at 07:50:51AM +0200, Christoph Hellwig wrote: > diff --git a/block/genhd.c b/block/genhd.c > index 39ca97b0edc6..2c00bc3261d9 100644 > --- a/block/genhd.c > +++ b/block/genhd.c > @@ -335,52 +335,22 @@ static int blk_mangle_minor(int minor) <-- snip --> > -int blk_alloc_devt(s

Re: [dm-devel] [PATCH 02/26] block: move the DISK_MAX_PARTS sanity check into __device_add_disk

2021-05-21 Thread Luis Chamberlain
On Fri, May 21, 2021 at 07:50:52AM +0200, Christoph Hellwig wrote: > Keep this together with the first place that actually looks at > ->minors and prepare for not passing a minors argument to > alloc_disk. > > Signed-off-by: Christoph Hellwig Reviewed-by: Luis Chamberlain Luis

Re: [dm-devel] [PATCH 03/26] block: automatically enable GENHD_FL_EXT_DEVT

2021-05-21 Thread Luis Chamberlain
On Fri, May 21, 2021 at 07:50:53AM +0200, Christoph Hellwig wrote: > Automatically set the GENHD_FL_EXT_DEVT flag for all disks allocated > without an explicit number of minors. This is what all new block > drivers should do, so make sure it is the default without boilerplate > code. > > Signed-o

Re: [dm-devel] [PATCH 04/26] block: add a flag to make put_disk on partially initalized disks safer

2021-05-21 Thread Luis Chamberlain
On Fri, May 21, 2021 at 07:50:54AM +0200, Christoph Hellwig wrote: > Add a flag to indicate that __device_add_disk did grab a queue reference > so that disk_release only drops it if we actually had it. This sort > out one of the major pitfals with partially initialized gendisk that > a lot of driv

Re: [PATCH v2 01/11] powerpc: remove interrupt exit helpers unused argument

2021-05-21 Thread Christophe Leroy
Nicholas Piggin a écrit : The msr argument is not used, remove it. Why not keep and use that msr argument instead of re-reading regs->msr ? Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/asm-prototypes.h | 4 ++-- arch/powerpc/kernel/interrupt.c | 4 ++-- 2 files c

Re: [dm-devel] [PATCH 05/26] block: add blk_alloc_disk and blk_cleanup_disk APIs

2021-05-21 Thread Luis Chamberlain
On Fri, May 21, 2021 at 07:50:55AM +0200, Christoph Hellwig wrote: > Add two new APIs to allocate and free a gendisk including the > request_queue for use with BIO based drivers. This is to avoid > boilerplate code in drivers. > > Signed-off-by: Christoph Hellwig > --- > block/genhd.c |

Re: Linux powerpc new system call instruction and ABI

2021-05-21 Thread Matheus Castanho
Nicholas Piggin writes: > Excerpts from Nicholas Piggin's message of May 19, 2021 12:50 pm: >> Excerpts from Dmitry V. Levin's message of May 19, 2021 9:13 am: >>> Hi, >>> >>> On Thu, Jun 11, 2020 at 06:12:01PM +1000, Nicholas Piggin wrote: >>> [...] - Error handling: The consensus among k

Re: Linux powerpc new system call instruction and ABI

2021-05-21 Thread Florian Weimer
* Matheus Castanho via Libc-alpha: > From: Nicholas Piggin > Subject: [PATCH 1/1] powerpc: Fix handling of scv return error codes > > When using scv on templated ASM syscalls, current code interprets any > negative return value as error, but the only valid error codes are in > the range -4095..-1

Re: Linux powerpc new system call instruction and ABI

2021-05-21 Thread Matheus Castanho
Florian Weimer writes: > * Matheus Castanho via Libc-alpha: > >> From: Nicholas Piggin >> Subject: [PATCH 1/1] powerpc: Fix handling of scv return error codes >> >> When using scv on templated ASM syscalls, current code interprets any >> negative return value as error, but the only valid error

Re: Linux powerpc new system call instruction and ABI

2021-05-21 Thread Dmitry V. Levin
On Fri, May 21, 2021 at 05:00:36PM -0300, Matheus Castanho wrote: > Florian Weimer writes: > > * Matheus Castanho via Libc-alpha: > >> From: Nicholas Piggin > >> Subject: [PATCH 1/1] powerpc: Fix handling of scv return error codes > >> > >> When using scv on templated ASM syscalls, current code i

Re: [PATCH 0/8] xen: harden frontends against malicious backends

2021-05-21 Thread Marek Marczykowski-Górecki
On Thu, May 13, 2021 at 12:02:54PM +0200, Juergen Gross wrote: > Xen backends of para-virtualized devices can live in dom0 kernel, dom0 > user land, or in a driver domain. This means that a backend might > reside in a less trusted environment than the Xen core components, so > a backend should not