diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2018-09-07 14:59:47 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-09-20 01:26:44 +0300 |
commit | 83b20b28c670868bfb717be4fe1557c925a81657 (patch) | |
tree | 9816a94558bc4ae909a50bedd981e77f2ac61ff6 /sound | |
parent | d35b34a9a70edae7ef923f100e51b8b5ae9fe899 (diff) | |
download | linux-83b20b28c670868bfb717be4fe1557c925a81657.tar.xz |
KVM: x86: don't reset root in kvm_mmu_setup()
Here is the code path which shows kvm_mmu_setup() is invoked after
kvm_mmu_create(). Since kvm_mmu_setup() is only invoked in this code path,
this means the root_hpa and prev_roots are guaranteed to be invalid. And
it is not necessary to reset it again.
kvm_vm_ioctl_create_vcpu()
kvm_arch_vcpu_create()
vmx_create_vcpu()
kvm_vcpu_init()
kvm_arch_vcpu_init()
kvm_mmu_create()
kvm_arch_vcpu_setup()
kvm_mmu_setup()
kvm_init_mmu()
This patch set reset_roots to false in kmv_mmu_setup().
Fixes: 50c28f21d045dde8c52548f8482d456b3f0956f5
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions