On 09.11.2013, at 12:04, Paul Mackerras <paulus@xxxxxxxxx> wrote: > From: Anton Blanchard <anton@xxxxxxxxx> > > Add support for the H_SET_MODE hcall so we can select the > endianness of our exceptions. > > We create a guest MSR from scratch when delivering exceptions in > a few places. Instead of extracting LPCR[ILE] and inserting it > into MSR_LE each time, we simply create a new variable intr_msr which > contains the entire MSR to use. > > Modified by mikey to use a case statement so we can add more > h_set_mode calls more easily later. > > Modified by paulus to call kvmppc_update_lpcr and take kvm->lock. Please rework this so that 1) H_SET_MODE becomes a multiplexer similar to H_RTAS. By default all H_SET_MODE hypercalls go to user space and get handled there. User space can enable certain calls to be handled directly by KVM instead 2) vcpus get a new ioctl (ENABLE_CAP maybe?) that allows us to set and unset LE mode. The H_SET_MODE_RESOURCE_LE call goes through all vcpus and triggers that ioctl from user space. That way it can also remember that it's in this mode. Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html