Re: [patch] kvm: make cr3 loading more robust

Avi Kivity
2007-01-03T13:14:45Z

Ingo Molnar wrote:
> * Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org> wrote:
>
>
>>> The kvm goals do not include cycle accurate emulation. [...]
>>>
>> yes. That's why i'm suggesting to kill the VM in such a scenario. A
>> cr3 value is only valid if it points to real RAM.
>>
>
> and if it ever causes real incompatibility it should be easy to address
> it by returning a per-vcpu (or per-vm) special memory slot in
> gfn_to_memslot(), for invalid memory, instead of the current NULL,
> right?
>

Yes.

A read-only memory slot may have other uses too (for ROMs).