KVM: MMU: Update shadow ptes on partial guest pte writes
authorDong, Eddie <eddie.dong@intel.com>
Mon, 7 Jan 2008 09:14:20 +0000 (11:14 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:13 +0000 (11:53 +0300)
commit489f1d6526ab68ca1842398fa3ae95c597fe3d32
treece86e117d8bc74c410ad8168928c036497a93eb8
parentc3bf9bc243092c53946fd6d8ebd6dc2f4e572d48
KVM: MMU: Update shadow ptes on partial guest pte writes

A guest partial guest pte write will leave shadow_trap_nonpresent_pte
in spte, which generates a vmexit at the next guest access through that pte.

This patch improves this by reading the full guest pte in advance and thus
being able to update the spte and eliminate the vmexit.

This helps pae guests which use two 32-bit writes to set a single 64-bit pte.

[truncation fix by Eric]

Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Feng (Eric) Liu <eric.e.liu@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h