On 01/04/21 16:45, Maxim Levitsky wrote:
+ + for (i = 0; i < 4; i++) { + sregs.pdptrs[i] = env->pdptrs[i]; + } + + sregs.flags = 0; + sregs.padding = 0; + + return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_SREGS2, &sregs); +} +
This breaks when migrating from old to new kernel, because in that case the PDPTRs are not initialized.
Paolo