Re: [Patch][RFC]Split kvm_vcpu to support new archs.

Avi Kivity
2007-10-16T10:32:30Z

Zhang, Xiantao wrote:
> Avi Kivity wrote:
>
>> Zhang, Xiantao wrote:
>>
>>>>> About mmu, i am not sure about this. IA64 only need kvm module to
>>>>> allocate and free memory for guests. Most functions related to mmu
>>>>> are useless for IA64. If we put them as common, Maybe we have to
>>>>> define some blank functions.
>>>>>
>>>>>
>>>>>
>>>>>
>>>> I meant the mmu is x86 specific.
>>>>
>>>>
>>> Sorry for misunderstanding. Should we move out the code logic
>>> related to mmu from kvm_main.c , and put them as arch-specific code
>>> ?:)
>>>
>>>
>>>
>> Yes. But from what I looked, there isn't much mmu code in kvm_main.c,
>> only calls to mmu code.
>>
>
> I mean this too. Maybe IA64 can define some blank fucntions called in
> kvm_main.c.
>
>

You will need mmu_unload(), reload(), etc. to notify your mmu that the
host memory map has changed, for example due to memory hotplug.

--
error compiling committee.c: too many arguments to function