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

Re: [Xen-ia64-devel] [PATCH] SetVirtualAddressMap emulation support



Hi Tristan,

Thanks for your comment.

Tristan Gingold wrote:
>Le Lundi 24 Avril 2006 16:45, Masaki Kanno a 馗rit :
>> Hi,
>>
>> I'm working on FPSWA support, and I'm thinking that I will offer
>> a dummy fpswa function to dom0/domU. Therefore I think that Xen
>> has to support the SetVirtualAddressMap() emulation of EFI.
>> This patch supports the SetVirtualAddressMap() emulation in Xen.
>>
>> I confirmed that following EFI Runtime emulation worked in a
>> virtual address.
>>  - GetTime() in dom0
>>  - GetTime() in domU
>Hi,
>
>Three points:
>* you should write a generic function to do 
>vcpu_tpa+__va(translate_domain_mpaddr).

I agree. This generic function converts from guest-virtual-address 
to Xen-virtual-address, isn't it?

>* I prefer '|'
>MAKE_MD(EFI_PAL_CODE,EFI_MEMORY_WB|EFI_MEMORY_RUNTIME,HYPERCALL_START,HYPERCALL_END,1);
>instead of '+'
>MAKE_MD(EFI_PAL_CODE,EFI_MEMORY_WB+EFI_MEMORY_RUNTIME,HYPERCALL_START,HYPERCALL_END,1);

I agree.

>* You don't handle vcpu_tpa failure.  This may never happen for GetTime, but 
>fore sure may happen for other calls.
>This may be not trivial.

My patch was dangerous. For handling of instruction emulation, it 
was lacking in consideration.

Best regards,
 Kan

>Thank you.
>Tristan.
>


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.