[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v7 09/17] x86/migrate: Move MSR_SPEC_CTRL on migrate
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/domctl.c | 2 ++ xen/arch/x86/hvm/hvm.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c index 5973d9f..72b4489 100644 --- 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); @@ -1413,6 +1414,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; diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index db282b5..ed36598 100644 --- 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(struct domain *d, hvm_domain_context_t *h) #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 domain *d, hvm_domain_context_t *h) { int rc; + case MSR_SPEC_CTRL: case MSR_INTEL_MISC_FEATURES_ENABLES: rc = guest_wrmsr(v, ctxt->msr[i].index, ctxt->msr[i].val); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |