• A
    KVM: SVM: Implement GIF, clgi and stgi · 1371d904
    Alexander Graf 提交于
    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: NJoerg Roedel <joro@8bytes.org>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    1371d904
kvm_host.h 20.4 KB