Avoid harmless unhandled wrmsr 0xc0010117 messages
commitd283d5a65a2bdcc570065267be21848bd6fe3d78
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 7 May 2009 18:48:48 +0000 (7 15:48 -0300)
committerAvi Kivity <avi@redhat.com>
Sun, 31 May 2009 14:26:30 +0000 (31 17:26 +0300)
treedea8d8c986b21443c33c83dd6f39a3d04cb6b785
parentfa1cd3c985c848dae73966f9601f15fbcade72f1
Avoid harmless unhandled wrmsr 0xc0010117 messages

Olders kernel which don't contain kvm.git commit
61a6bd672bda3b9468bf5895c1be085c4e481138 display the following message:

kvm: 32301: cpu0 unhandled wrmsr: 0xc0010117 data 0

When kvm_arch_load_regs is called. This is confusing in bug reports.

Avoid it by checking whether the host advertises the MSR, similarly to
how MSR_STAR is handled.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm-x86.c