On 05.09.2013, at 22:23, Paul Mackerras wrote: > We have two paths into and out of the low-level guest entry and exit > code: from a vcpu task via kvmppc_hv_entry_trampoline, and from the > system reset vector for an offline secondary thread on POWER7 via > kvm_start_guest. Currently both just branch to kvmppc_hv_entry to > enter the guest, and on guest exit, we test the vcpu physical thread > ID to detect which way we came in and thus whether we should return > to the vcpu task or go back to nap mode. > > In order to make the code flow clearer, and to keep the code relating > to each flow together, this turns kvmppc_hv_entry into a subroutine > that follows the normal conventions for call and return. This means > that kvmppc_hv_entry_trampoline() and kvmppc_hv_entry() now establish > normal stack frames, and we use the normal stack slots for saving > return addresses rather than local_paca->kvm_hstate.vmhandler. Apart > from that this is mostly moving code around unchanged. > > Signed-off-by: Paul Mackerras <pau...@samba.org>
Thanks, applied to kvm-ppc-queue. Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html