Re: [RFT] kvm with Windows optimization

Dong, Eddie
2007-10-26T09:46:09Z

Avi Kivity wrote:
> Dong, Eddie wrote:
>>> BTW, is it wise to enable this by default for all guests?
>>> Ignoring the
>>> fact that we're modifying guest's memory without its knowledge, if a
>>> guest unmaps the VA mappings for the BIOS then all sorts of
>>> problems could occur.
>>>
>>>
>> Good movement!
>>
>> But, Vista won't work with patching. The memory guard in vista
>> will make the system refuse to service. Maybe we need a option to
>> check if it is vista.
>>
>>
>
> Thanks for the hint; I'll add that. I think Vista hits the tpr much
> less frequently, so it can work well without the optimization.
>
Curious: How do u know ROM is mapped 0xf00000000 in Windows?
Eddie

kvm_get_sregs(kvm_context, env->cpu_index, &sregs);

probe = (rip & 0xf0000000) + 0xe0000;
phys = map_addr(&sregs, probe, &perms);
if (phys != 0xe0000)
return 0;
printf("bios ok at %lx\n", (long)probe);