]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86/hvm: disallow access to unknown MSRs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 15 Sep 2020 10:43:32 +0000 (12:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Sep 2020 10:43:32 +0000 (12:43 +0200)
commit84e848fd7a162f669cf8248ce502ca864f869447
tree2c7ea8fd09e110803ba11bc896e3f55b32e4db75
parent322ec7c89f6640ee2a99d1040b6f786cf04872cf
x86/hvm: disallow access to unknown MSRs

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: Andrew Cooper <andrew.cooper3@citrix.com>
[remove rdmsr_safe from default case in svm_msr_read_intercept]
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c