> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Wednesday, August 30, 2017 6:35 PM > > The new function is responsible for handling WRMSR from both HVM and > PV > guests. Currently it handles only 2 MSRs: > > MSR_INTEL_PLATFORM_INFO > MSR_INTEL_MISC_FEATURES_ENABLES > > It has a different behaviour compared to the old MSR handlers: if MSR > is being handled by guest_wrmsr() then WRMSR will either succeed (if > a guest is allowed to access it and provided a correct value based on > its MSR policy) or produce a GP fault. A guest will never see > a successful WRMSR of some MSR unknown to this function. > > guest_wrmsr() unifies and replaces the handling code from > vmx_msr_write_intercept() and priv_op_write_msr(). > > Signed-off-by: Sergey Dyasli <sergey.dya...@citrix.com>
Reviewed-by: Kevin Tian <kevin.t...@intel.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel