]> xenbits.xensource.com Git - xen.git/commitdiff
x86/xstate: Remove stale assertions in fpu_x{rstor,save}()
authorAlejandro Vallejo <alejandro.vallejo@cloud.com>
Thu, 7 Nov 2024 11:51:28 +0000 (12:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Nov 2024 11:51:28 +0000 (12:51 +0100)
After edb48e76458b("x86/fpu: Combine fpu_ctxt and xsave_area in arch_vcpu"),
v->arch.xsave_area is always present and we can just remove these asserts.

Fixes: edb48e76458b("x86/fpu: Combine fpu_ctxt and xsave_area in arch_vcpu")
Signed-off-by: Alejandro Vallejo <alejandro.vallejo@cloud.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/i387.c

index 83f9b2502bff719e426d00cc299b6a9c0038824c..3add0025e49524936721d69c99e2e5bdf9b92858 100644 (file)
@@ -24,7 +24,6 @@ static inline void fpu_xrstor(struct vcpu *v, uint64_t mask)
 {
     bool ok;
 
-    ASSERT(v->arch.xsave_area);
     /*
      * XCR0 normally represents what guest OS set. In case of Xen itself,
      * we set the accumulated feature mask before doing save/restore.
@@ -136,7 +135,6 @@ static inline void fpu_xsave(struct vcpu *v)
     uint64_t mask = vcpu_xsave_mask(v);
 
     ASSERT(mask);
-    ASSERT(v->arch.xsave_area);
     /*
      * XCR0 normally represents what guest OS set. In case of Xen itself,
      * we set the accumulated feature mask before doing save/restore.