Skip to contentSkip to conversation

some questions about the HVM

DISCUSSION WangWei王伟 3 participants 3 messages Mar 26, 2010 – Mar 30, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,
I have a question about the VMEXIT in HVM.
Does the behavior of modifying the pte of guest OS cause a vmexit. If so ,the vmexit reason is page fault or something else ? Look forward to you help!
Thanks!

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi,

Quoted 2 lines · WangWei????

I have a question about the VMEXIT in HVM.
Does the behavior of modifying the pte of guest OS cause a vmexit.

When using shadow pagetables, yes (more precisely, modifying a page that is shadowed causes a VMEXIT). When using hardware-assisted paging (NPT or EPT), no.

Quoted 1 line

If so ,the vmexit reason is page fault or something else ?

It's a page fault, because shadowed pages are always mapped read-only in the shadow page tables.

Why do you want to know?

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)
#2 lore raw
Quoted 5 lines · Tim Deegan
Quoted 2 lines

I have a question about the VMEXIT in HVM.
Does the behavior of modifying the pte of guest OS cause a vmexit.

When using shadow pagetables, yes (more precisely, modifying a page that is shadowed causes a VMEXIT)

...but it's complicated. We have an optimization called "out-of-sync" such that modifying PTE may not cause a VMEXIT; instead, the VMEXIT may happen when the virtual address the PTE controls is dereferenced (akin to a TLB miss). As Tim said, this is only in shadow mode, if HAP (EPT or NPT) is not present / disabled.

-George