From: Marcelo Tosatti Date: Tue, 4 Nov 2014 23:30:44 +0000 (-0200) Subject: KVM: x86: update masterclock values on TSC writes X-Git-Tag: omap-for-v3.19/fixes-rc1~43^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f187922ddf6b67f2999a76dcb71663097b75497;p=pandora-kernel.git KVM: x86: update masterclock values on TSC writes When the guest writes to the TSC, the masterclock TSC copy must be updated as well along with the TSC_OFFSET update, otherwise a negative tsc_timestamp is calculated at kvm_guest_time_update. Once "if (!vcpus_matched && ka->use_master_clock)" is simplified to "if (ka->use_master_clock)", the corresponding "if (!ka->use_master_clock)" becomes redundant, so remove the do_request boolean and collapse everything into a single condition. Signed-off-by: Marcelo Tosatti Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed