All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: David Matlack <dmatlack@google.com>
Cc: kvm list <kvm@vger.kernel.org>, Ben Gardon <bgardon@google.com>,
	Junaid Shahid <junaids@google.com>,
	Sean Christopherson <seanjc@google.com>,
	Oliver Upton <oupton@google.com>,
	Harish Barathvajasankar <hbarath@google.com>,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	Wanpeng Li <wanpengli@tencent.com>,
	Jim Mattson <jmattson@google.com>, Peter Xu <peterx@redhat.com>,
	Peter Shier <pshier@google.com>
Subject: Re: RFC: KVM: x86/mmu: Eager Page Splitting
Date: Mon, 8 Nov 2021 22:37:50 +0100	[thread overview]
Message-ID: <ba65851f-4f03-e5e2-ac88-139d9b48d44c@redhat.com> (raw)
In-Reply-To: <YYmBMGvU/kthFiM9@google.com>

On 11/8/21 20:57, David Matlack wrote:
>> I'm not super
>> interested in adding eager page splitting for the older methods (clear
>> on KVM_GET_DIRTY_LOG, and manual-clear without initially-all-set), but
>> it should be useful for the ring buffer method and that *should* share
>> most of the code with the older methods.
> 
> Using Eager Page Splitting with the ring buffer method would require
> splitting the entire memslot when dirty logging is enabled for that
> memslot right? Are you saying we should do that?

Yeah, that's why I said it should share code with clear-on-get-dirty.

For initially-all-set, where it's possible to do it and even easy-ish, I 
would like to avoid paying the cost of splitting entirely upfront, when 
enabling dirty page tracking.  But you can already post an RFC that just 
splits always when dirty page tracking is enabled, so that I have a bit 
more of an idea of the new code, and of what it would entail to smear 
the cost over the calls to KVM_CLEAR_DIRTY_LOG.

Thanks,

Paolo


  reply	other threads:[~2021-11-08 21:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04 22:45 RFC: KVM: x86/mmu: Eager Page Splitting David Matlack
2021-11-05  8:44 ` Paolo Bonzini
2021-11-08 19:57   ` David Matlack
2021-11-08 21:37     ` Paolo Bonzini [this message]
2021-11-08 21:39       ` David Matlack
2021-11-05 17:17 ` Janis Schoetterl-Glausch
2021-11-08 21:07   ` David Matlack
2021-11-23 12:15     ` Peter Xu

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=ba65851f-4f03-e5e2-ac88-139d9b48d44c@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=bgardon@google.com \
    --cc=dmatlack@google.com \
    --cc=hbarath@google.com \
    --cc=jmattson@google.com \
    --cc=junaids@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=oupton@google.com \
    --cc=peterx@redhat.com \
    --cc=pshier@google.com \
    --cc=seanjc@google.com \
    --cc=vkuznets@redhat.com \
    --cc=wanpengli@tencent.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.