From: Nadav Har'El Date: Tue, 2 Aug 2011 12:54:52 +0000 (+0300) Subject: KVM: nVMX: Fix nested VMX TSC emulation X-Git-Tag: v3.2-rc1~119^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27fc51b21cea3386a6672699631975d1097f9d39;p=pandora-kernel.git KVM: nVMX: Fix nested VMX TSC emulation This patch fixes two corner cases in nested (L2) handling of TSC-related issues: 1. Somewhat suprisingly, according to the Intel spec, if L1 allows WRMSR to the TSC MSR without an exit, then this should set L1's TSC value itself - not offset by vmcs12.TSC_OFFSET (like was wrongly done in the previous code). 2. Allow L1 to disable the TSC_OFFSETING control, and then correctly ignore the vmcs12.TSC_OFFSET. Signed-off-by: Nadav Har'El Signed-off-by: Avi Kivity --- Reading git-diff-tree failed