• Alexander Graf's avatar
    KVM: PPC: Add PV guest critical sections · 5c6cedf4
    Alexander Graf authored
    When running in hooked code we need a way to disable interrupts without
    clobbering any interrupts or exiting out to the hypervisor.
    
    To achieve this, we have an additional critical field in the shared page. If
    that field is equal to the r1 register of the guest, it tells the hypervisor
    that we're in such a critical section and thus may not receive any interrupts.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    5c6cedf4
booke.c 18 KB