• Alexander Graf's avatar
    KVM: SVM: Implement GIF, clgi and stgi · 1371d904
    Alexander Graf authored
    This patch implements the GIF flag and the clgi and stgi instructions that
    set this flag. Only if the flag is set (default), interrupts can be received by
    the CPU.
    
    To keep the information about that somewhere, this patch adds a new hidden
    flags vector. that is used to store information that does not go into the
    vmcb, but is SVM specific.
    
    I tried to write some code to make -no-kvm-irqchip work too, but the first
    level guest won't even boot with that atm, so I ditched it.
    
    v2 moves the hflags to x86 generic code
    v3 makes use of the new permission helper
    v6 only enables interrupt_window if GIF=1
    Acked-by: default avatarJoerg Roedel <joro@8bytes.org>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    1371d904
svm.c 52 KB