Revert "x86/msr: drop compatibility #GP handling in guest_{rd,wr}msr()"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Mar 2021 15:08:39 +0000 (16:08 +0100)
committerIan Jackson <iwj@xenproject.org>
Fri, 26 Mar 2021 15:14:31 +0000 (15:14 +0000)
commit486cbda6dfbd1ba604cf51564dbc194ca5d0ead7
tree85743dc4b41d9d095ea60b6653ddae9ceb7f8a0a
parent03bee3fd475cb755572dd21214daecf9a77a6bb4
Revert "x86/msr: drop compatibility #GP handling in guest_{rd,wr}msr()"

In hindsight, this was a poor move.  Some of these MSRs require probing for,
cause unhelpful spew into xl dmesg, or cause spew from unit tests explicitly
checking behaviour.

This restores behaviour close to that of Xen 4.14, meaning in particular
that for all of the MSRs getting re-added explicitly a #GP fault will get
raised irrespective of the new "msr_relaxed" setting.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/msr.c