>
>
> > +static void free_extended_page_bitmap(struct virtio_balloon *vb) {
> > + int i, bmap_count = vb->nr_page_bmap;
> > +
> > + for (i = 1; i < bmap_count; i++) {
> > + kfree(vb->page_bitmap[i]);
> > + vb->page_bitmap[i] = NULL;
> > + vb->nr_page_bmap--;
> >
On Thu, Jan 19, 2017 at 01:44:36AM +, Li, Liang Z wrote:
> > > > > + *range = cpu_to_le64((base_pfn <<
> > > > > + VIRTIO_BALLOON_NR_PFN_BITS) | 0);
> > > > > + *(range + 1) = cpu_to_le64(pages);
> > > > > + vb->resp_pos += 2;
> >
> On Wed, Jan 18, 2017 at 04:56:58AM +, Li, Liang Z wrote:
> > > > - virtqueue_add_outbuf(vq, , 1, vb, GFP_KERNEL);
> > > > - virtqueue_kick(vq);
> > > > +static void do_set_resp_bitmap(struct virtio_balloon *vb,
> > > > + unsigned long base_pfn, int pages)
> > > >
>
On Wed, Jan 18, 2017 at 04:56:58AM +, Li, Liang Z wrote:
> > > - virtqueue_add_outbuf(vq, , 1, vb, GFP_KERNEL);
> > > - virtqueue_kick(vq);
> > > +static void do_set_resp_bitmap(struct virtio_balloon *vb,
> > > + unsigned long base_pfn, int pages)
> > >
> > > - /* When host has read
> > - virtqueue_add_outbuf(vq, , 1, vb, GFP_KERNEL);
> > - virtqueue_kick(vq);
> > +static void do_set_resp_bitmap(struct virtio_balloon *vb,
> > + unsigned long base_pfn, int pages)
> >
> > - /* When host has read buffer, this completes via balloon_ack */
> > -
On Wed, Dec 21, 2016 at 02:52:26PM +0800, Liang Li wrote:
>
> - /* We should always be able to add one buffer to an empty queue. */
> - virtqueue_add_outbuf(vq, , 1, vb, GFP_KERNEL);
> - virtqueue_kick(vq);
> +static void do_set_resp_bitmap(struct virtio_balloon *vb,
> +