summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2014-11-04 21:30:44 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 14:40:52 -0800
commitb7e4884e64bcfefd359812a96505ecfa67c3ce8d (patch)
treeee063ddaa97f09329506f06e9c00defc53501e25 /drivers/gpio
parentef6bb317ad2f9fc585fcb87e6393763ea9850265 (diff)
KVM: x86: update masterclock values on TSC writes
commit 7f187922ddf6b67f2999a76dcb71663097b75497 upstream. 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 <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions