Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

2021-12-14 Thread Michael Ellerman
On Wed, 1 Sep 2021 18:45:12 +1000, Alexey Kardashevskiy wrote: > The userspace can trigger "vmalloc size %lu allocation failure: exceeds > total pages" via the KVM_SET_USER_MEMORY_REGION ioctl. > > This silences the warning by checking the limit before calling vzalloc() > and returns ENOMEM if

RE: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

2021-09-02 Thread David Laight
... > > This is from my deep Windows past :) > > > > https://docs.microsoft.com/en-us/windows/win32/stg/coding-style-conventions > > =D How interesting! And according to that link 'sz' means "Zero terminated > String". Imagine the confusion.. haha Is that document responsible for some of the

Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

2021-09-02 Thread Fabiano Rosas
Alexey Kardashevskiy writes: > On 02/09/2021 00:59, Fabiano Rosas wrote: >> Alexey Kardashevskiy writes: >> >>> The userspace can trigger "vmalloc size %lu allocation failure: exceeds >>> total pages" via the KVM_SET_USER_MEMORY_REGION ioctl. >>> >>> This silences the warning by checking the

Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

2021-09-01 Thread Alexey Kardashevskiy
On 02/09/2021 00:59, Fabiano Rosas wrote: Alexey Kardashevskiy writes: The userspace can trigger "vmalloc size %lu allocation failure: exceeds total pages" via the KVM_SET_USER_MEMORY_REGION ioctl. This silences the warning by checking the limit before calling vzalloc() and returns ENOMEM

Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

2021-09-01 Thread Fabiano Rosas
Alexey Kardashevskiy writes: > The userspace can trigger "vmalloc size %lu allocation failure: exceeds > total pages" via the KVM_SET_USER_MEMORY_REGION ioctl. > > This silences the warning by checking the limit before calling vzalloc() > and returns ENOMEM if failed. > > This does not call