Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1598527

RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

From "Wang, Wei W" <wei.w.wang@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER
Date 2017-03-12 03:10 +0100
Message-ID <tk17j-3bm-1@gated-at.bofh.it> (permalink)
References (3 earlier) <tjr3Q-3kY-19@gated-at.bofh.it> <tjv7r-66F-17@gated-at.bofh.it> <tjwmS-75R-13@gated-at.bofh.it> <tjNQJ-2hn-11@gated-at.bofh.it> <tjQ2d-3XU-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03/11/2017 10:10 PM, Matthew Wilcox wrote:
> On Sat, Mar 11, 2017 at 07:59:31PM +0800, Wei Wang wrote:
> > I'm thinking what if the guest needs to transfer these much physically
> > continuous memory to host: 1GB+2MB+64KB+32KB+16KB+4KB.
> > Is it going to use Six 64-bit chunks? Would it be simpler if we just
> > use the 128-bit chunk format (we can drop the previous normal 64-bit
> > format)?
> 
> Is that a likely thing for the guest to need to do though?  Freeing a 1GB page is
> much more liikely, IMO.

Yes, I think it's very possible. The host can ask for any number of pages (e.g. 1.5GB) that the guest can afford.  Also, the ballooned 1.5G memory is not guaranteed to be continuous in any pattern like 1GB+512MB. That's why we need to use a bitmap to draw the whole picture first, and then seek for continuous bits to chunk.

Best,
Wei

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-03 06:50 +0100
  Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-08 07:00 +0100
    Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation  of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-10 11:10 +0100
      Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon:  implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER David Hildenbrand <david@redhat.com> - 2017-03-10 14:30 +0100
      Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon:  implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 16:40 +0100
  Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-09 15:20 +0100
    Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-10 12:40 +0100
      Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 17:00 +0100
        Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 18:20 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 20:20 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 22:20 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 20:40 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 22:30 +0100
              Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 01:10 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-11 13:00 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-11 15:20 +0100
              RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Wang, Wei W" <wei.w.wang@intel.com> - 2017-03-12 03:10 +0100
                Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 05:10 +0100
                RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Wang, Wei W" <wei.w.wang@intel.com> - 2017-03-13 13:50 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 01:10 +0100

csiph-web