Re: [PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-02-22 Thread Paolo Bonzini
On 20/02/19 08:06, Yu Zhang wrote: > Hi Paolo, any comments on this patch? And the other one(kvm: x86: Return > LA57 feature based on hardware capability )? :-) Queued both, thanks. Paolo > On Fri, Feb 01, 2019 at 12:09:23AM +0800, Yu Zhang wrote: >> Previously, commit 7dcd57552008 ("x86/kvm/mmu

Re: [PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-02-20 Thread Yu Zhang
On Wed, Feb 20, 2019 at 03:06:10PM +0100, Vitaly Kuznetsov wrote: > Yu Zhang writes: > > > Previously, commit 7dcd57552008 ("x86/kvm/mmu: check if tdp/shadow > > MMU reconfiguration is needed") offered some optimization to avoid > > the unnecessary reconfiguration. Yet one scenario is broken - wh

Re: [PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-02-20 Thread Vitaly Kuznetsov
Yu Zhang writes: > Previously, commit 7dcd57552008 ("x86/kvm/mmu: check if tdp/shadow > MMU reconfiguration is needed") offered some optimization to avoid > the unnecessary reconfiguration. Yet one scenario is broken - when > cpuid changes VM's maximum physical address width, reconfiguration > is

Re: [PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-02-19 Thread Yu Zhang
Hi Paolo, any comments on this patch? And the other one(kvm: x86: Return LA57 feature based on hardware capability )? :-) On Fri, Feb 01, 2019 at 12:09:23AM +0800, Yu Zhang wrote: > Previously, commit 7dcd57552008 ("x86/kvm/mmu: check if tdp/shadow > MMU reconfiguration is needed") offered some op

[PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-01-31 Thread Yu Zhang
Previously, commit 7dcd57552008 ("x86/kvm/mmu: check if tdp/shadow MMU reconfiguration is needed") offered some optimization to avoid the unnecessary reconfiguration. Yet one scenario is broken - when cpuid changes VM's maximum physical address width, reconfiguration is needed to reset the reserved