Zhang, Xiantao wrote: >>> >> Ah, I see. It isn't just the alignment. How do you allocate >> kvm_vcpu, then? >> > > For evevy vm, we allocate a big chunk of memory for structure > allocation. For vcpu, it should be always 64k aligned through our > allocation mechanism. So, we don't care about its aligment issue :) >
I see. Can you explain why you do that? Do you have a special allocator in your guest-resident vmm module? I don't think other archs need that, so a CONFIG_KVM_ARCH_CVPU_ALLOC approach seems better than copying all that code. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel