• Maxim Levitsky's avatar
    KVM: x86: SVM: allow AVIC to co-exist with a nested guest running · f44509f8
    Maxim Levitsky authored
    Inhibit the AVIC of the vCPU that is running nested for the duration of the
    nested run, so that all interrupts arriving from both its vCPU siblings
    and from KVM are delivered using normal IPIs and cause that vCPU to vmexit.
    
    Note that unlike normal AVIC inhibition, there is no need to
    update the AVIC mmio memslot, because the nested guest uses its
    own set of paging tables.
    That also means that AVIC doesn't need to be inhibited VM wide.
    Signed-off-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
    Message-Id: <20220322174050.241850-7-mlevitsk@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f44509f8
nested.c 46.2 KB