search for: pages_num

Displaying 1 result from an estimated 1 matches for "pages_num".

Did you mean: page_num
2020 May 13
0
[RFC v3 for QEMU] virtio-balloon: Add option cont-pages to set VIRTIO_BALLOON_VQ_INFLATE_CONT
...e { > ram_addr_t base_gpa; > @@ -72,6 +73,8 @@ static void balloon_inflate_page(VirtIOBalloon *balloon, > RAMBlock *rb; > size_t rb_page_size; > int subpages; > + size_t inflate_size = BALLOON_PAGE_SIZE << balloon->current_pages_order; > + int pages_num; reverse christmas tree please. squash same types into a single line if possible. > > /* XXX is there a better way to get to the RAMBlock than via a > * host address? */ > @@ -81,7 +84,7 @@ static void balloon_inflate_page(VirtIOBalloon *balloon, > if (rb_page_siz...