• Alexander Graf's avatar
    KVM: PPC: PV mtmsrd L=1 · 819a63dc
    Alexander Graf authored
    The PowerPC ISA has a special instruction for mtmsr that only changes the EE
    and RI bits, namely the L=1 form.
    
    Since that one is reasonably often occuring and simple to implement, let's
    go with this first. Writing EE=0 is always just a store. Doing EE=1 also
    requires us to check for pending interrupts and if necessary exit back to the
    hypervisor.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    819a63dc
kvm.c 9.64 KB