On 2020-09-11 14:40, Cornelia Huck wrote:
On Mon, 31 Aug 2020 14:05:32 +0200
Pierre Morel <pmorel@xxxxxxxxxxxxx> wrote:
To centralize the memory allocation for I/O we define
the alloc/free_io_page() functions which share the I/O
memory with the host in case the guest runs with
protected virtualization.
...
+
+void *alloc_io_page(int size)
+{
+ void *p;
+
+ assert(size <= PAGE_SIZE);
+ p = alloc_page();
I see that you use this for some I/O structures in the next patch. Is
this guaranteed to be under 2G all the time?
Good catch.
I forgot that I already worked on this problem a while ago, I will
rework the allocation.
Thanks,
Pierre
--
Pierre Morel
IBM Lab Boeblingen