From: Wanpeng Li Date: Thu, 21 Aug 2014 11:46:50 +0000 (+0800) Subject: KVM: nVMX: nested TPR shadow/threshold emulation X-Git-Tag: fixes-for-v3.18-merge-window~23^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c0b07d570848e50fce4d31ac01313484d6b844;p=pandora-kernel.git KVM: nVMX: nested TPR shadow/threshold emulation This patch fix bug https://bugzilla.kernel.org/show_bug.cgi?id=61411 TPR shadow/threshold feature is important to speed up the Windows guest. Besides, it is a must feature for certain VMM. We map virtual APIC page address and TPR threshold from L1 VMCS. If TPR_BELOW_THRESHOLD VM exit is triggered by L2 guest and L1 interested in, we inject it into L1 VMM for handling. Reviewed-by: Paolo Bonzini Signed-off-by: Wanpeng Li [Add PAGE_ALIGNED check, do not write useless virtual APIC page address if TPR shadowing is disabled. - Paolo] Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed