On Wed, Sep 09, 2020 at 09:37:08PM +0300, stsp wrote: > A bit of update. > > 09.09.2020 21:04, stsp пишет: > > As for the original problem: there are at least > > 2 problems. > > > > On OLD intel: > > - KVM fails with invalid guest state unless > > you set VMXE in guest's cr4, and do it from > > the very first attempt! > > This happens only on nested execution! > Under qemu/kvm. Ah, that makes a lot more sense. So is QEMU+KVM your L0, and dosemu2 is L1, and the DOS guest is L2? And assuming that's the case, you observe the weird behavior in L1, i.e. when doing KVM_SET_SREGS from dosemu2?