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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

patchbot
commit 88fbabc49158b0b858248fa124ef590c5df7782f
Author:     Jan Beulich <[hidden email]>
AuthorDate: Fri Feb 23 10:13:55 2018 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Fri Feb 23 10:13:55 2018 +0100

    x86/PV: correctly count MSRs to migrate
   
    Signed-off-by: Jan Beulich <[hidden email]>
---
 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
[hidden email]
https://lists.xenproject.org/xen-changelog