From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:45359 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728392AbhAVONm (ORCPT ); Fri, 22 Jan 2021 09:13:42 -0500 Subject: Re: [kvm-unit-tests PATCH v5 2/3] s390x: define UV compatible I/O allocation References: <1611322060-1972-1-git-send-email-pmorel@linux.ibm.com> <1611322060-1972-3-git-send-email-pmorel@linux.ibm.com> From: Thomas Huth Message-ID: <0393eaa1-e3e8-21c4-4e8f-b8dc2cc82983@redhat.com> Date: Fri, 22 Jan 2021 15:12:05 +0100 MIME-Version: 1.0 In-Reply-To: <1611322060-1972-3-git-send-email-pmorel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-ID: To: Pierre Morel , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, frankja@linux.ibm.com, david@redhat.com, cohuck@redhat.com, imbrenda@linux.ibm.com, drjones@redhat.com, pbonzini@redhat.com On 22/01/2021 14.27, Pierre Morel wrote: > To centralize the memory allocation for I/O we define > the alloc_io_mem/free_io_mem functions which share the I/O > memory with the host in case the guest runs with > protected virtualization. > > These functions allocate on a page integral granularity to > ensure a dedicated sharing of the allocated objects. > > Signed-off-by: Pierre Morel > --- > lib/s390x/malloc_io.c | 71 +++++++++++++++++++++++++++++++++++++++++++ > lib/s390x/malloc_io.h | 45 +++++++++++++++++++++++++++ > s390x/Makefile | 1 + > 3 files changed, 117 insertions(+) > create mode 100644 lib/s390x/malloc_io.c > create mode 100644 lib/s390x/malloc_io.h Acked-by: Thomas Huth