Re: [PATCH v2 6/8] x86/pv: disallow access to unknown MSRs

2020-08-28 Thread Jan Beulich
On 20.08.2020 17:08, Roger Pau Monne wrote: > --- a/xen/arch/x86/pv/emul-priv-op.c > +++ b/xen/arch/x86/pv/emul-priv-op.c > @@ -972,9 +972,10 @@ static int read_msr(unsigned int reg, uint64_t *val, > } > /* fall through */ > default: > +gdprintk(XENLOG_WARNING, "RDMSR

[PATCH v2 6/8] x86/pv: disallow access to unknown MSRs

2020-08-20 Thread Roger Pau Monne
Change the catch-all behavior for MSR not explicitly handled. Instead of allow full read-access to the MSR space and silently dropping writes return an exception when the MSR is not explicitly handled. Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper --- xen/arch/x86/pv/emul-priv-op.c | 1