• Joerg Roedel's avatar
    KVM: SVM: Don't sync nested cr8 to lapic and back · 88ab24ad
    Joerg Roedel authored
    This patch makes syncing of the guest tpr to the lapic
    conditional on !nested. Otherwise a nested guest using the
    TPR could freeze the guest.
    Another important change this patch introduces is that the
    cr8 intercept bits are no longer ORed at vmrun emulation if
    the guest sets VINTR_MASKING in its VMCB. The reason is that
    nested cr8 accesses need alway be handled by the nested
    hypervisor because they change the shadow version of the
    tpr.
    
    Cc: stable@kernel.org
    Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    88ab24ad
svm.c 77.8 KB