Re: [PATCH] kvm: x86/mmu: Use cpuid to determine max gfn

2020-12-04 Thread Paolo Bonzini
On 04/12/20 01:43, Sean Christopherson wrote: On Thu, Dec 03, 2020, Rick Edgecombe wrote: In the TDP MMU, use shadow_phys_bits to dermine the maximum possible GFN mapped in the guest for zapping operations. boot_cpu_data.x86_phys_bits may be reduced in the case of HW features that steal HPA

Re: [PATCH] kvm: x86/mmu: Use cpuid to determine max gfn

2020-12-03 Thread Sean Christopherson
On Thu, Dec 03, 2020, Rick Edgecombe wrote: > In the TDP MMU, use shadow_phys_bits to dermine the maximum possible GFN > mapped in the guest for zapping operations. boot_cpu_data.x86_phys_bits > may be reduced in the case of HW features that steal HPA bits for other > purposes. However, this

[PATCH] kvm: x86/mmu: Use cpuid to determine max gfn

2020-12-03 Thread Rick Edgecombe
In the TDP MMU, use shadow_phys_bits to dermine the maximum possible GFN mapped in the guest for zapping operations. boot_cpu_data.x86_phys_bits may be reduced in the case of HW features that steal HPA bits for other purposes. However, this doesn't necessarily reduce GPA space that can be accessed