|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Two shadow page tables for HVM
At 17:08 -0500 on 09 Jan (1231520939), Emre Can Sezer wrote:
> I finally got around to implementing two paging modes. Everything works
> fine until I swap modes :)
>
> I get a shadow page fault with error_code 0. This happens right after I
> swap the paging mode. Any clues as to what might be the cause?
>
> I walked through the code that updates paging modes. It appears that we
> simply make an *empty* top level shadow and install it as top level shadow
> page table. If this is the case, shouldn't the first fault have a non-zero
> error code?
The TLB will be empty when you return so the first fault will be an
instruction fetch, presumably from kernel space (since that's when you
want to switch modes). If the guest has PAE or 64-bit pagetabels and
EFER.NXE turned on, it should have error code 0x10; otherwise 0 is correct.
Cheers,
Tim.
--
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|