[Pkg-xen-devel] Bug#1020787: Xen: After updating to 5.19 kernel the VMs are started without XSAVE CPU flags

Diederik de Haas didi.debian at cknow.org
Tue Sep 27 14:14:34 BST 2022


On dinsdag 27 september 2022 14:57:02 CEST Diederik de Haas wrote:
> > > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;
> > > h=c3bd0b83ea5b7c0da6542687436042eeea1e7909 is where it's committed
> > > in Xen's master branch. I haven't seen a backport to 4.16 (yet?)
> 
> This would be the patch, but it needs to be backported.

While we're at it, might as well attach the actual patch.

And this is the code change of that patch:

diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c
index a4a366ad84..822f9ace10 100644
--- a/xen/arch/x86/cpuid.c
+++ b/xen/arch/x86/cpuid.c
@@ -1142,7 +1142,7 @@ void guest_cpuid(const struct vcpu *v, uint32_t leaf,
         switch ( subleaf )
         {
         case 1:
-            if ( p->xstate.xsaves )
+            if ( p->xstate.xsavec || p->xstate.xsaves )
             {
                 /*
                  * TODO: Figure out what to do for XSS state.  VT-x manages
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xen.git-c3bd0b83ea5b7c0da6542687436042eeea1e7909.patch
Type: text/x-patch
Size: 1676 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20220927/cb8a15ee/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-xen-devel/attachments/20220927/cb8a15ee/attachment.sig>


More information about the Pkg-xen-devel mailing list