[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.9] x86/PV: correctly count MSRs to migrate



commit 88fbabc49158b0b858248fa124ef590c5df7782f
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Feb 23 10:13:55 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Feb 23 10:13:55 2018 +0100

    x86/PV: correctly count MSRs to migrate
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/arch/x86/domctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c
index 620377a..1874949 100644
--- a/xen/arch/x86/domctl.c
+++ b/xen/arch/x86/domctl.c
@@ -1297,6 +1297,8 @@ long arch_do_domctl(
         /* Count maximum number of optional msrs. */
         if ( boot_cpu_has(X86_FEATURE_DBEXT) )
             nr_msrs += 4;
+        nr_msrs += !!cpu_has_cpuid_faulting +
+                   d->arch.cpuid->feat.ibrsb;
 
         if ( domctl->cmd == XEN_DOMCTL_get_vcpu_msrs )
         {
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.9

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.