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

[Xen-changelog] [xen master] x86: fix pvh dom0 boot after dab11417d

commit 9d2efbafb895d1a3b5d70823b59faf71701ff1f9
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Wed Jul 23 18:04:28 2014 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Jul 23 18:04:28 2014 +0200

    x86: fix pvh dom0 boot after dab11417d

    Changeset dab11417d
    "x86/HVM: consolidate and sanitize CR4 guest reserved bit determination"

    did not take into account the fact that dom0 does not have a cpuid policy.  
    a result, PVH dom0s would be given unexpected #GP faults on boot.

    In addition to the restore case (where the toolstack has not had time to 
    a cpuid policy), unconditionally exempt the hardware domain from needing a

    Reported-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Tested-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
 xen/arch/x86/hvm/hvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index ef2411c..db54814 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -1738,7 +1738,7 @@ static unsigned long hvm_cr4_guest_reserved_bits(const 
struct vcpu *v,
     unsigned int leaf1_ecx = 0, leaf1_edx = 0;
     unsigned int leaf7_0_ebx = 0, leaf7_0_ecx = 0;

-    if ( likely(!restore) )
+    if ( !restore && !is_hardware_domain(v->domain) )
         unsigned int level;

generated by git-patchbot for /home/xen/git/xen.git#master

Xen-changelog mailing list



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