[PATCH 2/5] KVM: MMU: Optimize gpte_access() slightly

2012-09-12 Thread Avi Kivity
If nx is disabled, then is gpte[63] is set we will hit a reserved bit set fault before checking permissions; so we can ignore the setting of efer.nxe. Signed-off-by: Avi Kivity --- arch/x86/kvm/paging_tmpl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kvm/pagi

Re: [PATCH 2/5] KVM: MMU: Optimize gpte_access() slightly

2012-09-13 Thread Xiao Guangrong
On 09/12/2012 10:29 PM, Avi Kivity wrote: > If nx is disabled, then is gpte[63] is set we will hit a reserved > bit set fault before checking permissions; so we can ignore the > setting of efer.nxe. Reviewed-by: Xiao Guangrong -- To unsubscribe from this list: send the line "unsubscribe kvm" in