• Jan Kiszka's avatar
    KVM: SVM: Keep intercepting task switching with NPT enabled · f1c1da2b
    Jan Kiszka authored
    AMD processors apparently have a bug in the hardware task switching
    support when NPT is enabled. If the task switch triggers a NPF, we can
    get wrong EXITINTINFO along with that fault. On resume, spurious
    exceptions may then be injected into the guest.
    
    We were able to reproduce this bug when our guest triggered #SS and the
    handler were supposed to run over a separate task with not yet touched
    stack pages.
    
    Work around the issue by continuing to emulate task switches even in
    NPT mode.
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    f1c1da2b
svm.c 107 KB