public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* question: KVM_MR_CREATE and kvm_mmu_slot_apply_flags()
@ 2020-05-15 21:28 Anthony Yznaga
  2020-05-15 23:41 ` Sean Christopherson
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Yznaga @ 2020-05-15 21:28 UTC (permalink / raw)
  To: kvm

Hi,

I'm investigating optimizing qemu start time for large memory guests,
and I'm trying to understand why kvm_mmu_slot_apply_flags() is called by
kvm_arch_commit_memory_region() for KVM_MR_CREATE.  The comments in
kvm_mmu_slot_apply_flags() imply it should be, but what I've observed is
that the new slot will have no mappings resulting in slot_handle_level_range()
walking the rmaps and doing nothing.  This can take a noticeable amount of
time for very large ranges.  It doesn't look like there would ever be any
mappings in a newly created slot.  Am I missing something?

Thanks,
Anthony

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-16  0:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-15 21:28 question: KVM_MR_CREATE and kvm_mmu_slot_apply_flags() Anthony Yznaga
2020-05-15 23:41 ` Sean Christopherson
2020-05-16  0:48   ` Anthony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox