From: Gleb Natapov Date: Wed, 8 Aug 2012 12:24:36 +0000 (+0300) Subject: KVM: correctly detect APIC SW state in kvm_apic_post_state_restore() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64eb0620296f924d5fded755c5ed95fb73649e06;p=pandora-kernel.git KVM: correctly detect APIC SW state in kvm_apic_post_state_restore() For apic_set_spiv() to track APIC SW state correctly it needs to see previous and next values of the spurious vector register, but currently memset() overwrite the old value before apic_set_spiv() get a chance to do tracking. Fix it by calling apic_set_spiv() before overwriting old value. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- Reading git-diff-tree failed