]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86/AMD: expose HWCR.TscFreqSel to guests master 4.15.0-rc3
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Mar 2021 11:03:06 +0000 (12:03 +0100)
committerIan Jackson <iwj@xenproject.org>
Fri, 12 Mar 2021 17:00:30 +0000 (17:00 +0000)
commit14b95b3b8546db201e7efd0636ae0e215fae98f3
treed17332e40405ca56aef9f61ca859ff0376468bca
parent6eef0a99262cc903495879448cc4ffefe305ef2a
x86/AMD: expose HWCR.TscFreqSel to guests

Linux has been warning ("firmware bug") about this bit being clear for a
long time. While writable in older hardware it has been readonly on more
than just most recent hardware. For simplicitly report it always set (if
anything we may want to log the issue ourselves if it turns out to be
clear on older hardware) on CPU families 10h and up (in family 0fh the
bit is part of a larger field of different purpose).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/msr.c
xen/include/asm-x86/msr-index.h