kvm: x86: Check kvm_write_guest return value in kvm_write_wall_clock
authorNicholas Krause <xerofoify@gmail.com>
Wed, 30 Dec 2015 18:08:46 +0000 (13:08 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Jan 2016 13:51:32 +0000 (14:51 +0100)
commit1dab1345d885819a3a0d5d08ce0b5c2e12c65343
treeb6e8d7aabaca0e4d215534a723aef18557f73eec
parent0af2593b2ad125880a78d1bba966e450cc2330df
kvm: x86: Check kvm_write_guest return value in kvm_write_wall_clock

This makes sure the wall clock is updated only after an odd version value
is successfully written to guest memory.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c