]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Track NX state in struct kvm_mmu
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:31:01 +0000 (17:31 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:44 +0000 (10:52 +0200)
commite26b18b329f1bb4373380d55b3ca08daf681022d
treedf3c876c8754f57dfc255175ba5f4d9da7c08c77
parente815860eeb291723d1655fabb6b30cacac0fc694
KVM: MMU: Track NX state in struct kvm_mmu

With Nested Paging emulation the NX state between the two
MMU contexts may differ. To make sure that always the right
fault error code is recorded this patch moves the NX state
into struct kvm_mmu so that the code can distinguish between
L1 and L2 NX state.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h