KVM: VMX: remove setting of shadow_base_ptes for EPT
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 22 Oct 2010 16:18:15 +0000 (14:18 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:23:37 +0000 (11:23 +0200)
The EPT present/writable bits use the same position as normal
pagetable bits.

Since direct_map passes ACC_ALL to mmu_set_spte, thus always setting
the writable bit on sptes, use the generic PT_PRESENT shadow_base_pte.

Also pass present/writable error code information from EPT violation
to generic pagefault handler.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found