Re: [PATCH v3 5/6] KVM: MMU: abstract invalid guest pte mapping

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Xiao Guangrong
Date: Monday, November 22, 2010 - 3:18 am

On 11/22/2010 05:28 PM, Avi Kivity wrote:


OK, i'll use speculative_map_invalid_gpte or speculative_map_gpte
instead.


Um. i did it in the in the previous version, but it needs a callback to
get pfn since get pfn is very different on update_pte / prefetch_pte /
sync_page paths. the codes seems more complicated.

Maybe we can get pfn first and call FNAME(map_vaild_gpte) later, but
it can add little little overload on prefetch_pte path.


if !is_present_gpte() && is_rsvd_bits_set, then we may mark the spte notrap,
so the guest will detect #PF with PFEC.P=PEFC.RSVD=0, but the appropriate PFEC
is PFEC.P=0 && PEFC.RSVD=1 ?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 4/6] KVM: MMU: remove 'clear_unsync' parameter, Xiao Guangrong, (Fri Nov 19, 2:04 am)
Re: [PATCH v3 5/6] KVM: MMU: abstract invalid guest pte ma ..., Xiao Guangrong, (Mon Nov 22, 3:18 am)