x86/svm: handle BU_CFG and BU_CFG2 with cases
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 15 Sep 2020 10:42:21 +0000 (12:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Sep 2020 10:42:21 +0000 (12:42 +0200)
commit8a31c255afab71f30f0fa1f8c7cef309aa2ec483
tree4cf2b66c14509185733596083adfa4141c88fe48
parent39ab598c50a2b539f376adc363d684c2df6c8dd7
x86/svm: handle BU_CFG and BU_CFG2 with cases

Move the special handling of reads to it's own switch case, and also
add support for BU_CFG2. On the write side ignore writes if the MSR is
readable, otherwise return a #GP.

This is in preparation for changing the default MSR read/write
behavior, which will instead return #GP on not explicitly handled
cases.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/svm.c