• A
    KVM: PPC: Use accessor functions for GPR access · 8e5b26b5
    Alexander Graf 提交于
    All code in PPC KVM currently accesses gprs in the vcpu struct directly.
    
    While there's nothing wrong with that wrt the current way gprs are stored
    and loaded, it doesn't suffice for the PACA acceleration that will follow
    in this patchset.
    
    So let's just create little wrapper inline functions that we call whenever
    a GPR needs to be read from or written to. The compiled code shouldn't really
    change at all for now.
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    Signed-off-by: NAvi Kivity <avi@redhat.com>
    8e5b26b5
powerpc.c 9.9 KB