Hello Jan and Andrew,
I have adressed your feedback and replaced the for loop with
xvzalloc_array() in ioreq_server_alloc_mfn. This indeed simplifies the
code in that function. I have also addressed the other points
(indentation patch, blank lines, etc.). I just couldn't come up with a
better solution for the struct ioreq_server. We now have a new member
ioreq_gfn, to track the guest frame number. Any thoughts on this?
Julian Vetter (3):
x86/ioreq: Add missing put_page_alloc_ref(page)
x86/ioreq: Prepare spacing for upcoming patch
x86/ioreq: Extend ioreq server to support multiple ioreq pages
xen/arch/x86/hvm/ioreq.c | 264 ++++++++++++++++++++++++++++-----
xen/common/ioreq.c | 96 +++++++++---
xen/include/public/hvm/ioreq.h | 5 +
xen/include/xen/ioreq.h | 13 +-
4 files changed, 323 insertions(+), 55 deletions(-)
Signed-off-by: Julian Vetter <julian.vetter@vates.tech>
--
2.51.0
--
Julian Vetter | Vates Hypervisor & Kernel Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech