kvm: x86: Only read/write MSR_KVM_ASYNC_PF_EN if supported
commitc5999bfcfdf66390c98115044cb6fd174fbcf36d
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 21 Jan 2011 20:48:22 +0000 (21 21:48 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sun, 23 Jan 2011 04:27:22 +0000 (23 02:27 -0200)
tree26c063d765cabca38b4ee8b72ccaece253b62616
parentd8f771d9124e9a295b564d47d7546d93e844b526
kvm: x86: Only read/write MSR_KVM_ASYNC_PF_EN if supported

If the kernel does not support KVM_CAP_ASYNC_PF, it also does not know
about the related MSR. So skip it during state synchronization in that
case. Fixes annoying kernel warnings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/kvm.c