• Alexander Graf's avatar
    KVM: PPC: Fix initial GPR settings · 1c0006d8
    Alexander Graf authored
    Commit 7d01b4c3ed2bb33ceaf2d270cb4831a67a76b51b introduced PACA backed vcpu
    values. With this patch, when a userspace app was setting GPRs before it was
    actually first loaded, the set values get discarded.
    
    This is because vcpu_load loads them from the vcpu backing store that we use
    whenever we're not owning the PACA.
    
    That behavior is not really a major problem, because we don't need it for
    qemu. Other users (like kvmctl) do have problems with it though, so let's
    better do it right.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    1c0006d8
kvm_ppc.h 5.82 KB