public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Wei Wang <wei.w.wang@intel.com>
To: Nitesh Narayan Lal <niteshnarayanlalleo@gmail.com>, kvm@vger.kernel.org
Cc: pbonzini@redhat.com, nilal@redhat.com, pagupta@redhat.com,
	yang.zhang.wz@gmail.com, riel@redhat.com, david@redhat.com,
	mst@redhat.com
Subject: Re: [Patch v2 0/4] KVM: Guest page hinting
Date: Fri, 15 Sep 2017 10:07:35 +0800	[thread overview]
Message-ID: <59BB35E7.8070608@intel.com> (raw)
In-Reply-To: <20170913161705.20374-1-niteshnarayanlalleo@gmail.com>

On 09/14/2017 12:17 AM, Nitesh Narayan Lal wrote:
> Changelog in v2:
>          - Addressed comments provided in v1
>          - Implementation to pass the global hyperlist (carrying pages which are to be freed) to the host by using existing virtio-balloon infrastructure (deflate_vq).
>
> I am using synchronous virtqueue_kick API for which changes in virtio_ring.c and virtio.h are picked from Wei Wang's patch-set for Virtio-balloon enhancement [2]. ("Wei, How would you like me to credit you in the final patch?"). I am using this API because it doesn't requires any memory allocation in order to pass the list of pfns to the host. Which is required because of the seqlock used in arch_free_page to prevent memory allocations.
>
> Query:
>          - So far I don't have any implementation in QEMU. I have added few prints in QEMU balloon code to ensure that the guest page hinting kick is landing in the right location. As per my understanding on using deflate_vq QEMU's "virtio_balloon_handle_output" in hw/virtio/virtio-balloon.c should be invoked after the kick. But in my case for some reason that is not getting invoked. Any suggestions where am I going wrong?
>
> [1] http://www.spinics.net/lists/kvm/msg153666.html
> [2] http://www.spinics.net/lists/kvm/msg152734.html;
>

Hi Nitesh,

I had a quick look of this approach, and have some high-level questions:

1) What's the usage of the feature, in addition to accelerating live 
migration?

2) Are the free page hints continuously added to and removed from the 
per CPU arrays during the whole lifecycle of the guest whenever 
alloc/free is invoked?

3) The per-CPU arrays are sync-ed to a hypervisor page array under a 
lock. If all the CPUs happen to do the sync at the same time, the later 
ones may be possible to spin too long?


Best,
Wei

  parent reply	other threads:[~2017-09-15  2:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 16:17 [Patch v2 0/4] KVM: Guest page hinting Nitesh Narayan Lal
2017-09-13 16:17 ` [Patch v2 1/4] KVM: Support for guest " Nitesh Narayan Lal
2017-09-14 19:26   ` kbuild test robot
2017-09-14 20:56   ` kbuild test robot
2017-09-13 16:17 ` [Patch v2 2/4] KVM: Guest page hinting functionality Nitesh Narayan Lal
2017-09-13 16:17 ` [Patch v2 3/4] KVM: Adding tracepoints for guest page hinting Nitesh Narayan Lal
2017-09-13 16:17 ` [Patch v2 4/4] KVM: Sending hyperlist to the host via deflate_vq Nitesh Narayan Lal
2017-09-14 20:26   ` kbuild test robot
2017-09-14 20:29   ` kbuild test robot
2017-09-15  2:07 ` Wei Wang [this message]
2017-09-15 20:16   ` [Patch v2 0/4] KVM: Guest page hinting Nitesh Narayan Lal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59BB35E7.8070608@intel.com \
    --to=wei.w.wang@intel.com \
    --cc=david@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=nilal@redhat.com \
    --cc=niteshnarayanlalleo@gmail.com \
    --cc=pagupta@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=riel@redhat.com \
    --cc=yang.zhang.wz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox