projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feab5bd
)
x86/pv: handle reads to the PAT MSR
author
Roger Pau Monne
<roger.pau@citrix.com>
Mon, 17 Aug 2020 15:57:53 +0000
(17:57 +0200)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Tue, 18 Aug 2020 16:34:50 +0000
(17:34 +0100)
The value in the PAT MSR is part of the ABI between Xen and PV guests,
and there's no reason to not allow a PV guest to read it.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/emul-priv-op.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/pv/emul-priv-op.c
b/xen/arch/x86/pv/emul-priv-op.c
index d1d16b480603a79ef2703078a312a12f27104071..971ba9e58c2f6befaac8f9d2b149f7be1548d3c0 100644
(file)
--- a/
xen/arch/x86/pv/emul-priv-op.c
+++ b/
xen/arch/x86/pv/emul-priv-op.c
@@
-900,6
+900,10
@@
static int read_msr(unsigned int reg, uint64_t *val,
*val = guest_efer(currd);
return X86EMUL_OKAY;
+ case MSR_IA32_CR_PAT:
+ *val = XEN_MSR_PAT;
+ return X86EMUL_OKAY;
+
case MSR_K7_FID_VID_CTL:
case MSR_K7_FID_VID_STATUS:
case MSR_K8_PSTATE_LIMIT: