kvm: Use KVM_GET_MSR_INDEX_LIST for MSR_IA32_ARCH_CAPABILITIES support
commitaec5e9c3a94cf8b7920f59bef69a6f426092c4a0
authorBandan Das <bsd@redhat.com>
Mon, 26 Nov 2018 04:17:28 +0000 (25 23:17 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 26 Nov 2018 15:00:38 +0000 (26 13:00 -0200)
treee67c79af04110bb35244efc89dcfad8b32684ab4
parentd522fba24478474911b0e6e488b6d1dcf1af54f8
kvm: Use KVM_GET_MSR_INDEX_LIST for MSR_IA32_ARCH_CAPABILITIES support

When writing to guest's MSR_IA32_ARCH_CAPABILITIES, check whether it's
supported in the guest using the KVM_GET_MSR_INDEX_LIST ioctl.

Fixes: d86f963694df27f11b3681ffd225c9362de1b634
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: balducci@units.it
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-Id: <jpg4lc4iiav.fsf_-_@linux.bootlegged.copy>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/kvm.c