Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Rings:1-MinimalX
xen
5a6b36cd-3-x86-migrate-MSR_SPEC_CTRL.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5a6b36cd-3-x86-migrate-MSR_SPEC_CTRL.patch of Package xen
# Commit 0cf2a4eb769302b7d7d7835540e7b2f15006df30 # Date 2018-01-26 14:10:21 +0000 # Author Andrew Cooper <andrew.cooper3@citrix.com> # Committer Andrew Cooper <andrew.cooper3@citrix.com> x86/migrate: Move MSR_SPEC_CTRL on migrate Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/domctl.c +++ b/xen/arch/x86/domctl.c @@ -1290,6 +1290,7 @@ long arch_do_domctl( struct xen_domctl_vcpu_msr msr; struct vcpu *v; static const uint32_t msrs_to_send[] = { + MSR_SPEC_CTRL, MSR_INTEL_MISC_FEATURES_ENABLES, }; uint32_t nr_msrs = ARRAY_SIZE(msrs_to_send); @@ -1416,6 +1417,7 @@ long arch_do_domctl( switch ( msr.index ) { + case MSR_SPEC_CTRL: case MSR_INTEL_MISC_FEATURES_ENABLES: if ( guest_wrmsr(v, msr.index, msr.value) != X86EMUL_OKAY ) break; --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1323,6 +1323,7 @@ static int hvm_load_cpu_xsave_states(str #define HVM_CPU_MSR_SIZE(cnt) offsetof(struct hvm_msr, msr[cnt]) static const uint32_t msrs_to_send[] = { + MSR_SPEC_CTRL, MSR_INTEL_MISC_FEATURES_ENABLES, }; static unsigned int __read_mostly msr_count_max = ARRAY_SIZE(msrs_to_send); @@ -1458,6 +1459,7 @@ static int hvm_load_cpu_msrs(struct doma { int rc; + case MSR_SPEC_CTRL: case MSR_INTEL_MISC_FEATURES_ENABLES: rc = guest_wrmsr(v, ctxt->msr[i].index, ctxt->msr[i].val);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor