[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3c3f9251-cab4-70ee-6e38-85fe8e6579f7@redhat.com>
Date: Wed, 23 Jun 2021 16:01:28 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Yu Zhang <yu.c.zhang@...ux.intel.com>,
Maxim Levitsky <mlevitsk@...hat.com>
Subject: Re: [PATCH 03/54] KVM: x86: Properly reset MMU context at vCPU
RESET/INIT
On 22/06/21 19:56, Sean Christopherson wrote:
> + /*
> + * Reset the MMU context if paging was enabled prior to INIT (which is
> + * implied if CR0.PG=1 as CR0 will be '0' prior to RESET). Unlike the
> + * standard CR0/CR4/EFER modification paths, only CR0.PG needs to be
> + * checked because it is unconditionally cleared on INIT and all other
> + * paging related bits are ignored if paging is disabled, i.e. CR0.WP,
> + * CR4, and EFER changes are all irrelevant if CR0.PG was '0'.
> + */
> + if (old_cr0 & X86_CR0_PG)
> + kvm_mmu_reset_context(vcpu);
Hmm, I'll answer myself, is it because of the plan to add a vCPU reset
ioctl?
Paolo
Powered by blists - more mailing lists