Re: [PATCH v2 0/2] KVM: x86: skip gfn_track allocation when possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/09/21 06:58, David Stevens wrote:
From: David Stevens<stevensd@xxxxxxxxxxxx>

Skip allocating gfn_track arrays when tracking of guest write access to
pages is not required. For VMs where the allocation can be avoided, this
saves 2 bytes per 4KB of guest memory.

Write tracking is used to manage shadow page tables in three cases -
when tdp is not supported, when nested virtualization is used, and for
GVT-g. If tdp_enable is set and the kernel is compiled without GVT-g,
then the gfn_track arrays can be allocated lazily when the shadow MMU is
initialized.

v1 -> v2:
  - lazily allocate gfn_track when shadow MMU is initialized, instead
    of looking at cpuid

Queued, thanks.

paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux