On Wed, Jul 25, 2012 at 4:25 AM, Rusty Russell <rusty.russell at linaro.org> wrote: > On Thu, 12 Jul 2012 15:24:44 +0930, Rusty Russell <rusty.russell at linaro.org> wrote: >> Hi all, >> >> This turned out to be a longer patch series than I expected. >> The idea is that qemu tells us exactly what CPU (and cpu features) the >> guest should have, and we tell it exactly what CP15 registers we have. > > OK, I've pushed an updated series: > > git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git msr-ops > > Rather than re-post all 17, here are the differences from the first > patches (see inter-diff below): > thanks! > 1) We now add a 'struct kvm_vcpu_init' rather than overload kvm_sregs > (thanks Alexander), and added the ioctl KVM_ARM_VCPU_INIT. > > 2) I add a new KVM_VCPU_GET_MSR_INDEX_LIST rather than abusing the > KVM_GET_VCPU_MSR_INDEX_LIST which x86 uses: ours is per-vcpu. > > 3) We return ENOENT for unknown CP registers, EINVAL for invalid > combinations. > > 4) WI/RAZ -> RAW/WI (Thanks Peter). > > 5) Remove num_features bit (it's redundant: just zero them all), and > drop to 7*32 feature bits. > I'll be working on merging these real soon, -Christoffer