Re: [PATCH 11/15] KVM: PPC: Book3S HV: Add little-endian guest support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.11.2013, at 17:30, Alexander Graf <agraf@xxxxxxx> wrote:

> 
> 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?

Ah, we had an idea a while back to make this a ONE_REG on LPCR, with KVM filtering out bits it doesn't want to see modified, right? That should work just fine here.


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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux