• J
    KVM: SVM: Clean up and enhance mov dr emulation · c76de350
    Jan Kiszka 提交于
    Enhance mov dr instruction emulation used by SVM so that it properly
    handles dr4/5: alias to dr6/7 if cr4.de is cleared. Otherwise return
    EMULATE_FAIL which will let our only possible caller in that scenario,
    ud_interception, re-inject UD.
    
    We do not need to inject faults, SVM does this for us (exceptions take
    precedence over instruction interceptions). For the same reason, the
    value overflow checks can be removed.
    Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    c76de350
x86.c 137.5 KB