Merge branches 'edac-spr', 'edac-igen6' and 'edac-misc' into edac-updates-for-v5.11
[sfrench/cifs-2.6.git] / arch / x86 / kvm / mmu / mmu.c
index 5bb1939b65d8d910717218178a151e9af316bf3a..7a6ae9e90bd708880e38781cb839d92f22992a2b 100644 (file)
@@ -3517,7 +3517,7 @@ static bool get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr, u64 *sptep)
 {
        u64 sptes[PT64_ROOT_MAX_LEVEL];
        struct rsvd_bits_validate *rsvd_check;
-       int root = vcpu->arch.mmu->root_level;
+       int root = vcpu->arch.mmu->shadow_root_level;
        int leaf;
        int level;
        bool reserved = false;